mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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.
This commit is contained in:
10
ld/ldlang.h
10
ld/ldlang.h
@@ -525,12 +525,13 @@ extern void lang_do_assignments
|
||||
statement != (lang_input_statement_type *) NULL; \
|
||||
statement = (lang_input_statement_type *) statement->next) \
|
||||
|
||||
#define lang_output_section_find(NAME) \
|
||||
lang_output_section_statement_lookup (NAME, 0, FALSE)
|
||||
|
||||
extern void lang_process
|
||||
(void);
|
||||
extern void ldlang_add_file
|
||||
(lang_input_statement_type *);
|
||||
extern lang_output_section_statement_type *lang_output_section_find
|
||||
(const char * const);
|
||||
extern lang_output_section_statement_type *lang_output_section_find_by_flags
|
||||
(const asection *, lang_output_section_statement_type **,
|
||||
lang_match_sec_type_func);
|
||||
@@ -541,9 +542,8 @@ extern lang_input_statement_type *lang_add_input_file
|
||||
(const char *, lang_input_file_enum_type, const char *);
|
||||
extern void lang_add_keepsyms_file
|
||||
(const char *);
|
||||
extern lang_output_section_statement_type *
|
||||
lang_output_section_statement_lookup
|
||||
(const char *const);
|
||||
extern lang_output_section_statement_type *lang_output_section_statement_lookup
|
||||
(const char *const, int, bfd_boolean);
|
||||
extern void ldlang_add_undef
|
||||
(const char *const);
|
||||
extern void lang_add_output_format
|
||||
|
||||
Reference in New Issue
Block a user