diff options
author | Jan Beulich <jbeulich@novell.com> | 2016-07-05 11:36:08 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2016-07-05 11:36:08 +0200 |
commit | 1753ed681125949b081376dd97056a3f2930e7d7 (patch) | |
tree | 604de3fef2f91ab1dde48fba430522615b6e30e2 /ld/ldexp.c | |
parent | 33d0ab95489cb3cf7ec98bee63c3541b5295adb6 (diff) | |
download | gdb-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |