aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2000-09-29 19:03:57 +0000
committerHans-Peter Nilsson <hp@axis.com>2000-09-29 19:03:57 +0000
commit24dd9f7582c1f717bd82df8c76bba82211fa164a (patch)
tree5475639315e64c00428202885d06c5eb87325a82 /ld/scripttempl/crisaout.sc
parentOops. Forgot to commit ChangeLog (diff)
downloadbinutils-gdb-24dd9f7582c1f717bd82df8c76bba82211fa164a.tar.gz
binutils-gdb-24dd9f7582c1f717bd82df8c76bba82211fa164a.tar.bz2
binutils-gdb-24dd9f7582c1f717bd82df8c76bba82211fa164a.zip
* 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.sc17
1 files changed, 7 insertions, 10 deletions
diff --git a/ld/scripttempl/crisaout.sc b/ld/scripttempl/crisaout.sc
index 677748286b0..927ec9c9540 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);}