summaryrefslogtreecommitdiff
path: root/bfd/cofflink.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-09-03 16:06:12 +0000
committerNick Clifton <nickc@redhat.com>2003-09-03 16:06:12 +0000
commit47c7450c46004df628ea6eede21c349bc3b36a14 (patch)
tree1bd49708a64ea9b85265ef143ad6af70f53607be /bfd/cofflink.c
parentba480a6077752e57fc768451bb6845fdc77f871e (diff)
downloadbinutils-redhat-47c7450c46004df628ea6eede21c349bc3b36a14.tar.gz
Do not skip section symbols that are used in relocs.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r--bfd/cofflink.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 09f03f03ef..c1eee1b232 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -1481,13 +1481,12 @@ _bfd_coff_link_input_bfd (struct coff_final_link_info *finfo, bfd *input_bfd)
/* Skip section symbols for sections which are not going to be
emitted. */
if (!skip
+ && dont_skip_symbol == 0
&& isym.n_sclass == C_STAT
&& isym.n_type == T_NULL
- && isym.n_numaux > 0)
- {
- if ((*secpp)->output_section == bfd_abs_section_ptr)
- skip = TRUE;
- }
+ && isym.n_numaux > 0
+ && (*secpp)->output_section == bfd_abs_section_ptr)
+ skip = TRUE;
#endif
/* If we stripping debugging symbols, and this is a debugging