diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2002-02-05 06:52:17 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2002-02-05 06:52:17 +0000 |
commit | e3dc8847695c8f91bff0067d38e08969d482611f (patch) | |
tree | bab5779bcc20647f70b9bce014bd0086a408551e /ld/ldlang.c | |
parent | b611beb0432479914aa8cc14201f0bc98f4c97ac (diff) | |
download | gdb-e3dc8847695c8f91bff0067d38e08969d482611f.zip gdb-e3dc8847695c8f91bff0067d38e08969d482611f.tar.gz gdb-e3dc8847695c8f91bff0067d38e08969d482611f.tar.bz2 |
* ldlang.c (lang_reset_memory_regions): Rename from
reset_memory_regions. Change all callers. Make public.
* ldlang.h (lang_reset_memory_regions): Prototype.
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
lang_reset_memory_regions before lang_size_sections.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index a7b53dd..456bc7f 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -132,7 +132,6 @@ static boolean lang_one_common PARAMS ((struct bfd_link_hash_entry *, PTR)); static void lang_place_orphans PARAMS ((void)); static int topower PARAMS ((int)); static void lang_set_startof PARAMS ((void)); -static void reset_memory_regions PARAMS ((void)); static void gc_section_callback PARAMS ((lang_wild_statement_type *, struct wildcard_list *, asection *, lang_input_statement_type *, PTR)); @@ -3972,8 +3971,8 @@ lang_final () /* Reset the current counters in the regions. */ -static void -reset_memory_regions () +void +lang_reset_memory_regions () { lang_memory_region_type *p = lang_memory_region_list; asection *o; @@ -4160,7 +4159,7 @@ lang_process () do { - reset_memory_regions (); + lang_reset_memory_regions (); relax_again = false; |