diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-04-18 23:39:03 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-04-18 23:39:03 +0000 |
commit | 20d04697a848ee98be9adc529b80aa8937950c71 (patch) | |
tree | b4974caae0b3c8040f12eeba5028d0267bbd4432 /ld/emultempl | |
parent | c41dbdb813c24638d246cd7bad3e36625a2bf530 (diff) | |
download | binutils-20d04697a848ee98be9adc529b80aa8937950c71.zip binutils-20d04697a848ee98be9adc529b80aa8937950c71.tar.gz binutils-20d04697a848ee98be9adc529b80aa8937950c71.tar.bz2 |
2000-04-18 H.J. Lu <hjl@gnu.org>
* 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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/armelf.em | 7 | ||||
-rw-r--r-- | ld/emultempl/elf32.em | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index 8632bd3..8de6c9b 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 d5ee9af..d57aadb 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) |