aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-29 12:07:01 +0000
committerAlan Modra <amodra@gmail.com>2001-09-29 12:07:01 +0000
commit862517b6506a76ce9dc0e06b8f1d98577371e3b4 (patch)
treecb956a05e4995c05b5dec75e0eb63df3d1510f37 /bfd/section.c
parent65f38f15bf0d85cf1b7d142f76278a668652b4b7 (diff)
downloadgdb-862517b6506a76ce9dc0e06b8f1d98577371e3b4.zip
gdb-862517b6506a76ce9dc0e06b8f1d98577371e3b4.tar.gz
gdb-862517b6506a76ce9dc0e06b8f1d98577371e3b4.tar.bz2
* section.c (struct sec): Remove kept_section.
(STD_SECTION): Remove kept_section initialisation. (bfd_make_section_anyway): Here too. * ecoff.c (bfd_debug_section): Remove kept_section initialisation. * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section. * elflink.h (elf_link_input_bfd): Set discarded link-once section symbols to zero, and remove all code involved with kept_section and tracking section symbol values. * bfd-in2.h: Regenerate. * configure.in: Bump version number. * configure: Regenerate. * ldlang.c (section_already_linked): Remove assignment to kept_section.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/bfd/section.c b/bfd/section.c
index 274979b..f3bd381 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -485,10 +485,6 @@ CODE_FRAGMENT
.
. struct bfd_comdat_info *comdat;
.
-. {* Points to the kept section if this section is a link-once section,
-. and is discarded. *}
-. struct sec *kept_section;
-.
. {* When a section is being output, this value changes as more
. linenumbers are written out. *}
.
@@ -599,8 +595,8 @@ static const asymbol global_syms[] =
/* line_filepos, userdata, contents, lineno, lineno_count, */ \
0, NULL, NULL, NULL, 0, \
\
- /* entsize, comdat, kept_section, moving_line_filepos, */ \
- 0, NULL, NULL, 0, \
+ /* entsize, comdat, moving_line_filepos, */ \
+ 0, NULL, 0, \
\
/* target_index, used_by_bfd, constructor_chain, owner, */ \
0, NULL, NULL, NULL, \
@@ -807,7 +803,6 @@ bfd_make_section_anyway (abfd, name)
newsect->line_filepos = 0;
newsect->owner = abfd;
newsect->comdat = NULL;
- newsect->kept_section = NULL;
/* Create a symbol whos only job is to point to this section. This is
useful for things like relocs which are relative to the base of a