PPC: Fix linker scripts on ppc hosts
When compiling qemu statically with multilib on PPC, we hit the
same issue that commit 845f2c2812
is fixing. Do the same here.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
0cdb95549f
commit
665a04ae1c
16
ppc.ld
16
ppc.ld
@ -49,8 +49,20 @@ SECTIONS
|
||||
.rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) }
|
||||
.rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
|
||||
.rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
|
||||
.rel.plt : { *(.rel.plt) }
|
||||
.rela.plt : { *(.rela.plt) }
|
||||
.rel.plt :
|
||||
{
|
||||
*(.rel.plt)
|
||||
PROVIDE (__rel_iplt_start = .);
|
||||
*(.rel.iplt)
|
||||
PROVIDE (__rel_iplt_end = .);
|
||||
}
|
||||
.rela.plt :
|
||||
{
|
||||
*(.rela.plt)
|
||||
PROVIDE (__rela_iplt_start = .);
|
||||
*(.rela.iplt)
|
||||
PROVIDE (__rela_iplt_end = .);
|
||||
}
|
||||
.init :
|
||||
{
|
||||
KEEP (*(.init))
|
||||
|
16
ppc64.ld
16
ppc64.ld
@ -54,8 +54,20 @@ SECTIONS
|
||||
*(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*)
|
||||
*(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
|
||||
}
|
||||
.rel.plt : { *(.rel.plt) }
|
||||
.rela.plt : { *(.rela.plt) }
|
||||
.rel.plt :
|
||||
{
|
||||
*(.rel.plt)
|
||||
PROVIDE (__rel_iplt_start = .);
|
||||
*(.rel.iplt)
|
||||
PROVIDE (__rel_iplt_end = .);
|
||||
}
|
||||
.rela.plt :
|
||||
{
|
||||
*(.rela.plt)
|
||||
PROVIDE (__rela_iplt_start = .);
|
||||
*(.rela.iplt)
|
||||
PROVIDE (__rela_iplt_end = .);
|
||||
}
|
||||
.rela.tocbss : { *(.rela.tocbss) }
|
||||
.init :
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user