* ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
authorAlan Modra <amodra@gmail.com>
Mon, 16 Feb 2009 07:25:52 +0000 (07:25 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Feb 2009 07:25:52 +0000 (07:25 +0000)
commitbde18da45e5dea021d600aadeab702a6f7e31cb2
treee570a5dab586d03eb27b2864e97118cde2f5e9fa
parent959b87241d85b42da82c45ecc4bc904895092730
* ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
(stat_save, stat_save_ptr): New variables.
(lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
(load_symbols): Likewise.  Delete dead "bad_load" code.
(open_input_bfds): Warn on script containing output sections.
(lang_enter_output_section_statement): Use push_stat_ptr.
(lang_enter_group): Likewise.
(lang_leave_output_section_statement): Use pop_stat_ptr.
(lang_leave_group): Likewise.
* ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
* ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
* emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/spuelf.em (spu_place_special_section): Likewise.
* emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
ld/ChangeLog
ld/emultempl/beos.em
ld/emultempl/pe.em
ld/emultempl/pep.em
ld/emultempl/spuelf.em
ld/emultempl/xtensaelf.em
ld/ldctor.c
ld/ldlang.c
ld/ldlang.h