aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-04-01 02:40:35 +0000
committerAlan Modra <amodra@gmail.com>2005-04-01 02:40:35 +0000
commit77623a344f4966ec46edcf3c68ea2fb29169d880 (patch)
treea4dd75c62dcc9b8260107374e662b432c73880e8 /bfd/elf64-ppc.c
parent7356fed57f1a99325c89d5d05bdc46ebfd52ce16 (diff)
downloadgdb-77623a344f4966ec46edcf3c68ea2fb29169d880.zip
gdb-77623a344f4966ec46edcf3c68ea2fb29169d880.tar.gz
gdb-77623a344f4966ec46edcf3c68ea2fb29169d880.tar.bz2
(ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 5a5e3a2..9377564 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -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))