From 39dcfe18ca8ab5b4b9824fde09cac4fd0aceff19 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 14 Aug 2001 02:01:31 +0000 Subject: (wild_doit): Rename to lang_add_section. --- ld/emultempl/beos.em | 5 +++-- ld/emultempl/elf32.em | 6 +++--- ld/emultempl/hppaelf.em | 2 +- ld/emultempl/pe.em | 6 +++--- 4 files changed, 10 insertions(+), 9 deletions(-) (limited to 'ld/emultempl') diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em index 23ac5d4113..1d9546b7d9 100644 --- a/ld/emultempl/beos.em +++ b/ld/emultempl/beos.em @@ -7,7 +7,8 @@ else fi cat >e${EMULATION_NAME}.c <wild_statement.children, s, os, file); + lang_add_section (&l->wild_statement.children, s, os, file); return true; } diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index ce06310fc4..55136cf8ed 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1085,7 +1085,7 @@ gld${EMULATION_NAME}_place_orphan (file, s) { /* We already have an output section statement with this name, and its bfd section, if any, has compatible flags. */ - wild_doit (&os->children, s, os, file); + lang_add_section (&os->children, s, os, file); return true; } } @@ -1100,7 +1100,7 @@ gld${EMULATION_NAME}_place_orphan (file, s) && strncmp (secname, ".gnu.warning.", sizeof ".gnu.warning." - 1) == 0 && hold_text.os != NULL) { - wild_doit (&hold_text.os->children, s, hold_text.os, file); + lang_add_section (&hold_text.os->children, s, hold_text.os, file); return true; } @@ -1205,7 +1205,7 @@ gld${EMULATION_NAME}_place_orphan (file, s) (etree_type *) NULL, (etree_type *) NULL); - wild_doit (&os->children, s, os, file); + lang_add_section (&os->children, s, os, file); lang_leave_output_section_statement ((bfd_vma) 0, "*default*", diff --git a/ld/emultempl/hppaelf.em b/ld/emultempl/hppaelf.em index 050020028d..93e847da06 100644 --- a/ld/emultempl/hppaelf.em +++ b/ld/emultempl/hppaelf.em @@ -258,7 +258,7 @@ hppaelf_add_stub_section (stub_sec_name, input_section) info.input_section = input_section; lang_list_init (&info.add); - wild_doit (&info.add, stub_sec, os, stub_file); + lang_add_section (&info.add, stub_sec, os, stub_file); if (info.add.head == NULL) goto err_ret; diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index fe1a757d15..6519eae6d3 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -9,7 +9,7 @@ rm -f e${EMULATION_NAME}.c (echo;echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-) cat >>e${EMULATION_NAME}.c <bfd_section != NULL && ((s->flags ^ os->bfd_section->flags) & (SEC_LOAD | SEC_ALLOC)) == 0) { - wild_doit (&add_child, s, os, file); + lang_add_section (&add_child, s, os, file); } else { @@ -1562,7 +1562,7 @@ gld_${EMULATION_NAME}_place_orphan (file, s) (etree_type *) NULL, (etree_type *) NULL); - wild_doit (&add_child, s, os, file); + lang_add_section (&add_child, s, os, file); lang_leave_output_section_statement ((bfd_vma) 0, "*default*", -- cgit v1.2.1