summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/lea4b.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-30 05:07:12 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-09-02 05:16:01 -0700
commitf4fbcd1272c868121b7b3b272d6df955572a08ac (patch)
treee3644095d0935657d4480c637fb4fd57d0427007 /ld/testsuite/ld-i386/lea4b.d
parent9c8f5f4baf659f60a3604fd0bacc08b2f6fd1d3b (diff)
downloadbinutils-gdb-users/hjl/indbr.tar.gz
Add R_386_LOAD_GOT32users/hjl/indbr
Change relocation in "call/jmp *puts@GOT[(%reg])" and "mov *foo@GOT[(%reg)], %reg" from R_386_GOT32 to R_386_LOAD_GOT32.
Diffstat (limited to 'ld/testsuite/ld-i386/lea4b.d')
-rw-r--r--ld/testsuite/ld-i386/lea4b.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/lea4b.d b/ld/testsuite/ld-i386/lea4b.d
new file mode 100644
index 00000000000..745ea4f4978
--- /dev/null
+++ b/ld/testsuite/ld-i386/lea4b.d
@@ -0,0 +1,13 @@
+#source: lea4.s
+#as: --32
+#ld: -melf_i386
+#objdump: -dw
+
+.*: +file format .*
+
+
+Disassembly of section .text:
+
+#...
+[ ]*[a-f0-9]+: 8d 05 ([0-9a-f]{2} ){4} * lea 0x[a-f0-9]+,%eax
+#pass