aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-06-14 05:51:59 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-06-14 05:52:12 -0700
commitf78d1b3ae1cee2bc1a2be4b3c30df9627e13fdc1 (patch)
tree1666c45d296a9138402194f3f823938e72f0684d /ld
parentb6947a7f08011375120186688bf2efd866f7d148 (diff)
downloadgdb-f78d1b3ae1cee2bc1a2be4b3c30df9627e13fdc1.zip
gdb-f78d1b3ae1cee2bc1a2be4b3c30df9627e13fdc1.tar.gz
gdb-f78d1b3ae1cee2bc1a2be4b3c30df9627e13fdc1.tar.bz2
Add size to bar in ld-gc/pr20022a.s
Some linker backends require size info on dynamic symbols. * testsuite/ld-gc/pr20022a.s: Add size to bar.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-gc/pr20022a.s1
2 files changed, 5 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 371859a..8c60970 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/ld-gc/pr20022a.s: Add size to bar.
+
+2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
+
* testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
in symbol name.
* testsuite/ld-elf/sizeofb.d: Likewise.
diff --git a/ld/testsuite/ld-gc/pr20022a.s b/ld/testsuite/ld-gc/pr20022a.s
index 6bd346f..5c0e19f 100644
--- a/ld/testsuite/ld-gc/pr20022a.s
+++ b/ld/testsuite/ld-gc/pr20022a.s
@@ -3,6 +3,7 @@
.type bar,%object
bar:
.dc.a __start__foo
+ .size bar, .-bar
.section _foo,"aw",%progbits
foo:
.ascii "This is bar"