diff options
author | Alan Modra <amodra@gmail.com> | 2019-07-31 16:45:14 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-08-01 11:57:25 +0930 |
commit | 5c1e6d53a518442741f05175dbded0d1880f4759 (patch) | |
tree | 579752a5eaeb59fab201bb84adcc19ef9fb2c742 /ld/emultempl/elf32.em | |
parent | Automatic date update in version.in (diff) | |
download | binutils-gdb-5c1e6d53a518442741f05175dbded0d1880f4759.tar.gz binutils-gdb-5c1e6d53a518442741f05175dbded0d1880f4759.tar.bz2 binutils-gdb-5c1e6d53a518442741f05175dbded0d1880f4759.zip |
Rename lang_output_section_statement to lang_os_list
The idea is to make it a little easier to find uses of this list,
so searches don't hit occurrences of lang_output_section_statement_type
and lang_output_section_statement_enum.
* ldlang.h (lang_os_list): Rename from lang_output_section_statement.
* ldlang.c: Likewise throughout file.
* emultempl/alphaelf.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/mmo.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
* emultempl/spuelf.em: Likewise.
Diffstat (limited to 'ld/emultempl/elf32.em')
-rw-r--r-- | ld/emultempl/elf32.em | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 5cdd1bd667b..b3c012c46de 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1962,7 +1962,7 @@ output_rel_find (int isdyn, int rela) lang_output_section_statement_type *last_rel = NULL; lang_output_section_statement_type *last_rel_alloc = NULL; - for (lookup = &lang_output_section_statement.head->output_section_statement; + for (lookup = &lang_os_list.head->output_section_statement; lookup != NULL; lookup = lookup->next) { @@ -2136,7 +2136,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s, { /* Find the output mbind section with the same type, attributes and sh_info field. */ - for (os = &lang_output_section_statement.head->output_section_statement; + for (os = &lang_os_list.head->output_section_statement; os != NULL; os = os->next) if (os->bfd_section != NULL @@ -2315,7 +2315,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s, _bfd_elf_match_sections_by_type); if (after == NULL) /* *ABS* is always the first output section statement. */ - after = &lang_output_section_statement.head->output_section_statement; + after = &lang_os_list.head->output_section_statement; } return lang_insert_orphan (s, secname, constraint, after, place, NULL, NULL); |