From: Alan Modra Date: Fri, 13 May 2011 05:58:02 +0000 (+0000) Subject: Apply 2011-04-17 Jan Kratochvil X-Git-Tag: binutils-2_21_1~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fed9500a3335b41ae287cabbef914e12787faf0;p=thirdparty%2Fbinutils-gdb.git Apply 2011-04-17 Jan Kratochvil * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for SEC_LOAD. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 97cc25fc3ba..b9d811fbb64 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2011-05-13 Alan Modra + + Apply 2011-04-17 Jan Kratochvil + * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for + SEC_LOAD. + 2011-05-06 Richard Sandiford * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 8c9132ce69d..543a7272b28 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -3317,8 +3317,9 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd, { if (sec->vma > ent) break; - if ((sec->flags & SEC_ALLOC) == 0 - || (sec->flags & SEC_LOAD) == 0) + /* SEC_LOAD may not be set if SEC is from a separate debug + info file. */ + if ((sec->flags & SEC_ALLOC) == 0) break; if ((sec->flags & SEC_CODE) != 0) s->section = sec;