aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2021-01-19 12:45:18 +0000
committerNick Alcock <nick.alcock@oracle.com>2021-01-19 12:45:18 +0000
commitc98de297b37ffee7bdb48682eec73e4a608c3974 (patch)
tree899d9d782bd3e1f5aa6be02f4350933de686d9e8 /ld/ChangeLog
parent148521232871c8017c973b3c0cc29c8ac7b96134 (diff)
downloadgdb-c98de297b37ffee7bdb48682eec73e4a608c3974.zip
gdb-c98de297b37ffee7bdb48682eec73e4a608c3974.tar.gz
gdb-c98de297b37ffee7bdb48682eec73e4a608c3974.tar.bz2
libctf, ld: fix data symbol test with newer GCC
GCC 11+ spots that the extern var_1 and var_666 declarations in this test are unused, and removes them, thus stopping them from appearing as conflicted data symbols and rendering the test pointless. Use them in a function unique to this TU to prevent them from being eliminated. ld/ChangeLog 2021-01-19 Nick Alcock <nick.alcock@oracle.com> * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t symbols by the optimizer. * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 035e6aa..aae8938 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-19 Nick Alcock <nick.alcock@oracle.com>
+
+ * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
+ symbols by the optimizer.
+ * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
+
2021-01-19 Nelson Chu <nelson.chu@sifive.com>
* testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true