diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-02-22 17:32:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-02-22 17:32:30 +0000 |
commit | 6b8929a172e10e0709e101a6d4d23acd63616039 (patch) | |
tree | 897902811a0e89772e960a89c87e8dd0dfd7b64d /ld/ldlang.c | |
parent | 2e5fdb1db09c6dbadd0ec6ed93bfc508aa0109f9 (diff) | |
download | gdb-6b8929a172e10e0709e101a6d4d23acd63616039.zip gdb-6b8929a172e10e0709e101a6d4d23acd63616039.tar.gz gdb-6b8929a172e10e0709e101a6d4d23acd63616039.tar.bz2 |
* ldlang.h (largest_section): Don't declare.
* ldlang.c (largest_section): Don't define.
(size_input_section): Don't set largest_section; not used.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 8e95b8a..e78d31b 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -151,7 +151,6 @@ lang_statement_list_type *stat_ptr = &statement_list; lang_statement_list_type file_chain = {0}; CONST char *entry_symbol = 0; -bfd_size_type largest_section = 0; boolean lang_has_input_file = false; boolean had_output_filename = false; boolean lang_float_flag = false; @@ -1559,15 +1558,6 @@ size_input_section (this_ptr, output_section_statement, fill, dot, relax) dot = insert_pad (this_ptr, fill, i->alignment_power, output_section_statement->bfd_section, dot); - /* remember the largest size so we can malloc the largest area - needed for the output stage. Only remember the size of sections - which we will actually allocate */ - if ((i->flags & SEC_HAS_CONTENTS) != 0 - && (bfd_get_section_size_before_reloc (i) > largest_section)) - { - largest_section = bfd_get_section_size_before_reloc (i); - } - /* Remember where in the output section this input section goes */ i->output_offset = dot - output_section_statement->bfd_section->vma; |