Another try at correcting relocations against discarded

link-once section symbols.
This commit is contained in:
Alan Modra
2000-10-12 03:44:51 +00:00
parent 74bcd5294f
commit 24376d1b58
6 changed files with 63 additions and 21 deletions

View File

@@ -913,10 +913,6 @@ struct bfd_comdat_info
specific code; it is not an index into the list returned by
bfd_canonicalize_symtab. */
long symbol;
/* If this section is being discarded, the linker uses this field
to point to the input section which is being kept. */
struct sec *sec;
};
typedef struct sec
@@ -1219,6 +1215,10 @@ typedef struct sec
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. */