This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Small tidy to elf64-ppc.c
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Fri, 1 Apr 2005 12:24:24 +0930
- Subject: Small tidy to elf64-ppc.c
We're alway SEC_ALLOC here.
* elf64-ppc.c (ppc64_elf_check_relocs): Remove unnecessary
SEC_ALLOC check.
Applying mainline and branch.
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.194
diff -u -p -r1.194 elf64-ppc.c
--- bfd/elf64-ppc.c 5 Mar 2005 11:44:14 -0000 1.194
+++ bfd/elf64-ppc.c 1 Apr 2005 02:00:21 -0000
@@ -4686,9 +4688,8 @@ ppc64_elf_check_relocs (bfd *abfd, struc
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))
--
Alan Modra
IBM OzLabs - Linux Technology Centre