diff options
author | Ivan Kuten <ivan.kuten@promwad.com> | 2007-11-09 10:07:15 +0000 |
---|---|---|
committer | Ivan Kuten <ivan.kuten@promwad.com> | 2007-11-09 10:07:15 +0000 |
commit | 29dbeb4e51e5e2e1956edc494f4ef946a6dd2a64 (patch) | |
tree | 6e4b7e81f61a7b9ef4453393603b377fbe9c394f /toolchain | |
parent | 00f34a0cdc3e3f82d0408cc1b820fcba0ef4aee0 (diff) |
update elf2flt nios2 support, thanks atle
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/elf2flt/elf2flt.nios2.conditional | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/toolchain/elf2flt/elf2flt.nios2.conditional b/toolchain/elf2flt/elf2flt.nios2.conditional index 8442f9385..ca99cb3a1 100644 --- a/toolchain/elf2flt/elf2flt.nios2.conditional +++ b/toolchain/elf2flt/elf2flt.nios2.conditional @@ -1,5 +1,5 @@ --- elf2flt/elf2flt.ld -++ elf2flt/elf2flt.ld ++++ elf2flt/elf2flt.ld @@ -62,6 +62,10 @@ *(.eh_frame) *(.gcc_except_table) @@ -11,3 +11,32 @@ /* Microblaze has .sdata and .sbss (small bss). They must be contiguous, so please don't move any of this. JW */ _ssrw = . ; +@@ -72,7 +72,7 @@ + _ssrw = . ; + *(.sdata) + *(.sdata.*) +- *(.sbss) /* Don't move this! */ ++ *(.sbss .gnu.linkonce.sb*) /* Don't move this! */ + _essrw = . ; + + _ssrw_size = _essrw - _ssrw; +--- elf2flt/ld-elf2flt.in ++++ elf2flt/ld-elf2flt.in +@@ -132,7 +132,7 @@ + esac + ARG1="$ARG1 -defsym $GOT_OFFSET=`expr ${SHARED_ID} '*' -4 - 4`" + fi +- if [ "@emit_relocs@" = "yes" ] ++ if [ "no" = "yes" ] + then + SEDOP="$SEDOP -e s/^SINGLE_LINK://" + else +@@ -155,7 +155,7 @@ + LDSCRIPT="$NEWLDSCRIPT" + fi + +- if [ "@emit_relocs@" = "yes" ] ++ if [ "no" = "yes" ] + then + $LINKER $EMUL $SDIRS -T $LDSCRIPT -q -o "$OFILE.gdb" $ARG1 ||exit $? + RFILE="$OFILE.gdb" |