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 | |
parent | 52b5a0c663ba7cb4f1488a7e96addc303fc6e021 (diff) | |
download | gdb-5c1e6d53a518442741f05175dbded0d1880f4759.zip gdb-5c1e6d53a518442741f05175dbded0d1880f4759.tar.gz gdb-5c1e6d53a518442741f05175dbded0d1880f4759.tar.bz2 |
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')
-rw-r--r-- | ld/emultempl/alphaelf.em | 2 | ||||
-rw-r--r-- | ld/emultempl/elf32.em | 6 | ||||
-rw-r--r-- | ld/emultempl/mmo.em | 2 | ||||
-rw-r--r-- | ld/emultempl/pe.em | 3 | ||||
-rw-r--r-- | ld/emultempl/pep.em | 3 | ||||
-rw-r--r-- | ld/emultempl/ppc32elf.em | 2 | ||||
-rw-r--r-- | ld/emultempl/spuelf.em | 2 |
7 files changed, 9 insertions, 11 deletions
diff --git a/ld/emultempl/alphaelf.em b/ld/emultempl/alphaelf.em index 9df63a6..55e01be 100644 --- a/ld/emultempl/alphaelf.em +++ b/ld/emultempl/alphaelf.em @@ -47,7 +47,7 @@ alpha_after_open (void) lang_output_section_statement_type *plt_os[2]; num_plt = 0; - for (os = &lang_output_section_statement.head->output_section_statement; + for (os = &lang_os_list.head->output_section_statement; os != NULL; os = os->next) { diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 5cdd1bd..b3c012c 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); diff --git a/ld/emultempl/mmo.em b/ld/emultempl/mmo.em index 0a25851..3e24e36 100644 --- a/ld/emultempl/mmo.em +++ b/ld/emultempl/mmo.em @@ -166,7 +166,7 @@ mmo_place_orphan (asection *s, /* We have to find the oss before this one, so we can use that as "after". */ - for (lookup = &lang_output_section_statement.head->output_section_statement; + for (lookup = &lang_os_list.head->output_section_statement; lookup != NULL && lookup->next != before; lookup = lookup->next) ; diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 218f98a..834215a 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -2154,8 +2154,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s, NULL); 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; } /* All sections in an executable must be aligned to a page boundary. diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em index 649efaf..9eb7cd7 100644 --- a/ld/emultempl/pep.em +++ b/ld/emultempl/pep.em @@ -1951,8 +1951,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s, NULL); 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; } /* All sections in an executable must be aligned to a page boundary. diff --git a/ld/emultempl/ppc32elf.em b/ld/emultempl/ppc32elf.em index 77143e7..5387ef1 100644 --- a/ld/emultempl/ppc32elf.em +++ b/ld/emultempl/ppc32elf.em @@ -79,7 +79,7 @@ ppc_after_check_relocs (void) num_got = 0; num_plt = 0; - for (os = &lang_output_section_statement.head->output_section_statement; + for (os = &lang_os_list.head->output_section_statement; os != NULL; os = os->next) { diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em index 2f8645d..f630975 100644 --- a/ld/emultempl/spuelf.em +++ b/ld/emultempl/spuelf.em @@ -290,7 +290,7 @@ spu_before_allocation (void) } /* Ensure alignment of overlay sections is sufficient. */ - 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 |