diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2000-09-29 19:03:57 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2000-09-29 19:03:57 +0000 |
commit | da56323573d61f4db636c17a736151482ac99f40 (patch) | |
tree | 32690b14cce6d40a77bae7def8423f005bf5ffcd /ld/scripttempl/crisaout.sc | |
parent | 6db48a686e95f11b326da308c38607cbf30824ce (diff) | |
download | binutils-redhat-da56323573d61f4db636c17a736151482ac99f40.tar.gz |
* scripttempl/crisaout.sc (ENTRY): Now __start.
(.text): Add default setting for __start.
Remove CONSTRUCTORS handling.
(/DISCARD/): Add .gnu.warning.*.
* emulparams/crislinux.sh (ENTRY): Now __start.
(TEXT_START_SYMBOLS): New; provide __Stext and __start default.
* emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
(ENTRY): Now __start.
(INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
(EXECUTABLE_SYMBOLS): Add default setting for __start.
Diffstat (limited to 'ld/scripttempl/crisaout.sc')
-rw-r--r-- | ld/scripttempl/crisaout.sc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/ld/scripttempl/crisaout.sc b/ld/scripttempl/crisaout.sc index 677748286b..927ec9c954 100644 --- a/ld/scripttempl/crisaout.sc +++ b/ld/scripttempl/crisaout.sc @@ -1,7 +1,7 @@ cat <<EOF OUTPUT_FORMAT("a.out-cris") OUTPUT_ARCH(cris) -ENTRY(_start) +ENTRY(__start) SECTIONS { .text ${RELOCATING+ ${TEXT_START_ADDR}}: @@ -10,6 +10,10 @@ SECTIONS ${RELOCATING+ __Stext = .;} ${RELOCATING+*(.startup)} *(.text) + ${RELOCATING+__start = DEFINED(__start) ? __start : + DEFINED(_start) ? _start : + DEFINED(start) ? start : + DEFINED(.startup) ? .startup + 2 : 2;} ${RELOCATING+*(.text.*)} ${RELOCATING+*(.gnu.linkonce.t*)} ${RELOCATING+*(.rodata)} @@ -41,14 +45,6 @@ SECTIONS ${RELOCATING+PROVIDE (__fini__end = .);} ${RELOCATING+ ___fini__end = .;} - /* Putting constructors in constant store is sane as long as - there's no need for dynamic fixups. */ - /* The constructors and destructors set symbols are unused now that - collect2 has its wicked way. */ - ${CONSTRUCTING+ ___aout_ctors_dtors_begin = .;} - ${CONSTRUCTING+ SORT(CONSTRUCTORS);} - ${CONSTRUCTING+ ___aout_ctors_dtors_end = .;} - /* Cater to linking from ELF. */ ${CONSTRUCTING+ PROVIDE(___ctors = .);} ${CONSTRUCTING+ ___elf_ctors_dtors_begin = .;} @@ -111,7 +107,8 @@ SECTIONS /* Unfortunately, stabs are not mappable from ELF to a.out. It can probably be fixed with some amount of work. */ - /DISCARD/ : { *(.stab) *(.stab*) *(.debug) *(.debug*) *(.comment) } + /DISCARD/ : + { *(.stab) *(.stab*) *(.debug) *(.debug*) *(.comment) *(.gnu.warning.*) } /* For the rsim and xsim simulators. */ ${RELOCATING+ PROVIDE(__Endmem = 0x10000000);} |