* elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
authorDaniel Jacobowitz <drow@false.org>
Tue, 17 Mar 2009 14:50:48 +0000 (14:50 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 17 Mar 2009 14:50:48 +0000 (14:50 +0000)
bfd/ChangeLog
bfd/elf32-arm.c

index 01ca8269ec70acf5a071f38eab964e3d05e27798..b2f3750a73cb4fea319a64cc7f22ee7ae12e6dd4 100644 (file)
@@ -1,3 +1,7 @@
+2009-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
+
 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
 
        * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
index 226434aa08efcb6f2e48ba597472409fa60e9bee..2cdbf861c6d0eef05f43fda7700337722c9ac20e 100644 (file)
@@ -9837,12 +9837,12 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
                      return FALSE;
 
                    /* BPABI objects never have dynamic relocations mapped.  */
-                   if (htab->symbian_p)
+                   if (htab->symbian_p)
                      {
                        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);
                      }
                  }