PR 2658
* elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic -shared link.
This commit is contained in:
parent
30b2f8e793
commit
7de713b9e5
@ -1,3 +1,9 @@
|
|||||||
|
2006-05-15 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
PR 2658
|
||||||
|
* elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic
|
||||||
|
-shared link.
|
||||||
|
|
||||||
2006-05-11 Michael Matz <matz@suse.de>
|
2006-05-11 Michael Matz <matz@suse.de>
|
||||||
|
|
||||||
* elflink.c (match_group_member): Correctly iterate group
|
* elflink.c (match_group_member): Correctly iterate group
|
||||||
|
@ -5181,6 +5181,10 @@ ppc_elf_relax_section (bfd *abfd,
|
|||||||
else if (r_type != R_PPC_PLTREL24)
|
else if (r_type != R_PPC_PLTREL24)
|
||||||
toff += irel->r_addend;
|
toff += irel->r_addend;
|
||||||
|
|
||||||
|
/* Attempted -shared link of non-pic code loses. */
|
||||||
|
if (tsec->output_section == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
symaddr = tsec->output_section->vma + tsec->output_offset + toff;
|
symaddr = tsec->output_section->vma + tsec->output_offset + toff;
|
||||||
|
|
||||||
roff = irel->r_offset;
|
roff = irel->r_offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user