* elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
authorCatherine Moore <clm@redhat.com>
Wed, 28 Jan 2009 16:35:13 +0000 (16:35 +0000)
committerCatherine Moore <clm@redhat.com>
Wed, 28 Jan 2009 16:35:13 +0000 (16:35 +0000)
        SEC_LOAD for dynamic relocation sections.

bfd/ChangeLog
bfd/elf32-arm.c

index 6f16c7dade09459413271367249a6185f3a9f0c4..45653144e260ed029a6d366025fa51996803cc9c 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-28  Catherine Moore <clm@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
+       SEC_LOAD for dynamic relocation sections.
+
 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
 
        * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
index 5fdd1382307fc4643cfdc22b380ba14cb7ca9cfc..48421795f1dcd2dd6b372e06ee0531558e35a15e 100644 (file)
@@ -9643,7 +9643,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
                        flagword flags;
 
                        flags = bfd_get_section_flags (dynobj, sreloc);
-                       flags &= ~(SEC_LOAD | SEC_ALLOC);
+                       flags |= (SEC_LOAD | SEC_ALLOC);
                        bfd_set_section_flags (dynobj, sreloc, flags);
                      }
                  }