]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2009-06-03 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Jun 2009 17:32:02 +0000 (17:32 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Jun 2009 17:32:02 +0000 (17:32 +0000)
* ld-ifunc/ifunc-2-x86-64.d: Pass --64 to as and -melf_x86_64 to
ld.
* ld-ifunc/ifunc-5a-x86-64.d: Likewise.
* ld-ifunc/ifunc-5b-x86-64.d: Likewise.
* ld-ifunc/ifunc-6a-x86-64.d: Likewise.
* ld-ifunc/ifunc-6b-x86-64.d: Likewise.
* ld-ifunc/ifunc-7a-x86-64.d: Likewise.
* ld-ifunc/ifunc-7b-x86-64.d: Likewise.

* ld-ifunc/ifunc-8a-i386.s: New.
* ld-ifunc/ifunc-8a-x86-64.s: Likewise.
* ld-ifunc/ifunc-8b-i386.s: Likewise.
* ld-ifunc/ifunc-8b-x86-64.s: Likewise.
* ld-ifunc/ifunc-8-i386.d: Likewise.
* ld-ifunc/ifunc-8-x86-64.d: Likewise.

14 files changed:
ld/testsuite/ChangeLog
ld/testsuite/ld-ifunc/ifunc-2-x86-64.d
ld/testsuite/ld-ifunc/ifunc-5a-x86-64.d
ld/testsuite/ld-ifunc/ifunc-5b-x86-64.d
ld/testsuite/ld-ifunc/ifunc-6a-x86-64.d
ld/testsuite/ld-ifunc/ifunc-6b-x86-64.d
ld/testsuite/ld-ifunc/ifunc-7a-x86-64.d
ld/testsuite/ld-ifunc/ifunc-7b-x86-64.d
ld/testsuite/ld-ifunc/ifunc-8-i386.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-8-x86-64.d [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-8a-i386.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-8a-x86-64.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-8b-i386.s [new file with mode: 0644]
ld/testsuite/ld-ifunc/ifunc-8b-x86-64.s [new file with mode: 0644]

index fc606d1da8a32691186ba9a37985f6a21e976cd8..bdf657f65fd96bd1258ab0d750e14d08ccbd610c 100644 (file)
@@ -1,3 +1,21 @@
+2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-ifunc/ifunc-2-x86-64.d: Pass --64 to as and -melf_x86_64 to
+       ld.
+       * ld-ifunc/ifunc-5a-x86-64.d: Likewise.
+       * ld-ifunc/ifunc-5b-x86-64.d: Likewise.
+       * ld-ifunc/ifunc-6a-x86-64.d: Likewise.
+       * ld-ifunc/ifunc-6b-x86-64.d: Likewise.
+       * ld-ifunc/ifunc-7a-x86-64.d: Likewise.
+       * ld-ifunc/ifunc-7b-x86-64.d: Likewise.
+
+       * ld-ifunc/ifunc-8a-i386.s: New.
+       * ld-ifunc/ifunc-8a-x86-64.s: Likewise.
+       * ld-ifunc/ifunc-8b-i386.s: Likewise.
+       * ld-ifunc/ifunc-8b-x86-64.s: Likewise.
+       * ld-ifunc/ifunc-8-i386.d: Likewise.
+       * ld-ifunc/ifunc-8-x86-64.d: Likewise.
+
 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
 
        * ld-powerpc/aix-glink-3.s, ld-powerpc/aix-glink-3a.s,
index 103db78cf488b5f558b2153657ef366c74e0f40f..fa8710254d00308f981ff015f8d05195cc16f380 100644 (file)
@@ -1,4 +1,5 @@
-#ld: -shared
+#as: --64
+#ld: -shared -melf_x86_64
 #objdump: -dw
 #target: x86_64-*-*
 
index b635099b4096d595526c4d61726adf1e7f34f831..46f41863bc8e80515e27e972f0f636dc4817846d 100644 (file)
@@ -1,5 +1,6 @@
 #source: ifunc-5-x86-64.s
-#ld:
+#as: --64
+#ld: -melf_x86_64
 #readelf: -r --wide
 #target: x86_64-*-*
 
index d8b2e913a70baaecc1fac68ea70326b548cb2be5..02aff6b7c8527476921dc79ce13096ecb1aedf7e 100644 (file)
@@ -1,5 +1,6 @@
 #source: ifunc-5-x86-64.s
-#ld: -shared -z nocombreloc
+#as: --64
+#ld: -melf_x86_64 -shared -z nocombreloc
 #readelf: -r --wide
 #target: x86_64-*-*
 
index 169cf1c40a756cdd11d33ae469af6e1ee439b0cf..cc3ff94d5ee048ad99957f09fc0b2e557e97bd5c 100644 (file)
@@ -1,5 +1,6 @@
 #source: ifunc-6-x86-64.s
-#ld:
+#as: --64
+#ld: -melf_x86_64
 #readelf: -r --wide
 #target: x86_64-*-*
 
index 5a948e9ca7f265e2d812252dfa73ea75770c7762..16ccfd7cfd18e88be39dbac78a91eb060009f8df 100644 (file)
@@ -1,5 +1,6 @@
 #source: ifunc-6-x86-64.s
-#ld: -shared -z nocombreloc
+#as: --64
+#ld: -melf_x86_64 -shared -z nocombreloc
 #readelf: -r --wide
 #target: x86_64-*-*
 
index 350614ab5abb17fa64880c6ed2b4b79f547779d0..254440196934eb569d7be73fcf70569ce87ade4f 100644 (file)
@@ -1,5 +1,6 @@
 #source: ifunc-7-x86-64.s
-#ld:
+#as: --64
+#ld: -melf_x86_64
 #readelf: -r --wide
 #target: x86_64-*-*
 
index cd66d58d2d5a919d2cfbbbf5fe66c3446c832820..846fe34e89f3e42c520f0a5a9743f774516ea471 100644 (file)
@@ -1,5 +1,6 @@
 #source: ifunc-7-x86-64.s
-#ld: -shared
+#as: --64
+#ld: -melf_x86_64 -shared
 #readelf: -r --wide
 #target: x86_64-*-*
 
diff --git a/ld/testsuite/ld-ifunc/ifunc-8-i386.d b/ld/testsuite/ld-ifunc/ifunc-8-i386.d
new file mode 100644 (file)
index 0000000..e40a9e6
--- /dev/null
@@ -0,0 +1,10 @@
+#source: ifunc-8a-i386.s
+#source: ifunc-8b-i386.s
+#ld: -m elf_i386
+#as: --32
+#readelf: -r --wide
+#target: x86_64-*-* i?86-*-*
+
+Relocation section '.rel.plt' at .*
+[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
+[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_IRELATIVE[ ]*
diff --git a/ld/testsuite/ld-ifunc/ifunc-8-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-8-x86-64.d
new file mode 100644 (file)
index 0000000..ad6a5dd
--- /dev/null
@@ -0,0 +1,10 @@
+#source: ifunc-8a-x86-64.s
+#source: ifunc-8b-x86-64.s
+#as: --64
+#ld: -melf_x86_64
+#readelf: -r --wide
+#target: x86_64-*-*
+
+Relocation section '.rela.plt' at .*
+[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
+[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_IRELATIVE[ ]+[0-9a-f]*
diff --git a/ld/testsuite/ld-ifunc/ifunc-8a-i386.s b/ld/testsuite/ld-ifunc/ifunc-8a-i386.s
new file mode 100644 (file)
index 0000000..9d42d0e
--- /dev/null
@@ -0,0 +1,16 @@
+       .text
+       .type start,"function"
+       .global start
+start:
+       .type _start,"function"
+       .global _start
+_start:
+       .type __start,"function"
+       .global __start
+__start:
+       .type __start,"function"
+       call    .L6
+.L6:
+       popl    %ebx
+       addl    $_GLOBAL_OFFSET_TABLE_+[.-.L6], %ebx
+       mov     foo@GOT(%ebx), %eax
diff --git a/ld/testsuite/ld-ifunc/ifunc-8a-x86-64.s b/ld/testsuite/ld-ifunc/ifunc-8a-x86-64.s
new file mode 100644 (file)
index 0000000..8137a07
--- /dev/null
@@ -0,0 +1,12 @@
+       .text
+       .type start,"function"
+       .global start
+start:
+       .type _start,"function"
+       .global _start
+_start:
+       .type __start,"function"
+       .global __start
+__start:
+       .type __start,"function"
+       movq    foo@GOTPCREL(%rip), %rax
diff --git a/ld/testsuite/ld-ifunc/ifunc-8b-i386.s b/ld/testsuite/ld-ifunc/ifunc-8b-i386.s
new file mode 100644 (file)
index 0000000..1f108f8
--- /dev/null
@@ -0,0 +1,7 @@
+       .text
+       .type foo, %gnu_indirect_function
+.globl foo
+       .type   foo, @function
+foo:
+       ret
+       .size   foo, .-foo
diff --git a/ld/testsuite/ld-ifunc/ifunc-8b-x86-64.s b/ld/testsuite/ld-ifunc/ifunc-8b-x86-64.s
new file mode 100644 (file)
index 0000000..1f108f8
--- /dev/null
@@ -0,0 +1,7 @@
+       .text
+       .type foo, %gnu_indirect_function
+.globl foo
+       .type   foo, @function
+foo:
+       ret
+       .size   foo, .-foo