From 5c1e6d53a518442741f05175dbded0d1880f4759 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 31 Jul 2019 16:45:14 +0930 Subject: 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. --- ld/emultempl/elf32.em | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ld/emultempl/elf32.em') 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); -- cgit v1.2.3-65-gdbad