(ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
authorAlan Modra <amodra@gmail.com>
Fri, 1 Apr 2005 02:40:35 +0000 (02:40 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 1 Apr 2005 02:40:35 +0000 (02:40 +0000)
bfd/ChangeLog
bfd/elf64-ppc.c

index 08bc6ee6a82844e05b0348db3f05e872db09bda0..a4c1de21b5d1825755698e853f3794015e1083e2 100644 (file)
@@ -2,6 +2,7 @@
 
        * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
        rather than 0.
+       (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
 
 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
 
index 5a5e3a2c81d24c7d59a09bfef9d4062623a190cd..9377564b1e265c1c40ff70cf100ff2e5a1857040 100644 (file)
@@ -4688,9 +4688,8 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
 
                      sreloc = bfd_make_section (dynobj, name);
                      flags = (SEC_HAS_CONTENTS | SEC_READONLY
-                              | SEC_IN_MEMORY | SEC_LINKER_CREATED);
-                     if ((sec->flags & SEC_ALLOC) != 0)
-                       flags |= SEC_ALLOC | SEC_LOAD;
+                              | SEC_IN_MEMORY | SEC_LINKER_CREATED
+                              | SEC_ALLOC | SEC_LOAD);
                      if (sreloc == NULL
                          || ! bfd_set_section_flags (dynobj, sreloc, flags)
                          || ! bfd_set_section_alignment (dynobj, sreloc, 3))