Skip to contentSkip to conversation

ppc64: Fix linker script

PATCH Applied Andreas Färber 3 participants 4 messages Oct 4, 2011 – Oct 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64: Fix linker script

Since commit 8733f609 (Fix linker scripts) linking on Linux/ppc64 fails:

LINK ppc64-linux-user/qemu-ppc64
/usr/lib64/gcc/powerpc64-suse-linux/4.3/../../../../powerpc64-suse-linux/bin/ld:/home/afaerber/qemu/ppc64.ld:84: syntax error
collect2: ld gab 1 als Ende-Status zurück
make[1]: *** [qemu-ppc64] Fehler 1
make: *** [subdir-ppc64-linux-user] Fehler 2

Fix by removing a leftover line in the ppc64 linker script.

Cc Gerd Hoffmann <[email protected]>
Cc Blue Swirl <[email protected]>
---
 ppc64.ld |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
ppc64.ld +2 -2
index 0059ee5..0a7c0dd 100644
@@ -81,8 +81,8 @@ SECTIONS
   .sdata2         : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) }
   .sbss2          : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
   .eh_frame_hdr : { *(.eh_frame_hdr) }
-*(.gcc_except_table.*) } /* Adjust the address for the data segment.  We want to
-adjust up to +     the same address within the page on the next page up.  */
+  /* Adjust the address for the data segment.  We want to adjust up to
+     the same address within the page on the next page up.  */
   . = ALIGN (0x10000) - ((0x10000 - .) & (0x10000 - 1)); . = DATA_SEGMENT_ALIGN
 (0x10000, 0x1000);   /* Exception handling  */
   .eh_frame       : { KEEP (*(.eh_frame)) }
Signature · 1 line
1.6.0.2
#1 lore raw
Quoted 8 lines · Andreas Färber

Since commit 8733f609 (Fix linker scripts) linking on Linux/ppc64 fails:

LINK ppc64-linux-user/qemu-ppc64
/usr/lib64/gcc/powerpc64-suse-linux/4.3/../../../../powerpc64-suse-linux/bin/ld:/home/afaerber/qemu/ppc64.ld:84: syntax error
collect2: ld gab 1 als Ende-Status zurück
make[1]: *** [qemu-ppc64] Fehler 1
make: *** [subdir-ppc64-linux-user] Fehler 2

Quoted 5 lines

Fix by removing a leftover line in the ppc64 linker script.

Thanks, applied to ppc-next.

Alex

#2 lore raw
In reply to Andreas Färber
Quoted 1 line · Andreas Färber

Since commit 8733f609 (Fix linker scripts) linking on Linux/ppc64 fails:

It occurs to me to wonder if we ought to simply auto-detect the presence of the -Ttext-segment ADDR option. If that's present, don't override the linker script and all the changes that might have been introduced therein.

r~

#3 lore raw
Quoted 6 lines · Richard Henderson
Quoted 1 line · Andreas Färber

Since commit 8733f609 (Fix linker scripts) linking on Linux/ppc64 fails:

It occurs to me to wonder if we ought to simply auto-detect the presence of the -Ttext-segment ADDR option. If that's present, don't override the linker script and all the changes that might have been introduced therein.

I'm pretty sure that is unrelated to fixing the compile breakage :)

Alex