Changeset 8fe6d358 in rtems


Ignore:
Timestamp:
Dec 20, 1997, 4:59:11 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bfa613b
Parents:
1587af6
Message:

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!

Location:
c/src/lib/libbsp
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/force386/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/i386/i386ex/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/i386/pc386/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/i960/cvme961/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e _start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e _start}
    1818
  • c/src/lib/libbsp/m68k/dmv152/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/efi332/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/efi68k/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/gen68302/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/gen68360/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/idp/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/mvme136/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/mvme147/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/mvme147s/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/mvme162/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/m68k/ods68302/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/mips/p4000/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/mips64orion/p4000/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
  • c/src/lib/libbsp/powerpc/papyrus/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: ecrti%O%s --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: ecrti%O%s --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -u __vectors -u download_entry -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -u __vectors -u download_entry -N -e start}
    1818
  • c/src/lib/libbsp/sparc/erc32/bsp_specs

    r1587af6 r8fe6d358  
    99
    1010*lib:
    11 %{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group}
     11%{!qrtems: %(old_lib)} %{qrtems: --start-group -lrtemsall -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}
    1212
    1313*startfile:
     
    1515
    1616*link:
    17 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start %{!qnolinkcmds: -T linkcmds%s}}
     17%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e start}
    1818
Note: See TracChangeset for help on using the changeset viewer.