OSDN Git Service

* ldlang.h (lang_output_section_find): Define.
authorAlan Modra <amodra@bigpond.net.au>
Sun, 7 Sep 2008 04:02:31 +0000 (04:02 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Sun, 7 Sep 2008 04:02:31 +0000 (04:02 +0000)
commit206bf79227fd96a303e808f3da2c9381e0965544
tree38da8cfb26bf1c8a87a15eed57a0528a2053b60d
parentac994f9a80e9c4523da093b9de6606b9f5642116
* ldlang.h (lang_output_section_find): Define.
(lang_output_section_statement_lookup): Update prototype.
* ldlang.c (lang_output_section_find,
lang_output_section_statement_lookup_1): Merge into..
(lang_output_section_statement_lookup): ..here.  Update all callers.
(process_insert_statements): Set constraint negative
for output section statements we might be inserting.  Make error
fatal on not finding insertion section.
(lang_output_section_find): Rather than comparing
output_section_statement.constraint against -1, test whether
it is postive.
(lang_output_section_statement_lookup_1): Likewise.
(output_prev_sec_find, strip_excluded_output_sections): Likewise.
(lang_record_phdrs): Likewise.
* emultempl/elf32.em (output_rel_find): Likewise.
* NEWS: Mention INSERT.
ld/ChangeLog
ld/NEWS
ld/emultempl/elf32.em
ld/ldlang.c
ld/ldlang.h