This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Move bfd *_pointer_linker_section into elf32-ppc.c


On Fri, Jul 04, 2003 at 11:20:56AM +0930, Alan Modra wrote:
> Applied.  Earlier than a full day, but I wanted to fix a couple of other
> bugs..

Argh, I'm losing it.  That last commit included the fix.

	* elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
	ppc_elf_create_got if we've already done so.

Index: elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -p -r1.88 -r1.89
--- elf32-ppc.c	25 Jun 2003 11:05:58 -0000	1.88
+++ elf32-ppc.c	4 Jul 2003 01:50:12 -0000	1.89
@@ -2318,7 +2672,10 @@ ppc_elf_create_dynamic_sections (bfd *ab
   asection *s;
   flagword flags;
 
-  if (!ppc_elf_create_got (abfd, info))
+  htab = ppc_elf_hash_table (info);
+
+  if (htab->got == NULL
+      && !ppc_elf_create_got (abfd, info))
     return FALSE;
 
   if (!_bfd_elf_create_dynamic_sections (abfd, info))
@@ -2327,7 +2684,6 @@ ppc_elf_create_dynamic_sections (bfd *ab
   flags = (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY
 	   | SEC_LINKER_CREATED);
 
-  htab = ppc_elf_hash_table (info);
   htab->dynbss = bfd_get_section_by_name (abfd, ".dynbss");
   htab->dynsbss = s = bfd_make_section (abfd, ".dynsbss");
   if (s == NULL

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]