* elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
This commit is contained in:
parent
91e21fb75f
commit
a8ad78a74e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-08-10 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
|
||||
|
||||
2009-08-10 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear plt
|
||||
|
|
|
@ -5905,8 +5905,9 @@ ppc_elf_relax_section (bfd *abfd,
|
|||
*again = FALSE;
|
||||
|
||||
/* Nothing to do if there are no relocations, and no need to do
|
||||
anything with non-alloc sections. */
|
||||
anything with non-alloc or non-code sections. */
|
||||
if ((isec->flags & SEC_ALLOC) == 0
|
||||
|| (isec->flags & SEC_CODE) == 0
|
||||
|| (isec->flags & SEC_RELOC) == 0
|
||||
|| isec->reloc_count == 0)
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue