Changeset ed2ce44 in rtems-libbsd


Ignore:
Timestamp:
Oct 10, 2013, 7:31:18 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
025d8f2
Parents:
ab415f9
git-author:
Sebastian Huber <sebastian.huber@…> (10/10/13 07:31:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:45)
Message:

Makefile: Generate map file

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rab415f9 red2ce44  
    790790TEST_USB01_D_FILES += testsuite/usb01/test-file-system.d
    791791$(TEST_USB01): $(TEST_USB01_O_FILES) $(LIB)
    792         $(LINK.c) $^ -lm -o $@
     792        $(LINK.c) -Wl,-Map,testsuite/usb01/usb01.map $^ -lm -o $@
    793793TESTS += $(TEST_USB01)
    794794O_FILES += $(TEST_USB01_O_FILES)
     
    801801TEST_LOOPBACK01_D_FILES += testsuite/loopback01/test_main.d
    802802$(TEST_LOOPBACK01): $(TEST_LOOPBACK01_O_FILES) $(LIB)
    803         $(LINK.c) $^ -lm -o $@
     803        $(LINK.c) -Wl,-Map,testsuite/loopback01/loopback01.map $^ -lm -o $@
    804804TESTS += $(TEST_LOOPBACK01)
    805805O_FILES += $(TEST_LOOPBACK01_O_FILES)
     
    817817TEST_NETSHELL01_D_FILES += testsuite/netshell01/ns_parser_vars.d
    818818$(TEST_NETSHELL01): $(TEST_NETSHELL01_O_FILES) $(LIB)
    819         $(LINK.c) $^ -lm -o $@
     819        $(LINK.c) -Wl,-Map,testsuite/netshell01/netshell01.map $^ -lm -o $@
    820820TESTS += $(TEST_NETSHELL01)
    821821O_FILES += $(TEST_NETSHELL01_O_FILES)
     
    830830TEST_SWI01_D_FILES += testsuite/swi01/swi_test.d
    831831$(TEST_SWI01): $(TEST_SWI01_O_FILES) $(LIB)
    832         $(LINK.c) $^ -lm -o $@
     832        $(LINK.c) -Wl,-Map,testsuite/swi01/swi01.map $^ -lm -o $@
    833833TESTS += $(TEST_SWI01)
    834834O_FILES += $(TEST_SWI01_O_FILES)
     
    846846TEST_TIMEOUT01_D_FILES += testsuite/timeout01/timeout_helper.d
    847847$(TEST_TIMEOUT01): $(TEST_TIMEOUT01_O_FILES) $(LIB)
    848         $(LINK.c) $^ -lm -o $@
     848        $(LINK.c) -Wl,-Map,testsuite/timeout01/timeout01.map $^ -lm -o $@
    849849TESTS += $(TEST_TIMEOUT01)
    850850O_FILES += $(TEST_TIMEOUT01_O_FILES)
     
    858858TEST_INIT01_D_FILES += testsuite/init01/test_main.d
    859859$(TEST_INIT01): $(TEST_INIT01_O_FILES) $(LIB)
    860         $(LINK.c) $^ -lm -o $@
     860        $(LINK.c) -Wl,-Map,testsuite/init01/init01.map $^ -lm -o $@
    861861TESTS += $(TEST_INIT01)
    862862O_FILES += $(TEST_INIT01_O_FILES)
     
    870870TEST_THREAD01_D_FILES += testsuite/thread01/test_main.d
    871871$(TEST_THREAD01): $(TEST_THREAD01_O_FILES) $(LIB)
    872         $(LINK.c) $^ -lm -o $@
     872        $(LINK.c) -Wl,-Map,testsuite/thread01/thread01.map $^ -lm -o $@
    873873TESTS += $(TEST_THREAD01)
    874874O_FILES += $(TEST_THREAD01_O_FILES)
  • freebsd-to-rtems.py

    rab415f9 red2ce44  
    311311                testDir = 'testsuite/' + self.testName
    312312                testExe = testDir + '/' + self.testName + '.exe'
     313                testMap = testDir + '/' + self.testName + '.map'
    313314                makefileFragment = '\n' + testPrefix + ' = ' + testExe + '\n' \
    314315                        + testOFiles + ' =\n' \
     
    318319                                + testDFiles + ' += ' + testDir + '/' + fileFragment + '.d\n'
    319320                makefileFragment = makefileFragment + '$(' + testPrefix + '): $(' + testOFiles + ') $(LIB)\n' \
    320                         '\t$(LINK.c) $^ -lm -o $@\n' \
     321                        '\t$(LINK.c) -Wl,-Map,' + testMap + ' $^ -lm -o $@\n' \
    321322                        'TESTS += $(' + testPrefix + ')\n' \
    322323                        'O_FILES += $(' + testOFiles + ')\n' \
Note: See TracChangeset for help on using the changeset viewer.