[RFA:] ld section location mishap. Attention PE, HPPA, PPC64.

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Mon Feb 4 23:24:00 GMT 2002


Alan asked me to commit this too, done; I also update copyright
years for hppaelf.em.  (This leaves just pe-dll.c unfixed AFAIK.)

	* emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.

Index: ld/emultempl/hppaelf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/hppaelf.em,v
retrieving revision 1.18
diff -u -p -r1.18 hppaelf.em
- --- hppaelf.em	2001/12/13 11:09:34	1.18
+++ hppaelf.em	2002/02/05 03:13:51
@@ -226,6 +226,8 @@ hppaelf_layout_sections_again ()
      add even more stubs.  */
   need_laying_out = 0;
 
+  lang_reset_memory_regions ();
+
   /* Resize the sections.  */
   lang_size_sections (stat_ptr->head, abs_output_section,
 		      &stat_ptr->head, 0, (bfd_vma) 0, NULL);
Index: ld/emultempl/ppc64elf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/ppc64elf.em,v
retrieving revision 1.1
diff -u -p -r1.1 ppc64elf.em
- --- ppc64elf.em	2002/01/16 05:52:38	1.1
+++ ppc64elf.em	2002/02/05 03:13:51
@@ -76,6 +76,8 @@ gld${EMULATION_NAME}_finish ()
 	 need to adjust the stub size again.  */
       need_laying_out = 0;
 
+      lang_reset_memory_regions ();
+
       /* Resize the sections.  */
       lang_size_sections (stat_ptr->head, abs_output_section,
 			  &stat_ptr->head, 0, (bfd_vma) 0, NULL);

brgds, H-P



More information about the Binutils mailing list