aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-22 23:07:14 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-22 23:07:14 +0000
commit02b579808967d7c8fb3449e28708af5c5186943e (patch)
tree9e9e3048a88f9f21557e7228f3be54e39a35d1d5 /ld
parenta537cb21bb2fe12366941621323cc60a4317bd38 (diff)
downloadgdb-02b579808967d7c8fb3449e28708af5c5186943e.zip
gdb-02b579808967d7c8fb3449e28708af5c5186943e.tar.gz
gdb-02b579808967d7c8fb3449e28708af5c5186943e.tar.bz2
* ldlang.c (end_of_data_section_statement_list): Don't define.
(lang_leave_output_section_statement): Don't set obsolete variable end_of_data_section_statement_list.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c13
2 files changed, 4 insertions, 13 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0e287e3..58ab62e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
+ * ldlang.c (end_of_data_section_statement_list): Don't define.
+ (lang_leave_output_section_statement): Don't set obsolete variable
+ end_of_data_section_statement_list.
+
* scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
ALIGN.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 8b6f6ab..6a4ab5f 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -49,11 +49,6 @@ static struct obstack stat_obstack;
#define obstack_chunk_free free
static CONST char *startup_file;
static lang_statement_list_type input_file_chain;
-
-/* Points to the last statement in the .data section, so we can add
- stuff to the data section without pain */
-static lang_statement_list_type end_of_data_section_statement_list;
-
static boolean placed_commons = false;
static lang_output_section_statement_type *default_common_section;
static boolean map_option_f;
@@ -2767,14 +2762,6 @@ lang_leave_output_section_statement (fill, memspec)
current_section->fill = fill;
current_section->region = lang_memory_region_lookup (memspec);
stat_ptr = &statement_list;
-
- /* We remember if we are closing a .data section, since we use it to
- store constructors in */
- if (strcmp (current_section->name, ".data") == 0)
- {
- end_of_data_section_statement_list = statement_list;
-
- }
}
/*