aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2023-04-18 11:49:21 +0100
committerNick Clifton <nickc@redhat.com>2023-04-18 11:49:21 +0100
commita02676b77d84d8229b5d4b01259535234cded19e (patch)
tree5303783009550d51a718453a7ff335ea57f582fd /ld
parent01996a7a49bb278a50e72cb9a70011b8f907968e (diff)
downloadbinutils-a02676b77d84d8229b5d4b01259535234cded19e.zip
binutils-a02676b77d84d8229b5d4b01259535234cded19e.tar.gz
binutils-a02676b77d84d8229b5d4b01259535234cded19e.tar.bz2
Symbols with GOT relocatios do not fix adjustbale
gas * config/tc-loongarch.c (loongarch_fix_adjustable): Symbols with GOT relocatios do not fix adjustbale. * testsuite/gas/loongarch/macro_op_large_abs.d: Regenerated. * testsuite/gas/loongarch/macro_op_large_pc.d: Regenerated. ld * testsuite/ld-loongarch-elf/macro_op.d: Regenerated. -
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-loongarch-elf/macro_op.d54
2 files changed, 31 insertions, 27 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index b829bef..c4de327 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2023-04-18 mengqinggang <mengqinggang@loongson.cn>
+
+ * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
+
2023-04-17 Nick Clifton <nickc@redhat.com>
PR 30354
diff --git a/ld/testsuite/ld-loongarch-elf/macro_op.d b/ld/testsuite/ld-loongarch-elf/macro_op.d
index a1c64fc..39aa1fb 100644
--- a/ld/testsuite/ld-loongarch-elf/macro_op.d
+++ b/ld/testsuite/ld-loongarch-elf/macro_op.d
@@ -6,53 +6,53 @@
Disassembly of section .text:
-00000000.* <.text>:
+00000000.* <.L1>:
[ ]+0:[ ]+00150004[ ]+move[ ]+\$a0,[ ]+\$zero
[ ]+4:[ ]+02bffc04[ ]+addi.w[ ]+\$a0,[ ]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