public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Small tidy to elf64-ppc.c
@ 2005-04-01  2:54 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2005-04-01  2:54 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-01  2:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-01  2:54 Small tidy to elf64-ppc.c Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).