From: H.J. Lu Date: Tue, 18 Apr 2000 23:39:03 +0000 (+0000) Subject: 2000-04-18 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20d04697a848ee98be9adc529b80aa8937950c71;p=binutils-gdb.git 2000-04-18 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call lang_leave_output_section_statement () after calling lang_enter_output_section_statement (). * emultempl/armelf.em: Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index fc0c50ed4fe..d567f001c46 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2000-04-18 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call + lang_leave_output_section_statement () after calling + lang_enter_output_section_statement (). + * emultempl/armelf.em: Likewise. + 2000-04-18 Alan Modra * emultempl/elf32.em (struct orphan_save): Add section field. diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index 8632bd3bb49..8de6c9bc3e0 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -933,13 +933,14 @@ gld${EMULATION_NAME}_place_orphan (file, s) os = lang_output_section_statement_lookup (outsecname); wild_doit (&os->children, s, os, file); + lang_leave_output_section_statement + ((bfd_vma) 0, "*default*", + (struct lang_output_section_phdr_list *) NULL, "*default*"); + if (place != NULL) { asection *snew, **pps; - lang_leave_output_section_statement - ((bfd_vma) 0, "*default*", - (struct lang_output_section_phdr_list *) NULL, "*default*"); stat_ptr = &add; if (*ps == '\0' && config.build_constructors) diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index d5ee9af18ed..d57aadb1a7e 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1015,13 +1015,14 @@ gld${EMULATION_NAME}_place_orphan (file, s) os = lang_output_section_statement_lookup (outsecname); wild_doit (&os->children, s, os, file); + lang_leave_output_section_statement + ((bfd_vma) 0, "*default*", + (struct lang_output_section_phdr_list *) NULL, "*default*"); + if (place != NULL) { asection *snew, **pps; - lang_leave_output_section_statement - ((bfd_vma) 0, "*default*", - (struct lang_output_section_phdr_list *) NULL, "*default*"); stat_ptr = &add; if (*ps == '\0' && config.build_constructors)