]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Apply 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
authorAlan Modra <amodra@gmail.com>
Fri, 13 May 2011 05:58:02 +0000 (05:58 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 13 May 2011 05:58:02 +0000 (05:58 +0000)
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
SEC_LOAD.

bfd/ChangeLog
bfd/elf64-ppc.c

index 97cc25fc3ba4d6670fd8f44b3c1bb381f0f758c1..b9d811fbb64f5740708f4d1891ae923883363f0b 100644 (file)
@@ -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
index 8c9132ce69d74c96635d86e99228ba41d2244f35..543a7272b286e4c48d273dda03f9cc38b44584a2 100644 (file)
@@ -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;