4.104.114.84.95
Last change
on this file since 8fe6d358 was
8fe6d358,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/20/97 at 16:59:11
|
Moved -qnolinkcmds option so arguments passed on the command line are
interpreted at the right point per Eric Norum's discovery:
The problem with the my previous `fix' for adding linker commands
was with the ordering of the options to the linker.
For example, to make a larger heap size, the application Makefile would
CFLAGS_LD = -Wl,--defsym -Wl,HeapSize?=0x40000
The command passed to the linker would be :
m68k-rtems-ld .... -T xxx/linkcmds .... --defsym HeapSize?=0x40000 .....
This doesn't work because the script in linkcmds inserts a default
value for HeapSize? if HeapSize? is not defined by the time the linker
looks at the linkcmds script.
The solution seems to be to move the -T linkcmds%s in the bsp_specs
file out of the link specfication and into the lib specification -- a
little unorthodox, perhaps, but it seems to work!
|
-
Property mode set to
100644
|
File size:
435 bytes
|
Line | |
---|
1 | %rename cpp old_cpp |
---|
2 | %rename lib old_lib |
---|
3 | %rename endfile old_endfile |
---|
4 | %rename startfile old_startfile |
---|
5 | %rename link old_link |
---|
6 | |
---|
7 | *cpp: |
---|
8 | %(old_cpp) %{qrtems: -D__embedded__} -Asystem(embedded) |
---|
9 | |
---|
10 | *lib: |
---|
11 | %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}} |
---|
12 | |
---|
13 | *startfile: |
---|
14 | %{!qrtems: %(old_startfile)} %{qrtems: start302.o%s} |
---|
15 | |
---|
16 | *link: |
---|
17 | %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start} |
---|
18 | |
---|
Note: See
TracBrowser
for help on using the repository browser.