aboutsummaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-20 16:10:18 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-20 16:10:18 +0000
commitf69e888e4dfa4d47bfc8eefe67ea6ae36455981c (patch)
tree63acbac82b3817c7781f6f16024c80aef27b6c70 /bfd/aoutx.h
parentcc274a2ecb8ab5f8b3f370e685f1a3994677d653 (diff)
downloadgdb-f69e888e4dfa4d47bfc8eefe67ea6ae36455981c.zip
gdb-f69e888e4dfa4d47bfc8eefe67ea6ae36455981c.tar.gz
gdb-f69e888e4dfa4d47bfc8eefe67ea6ae36455981c.tar.bz2
* aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
a reloc against a local symbol, even if it's not a section.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r--bfd/aoutx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 2a44a1f..e41f724 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -2050,7 +2050,11 @@ NAME(aout,swap_ext_reloc_out) (abfd, g, natptr)
}
else if ((sym->flags & BSF_SECTION_SYM) == 0)
{
- r_extern = 1;
+ if (bfd_is_und_section (bfd_get_section (sym))
+ || (sym->flags & BSF_GLOBAL) != 0)
+ r_extern = 1;
+ else
+ r_extern = 0;
r_index = (*(g->sym_ptr_ptr))->KEEPIT;
}
else