diff options
author | Alan Modra <amodra@gmail.com> | 2006-08-28 01:52:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-08-28 01:52:56 +0000 |
commit | 40cf2291a7723a4ffa2db698bcfc2c059427501b (patch) | |
tree | 3337d403462ced48f545bca0cf2e46e2980e1f33 /ld/scripttempl/elf32crx.sc | |
parent | cb6c09ace53de4a2952de95ff0f1f91e4809fbaa (diff) | |
download | gdb-40cf2291a7723a4ffa2db698bcfc2c059427501b.zip gdb-40cf2291a7723a4ffa2db698bcfc2c059427501b.tar.gz gdb-40cf2291a7723a4ffa2db698bcfc2c059427501b.tar.bz2 |
* scripttempl/elf.sc: Ensure that crtbegin and crtend entries will
not match random object files in a path containing "crtbegin" or
"crtend" as part of a directory name.
* scripttempl/armbpabi.sc: Likewise.
* scripttempl/crisaout.sc: Likewise.
* scripttempl/elf32crx.sc: Likewise.
* scripttempl/elf32sh-symbian.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/mmo.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.
Diffstat (limited to 'ld/scripttempl/elf32crx.sc')
-rw-r--r-- | ld/scripttempl/elf32crx.sc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ld/scripttempl/elf32crx.sc b/ld/scripttempl/elf32crx.sc index 63401fe..4304187 100644 --- a/ld/scripttempl/elf32crx.sc +++ b/ld/scripttempl/elf32crx.sc @@ -90,14 +90,15 @@ SECTIONS doesn't matter which directory crtbegin.o is in. */ - KEEP (*crtbegin*.o(.ctors)) - + KEEP (*crtbegin.o(.ctors)) + KEEP (*crtbegin?.o(.ctors)) + /* We don't want to include the .ctor section from the crtend.o file until after the sorted ctors. The .ctor section from the crtend file contains the end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend*.o) .ctors)) + KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o) .ctors)) KEEP (*(SORT(.ctors.*))) KEEP (*(.ctors)) __CTOR_END = .; @@ -106,8 +107,9 @@ SECTIONS .dtor ALIGN(4) : { __DTOR_START = .; - KEEP (*crtbegin*.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend*.o) .dtors)) + KEEP (*crtbegin.o(.dtors)) + KEEP (*crtbegin?.o(.dtors)) + KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o) .dtors)) KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) __DTOR_END = .; |