aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2016-07-05 11:36:08 +0200
committerJan Beulich <jbeulich@suse.com>2016-07-05 11:36:08 +0200
commit1753ed681125949b081376dd97056a3f2930e7d7 (patch)
tree604de3fef2f91ab1dde48fba430522615b6e30e2 /ld/ldexp.c
parent33d0ab95489cb3cf7ec98bee63c3541b5295adb6 (diff)
downloadgdb-1753ed681125949b081376dd97056a3f2930e7d7.zip
gdb-1753ed681125949b081376dd97056a3f2930e7d7.tar.gz
gdb-1753ed681125949b081376dd97056a3f2930e7d7.tar.bz2
ld: track linker-definedness of symbols
Keep "lineno" as zero while not processing any script, and use it being zero to set the "linker_def" field to true.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r--ld/ldexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 4e9c03f..649954f 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -1182,7 +1182,7 @@ exp_fold_tree_1 (etree_type *tree)
h->type = bfd_link_hash_defined;
h->u.def.value = expld.result.value;
h->u.def.section = expld.result.section;
- h->linker_def = 0;
+ h->linker_def = ! tree->assign.type.lineno;
if (tree->type.node_class == etree_provide)
tree->type.node_class = etree_provided;