diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-05-13 05:58:00 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-05-13 05:58:00 +0000 |
commit | 64a3579f6fa9a96ba9d4d0ae9dd21199afa58f1b (patch) | |
tree | a7f595ad16c44610f02969a5fe44134b819a8995 | |
parent | e694c0149f0db22a667c7808b5523136ea02102f (diff) | |
download | binutils-redhat-64a3579f6fa9a96ba9d4d0ae9dd21199afa58f1b.tar.gz |
Apply 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
SEC_LOAD.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 97cc25fc3b..b9d811fbb6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2011-05-13 Alan Modra <amodra@gmail.com> + + Apply 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> + * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for + SEC_LOAD. + 2011-05-06 Richard Sandiford <richard.sandiford@linaro.org> * 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 8c9132ce69..543a7272b2 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; |