aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-01-22 12:51:19 +1030
committerAlan Modra <amodra@gmail.com>2014-01-22 12:51:19 +1030
commit7dd9c6eb050bb23bff18b3139589f202d4c63a33 (patch)
tree38c444910178181f931c7582c436099ab1c1391b /ld/ldlang.c
parent2edab91c10dcae30a93ce7d9f8088b8b33ee55eb (diff)
downloadgdb-7dd9c6eb050bb23bff18b3139589f202d4c63a33.zip
gdb-7dd9c6eb050bb23bff18b3139589f202d4c63a33.tar.gz
gdb-7dd9c6eb050bb23bff18b3139589f202d4c63a33.tar.bz2
Miscellaneous ld tidies
Localise a struct, prevent an unneeded symbol lookup, and fix a testcase. ld/ * ld.h (struct map_symbol_def): Move to.. * ldlang.h: ..here. * ldlang.c (print_assignment): Don't set expld.assign_name to dot. ld/testsuite/ * ld-scripts/pr14962-2.d: Correct target triple.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9e35527..62f85bc 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3935,7 +3935,8 @@ print_assignment (lang_assignment_statement_type *assignment,
const char *dst = assignment->exp->assign.dst;
is_dot = (dst[0] == '.' && dst[1] == 0);
- expld.assign_name = dst;
+ if (!is_dot)
+ expld.assign_name = dst;
tree = assignment->exp->assign.src;
}