* [Qemu-devel] [PATCH] ppc64: Fix linker script
@ 2011-10-04 15:14 Andreas Färber
2011-10-04 15:17 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
2011-10-04 15:35 ` [Qemu-devel] " Richard Henderson
0 siblings, 2 replies; 4+ messages in thread
From: Andreas Färber @ 2011-10-04 15:14 UTC (permalink / raw)
To: qemu-devel; +Cc: Blue Swirl, qemu-ppc, Andreas Färber, Gerd Hoffmann
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 <kraxel@redhat.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
ppc64.ld | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ppc64.ld b/ppc64.ld
index 0059ee5..0a7c0dd 100644
--- a/ppc64.ld
+++ b/ppc64.ld
@@ -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)) }
--
1.6.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc64: Fix linker script
2011-10-04 15:14 [Qemu-devel] [PATCH] ppc64: Fix linker script Andreas Färber
@ 2011-10-04 15:17 ` Alexander Graf
2011-10-04 15:35 ` [Qemu-devel] " Richard Henderson
1 sibling, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2011-10-04 15:17 UTC (permalink / raw)
To: Andreas Färber; +Cc: qemu-ppc, qemu-devel, Gerd Hoffmann
On 10/04/2011 05:14 PM, Andreas Färber wrote:
> 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<kraxel@redhat.com>
> Cc: Blue Swirl<blauwirbel@gmail.com>
> Signed-off-by: Andreas Färber<afaerber@suse.de>
Thanks, applied to ppc-next.
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] ppc64: Fix linker script
2011-10-04 15:14 [Qemu-devel] [PATCH] ppc64: Fix linker script Andreas Färber
2011-10-04 15:17 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
@ 2011-10-04 15:35 ` Richard Henderson
2011-10-05 20:50 ` Alexander Graf
1 sibling, 1 reply; 4+ messages in thread
From: Richard Henderson @ 2011-10-04 15:35 UTC (permalink / raw)
To: Andreas Färber; +Cc: Blue Swirl, qemu-ppc, qemu-devel, Gerd Hoffmann
On 10/04/2011 08:14 AM, Andreas Färber wrote:
> 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~
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] ppc64: Fix linker script
2011-10-04 15:35 ` [Qemu-devel] " Richard Henderson
@ 2011-10-05 20:50 ` Alexander Graf
0 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2011-10-05 20:50 UTC (permalink / raw)
To: Richard Henderson
Cc: Blue Swirl, Gerd Hoffmann, qemu-ppc, Andreas Färber,
qemu-devel
On 04.10.2011, at 17:35, Richard Henderson wrote:
> On 10/04/2011 08:14 AM, Andreas Färber wrote:
>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-05 20:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-04 15:14 [Qemu-devel] [PATCH] ppc64: Fix linker script Andreas Färber
2011-10-04 15:17 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
2011-10-04 15:35 ` [Qemu-devel] " Richard Henderson
2011-10-05 20:50 ` Alexander Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).