From: H.J. Lu Date: Fri, 16 Feb 2018 17:45:02 +0000 (-0800) Subject: x86: Add -z noseparate-code to IFUNC tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9d3eb5f61c5756b78e5aebe1822df7ff977eb74;p=binutils-gdb.git x86: Add -z noseparate-code to IFUNC tests Add -z noseparate-code since these tests check for exact addresses. * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise. * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise. * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise. * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise. * testsuite/ld-ifunc/pr17154-i386.d: Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 79298f37255..5818ea46330 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,13 @@ +2018-02-16 H.J. Lu + + * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise. + * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise. + * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise. + * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise. + * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise. + * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise. + * testsuite/ld-ifunc/pr17154-i386.d: Likewise. + 2018-02-16 H.J. Lu * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Add diff --git a/ld/testsuite/ld-ifunc/ifunc-2-i386-now.d b/ld/testsuite/ld-ifunc/ifunc-2-i386-now.d index b4dfcec3381..7157d5fc5aa 100644 --- a/ld/testsuite/ld-ifunc/ifunc-2-i386-now.d +++ b/ld/testsuite/ld-ifunc/ifunc-2-i386-now.d @@ -1,5 +1,5 @@ #source: ifunc-2-i386.s -#ld: -z now -m elf_i386 -shared --hash-style=sysv +#ld: -z now -m elf_i386 -shared --hash-style=sysv -z noseparate-code #as: --32 #objdump: -dw #target: x86_64-*-* i?86-*-* diff --git a/ld/testsuite/ld-ifunc/ifunc-2-local-i386-now.d b/ld/testsuite/ld-ifunc/ifunc-2-local-i386-now.d index 8888e7c6829..d5400a27549 100644 --- a/ld/testsuite/ld-ifunc/ifunc-2-local-i386-now.d +++ b/ld/testsuite/ld-ifunc/ifunc-2-local-i386-now.d @@ -1,5 +1,5 @@ #source: ifunc-2-local-i386.s -#ld: -z now -m elf_i386 -shared --hash-style=sysv +#ld: -z now -m elf_i386 -shared --hash-style=sysv -z noseparate-code #as: --32 #objdump: -dw #target: x86_64-*-* i?86-*-* diff --git a/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d b/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d index b776b33907d..3cea6f76fcd 100644 --- a/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d +++ b/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d @@ -1,5 +1,5 @@ #as: --64 -#ld: -shared -melf_x86_64 --hash-style=sysv +#ld: -shared -melf_x86_64 --hash-style=sysv -z noseparate-code #objdump: -dw #target: x86_64-*-* diff --git a/ld/testsuite/ld-ifunc/ifunc-21-i386.d b/ld/testsuite/ld-ifunc/ifunc-21-i386.d index d61ccd0d9a8..f28af7782fd 100644 --- a/ld/testsuite/ld-ifunc/ifunc-21-i386.d +++ b/ld/testsuite/ld-ifunc/ifunc-21-i386.d @@ -1,4 +1,4 @@ -#ld: -m elf_i386 +#ld: -m elf_i386 -z noseparate-code #as: --32 -mrelax-relocations=yes #objdump: -dw #target: x86_64-*-* i?86-*-* diff --git a/ld/testsuite/ld-ifunc/ifunc-22-i386.d b/ld/testsuite/ld-ifunc/ifunc-22-i386.d index d61ccd0d9a8..f28af7782fd 100644 --- a/ld/testsuite/ld-ifunc/ifunc-22-i386.d +++ b/ld/testsuite/ld-ifunc/ifunc-22-i386.d @@ -1,4 +1,4 @@ -#ld: -m elf_i386 +#ld: -m elf_i386 -z noseparate-code #as: --32 -mrelax-relocations=yes #objdump: -dw #target: x86_64-*-* i?86-*-* diff --git a/ld/testsuite/ld-ifunc/pr17154-i386-now.d b/ld/testsuite/ld-ifunc/pr17154-i386-now.d index b7afdd04d65..10d270c6597 100644 --- a/ld/testsuite/ld-ifunc/pr17154-i386-now.d +++ b/ld/testsuite/ld-ifunc/pr17154-i386-now.d @@ -1,5 +1,5 @@ #source: pr17154-x86.s -#ld: -z now -m elf_i386 -shared --hash-style=sysv +#ld: -z now -m elf_i386 -shared --hash-style=sysv -z noseparate-code #as: --32 #objdump: -dw #target: x86_64-*-* i?86-*-* diff --git a/ld/testsuite/ld-ifunc/pr17154-i386.d b/ld/testsuite/ld-ifunc/pr17154-i386.d index 6b309b9f1e7..854d73abd8e 100644 --- a/ld/testsuite/ld-ifunc/pr17154-i386.d +++ b/ld/testsuite/ld-ifunc/pr17154-i386.d @@ -1,5 +1,5 @@ #source: pr17154-x86.s -#ld: -m elf_i386 -shared --hash-style=sysv +#ld: -m elf_i386 -shared --hash-style=sysv -z noseparate-code #as: --32 #objdump: -dw #target: x86_64-*-* i?86-*-*