mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-11 13:02:10 +08:00
If a backend supports it, PLT entry isn't needed when all references to a STT_GNU_IFUNC symbols are done via GOT or static function pointers. For GOT entries, We generate dynamic R_*_GLOB_DAT relocations for preemptable symbols and R_*_IRELATIVE relocations for non-preemptable symbols to update them with real function address. For static pointer pointers, we generate dynamic pointer relocations and store them in: 1. .rel[a].ifunc section in PIC object. 2. .rel[a].got section in dynamic executable. 3. .rel[a].iplt section in static executable. We don't allocate GOT entry if it isn't used. bfd/ PR ld/20253 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add an bfd_boolean argument. * elf-ifunc.c (_bfd_elf_create_ifunc_sections): Replace "shared object" with "PIC object" in comments. (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. Replace "shared object" with "PIC object" in comments. Avoid PLT if requested. Generate dynamic relocations for non-GOT references. Make room for the special first entry in PLT and allocate PLT entry only for PLT and PC-relative references. Store dynamic GOT relocations in .rel[a].iplt section for static executables. If PLT isn't used, always use GOT for symbol value. Don't allocate GOT entry if it isn't used. * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference count only in the code section. Allocate dynamic pointer relocation against STT_GNU_IFUNC symbol in the non-code section. (elf_i386_adjust_dynamic_symbol): Increment PLT reference count only for PC-relative references. (elf_i386_allocate_dynrelocs): Pass TRUE to _bfd_elf_allocate_ifunc_dyn_relocs. (elf_i386_relocate_section): Allow R_386_GOT32/R_386_GOT32X relocations against STT_GNU_IFUNC symbols without PLT. Generate dynamic pointer relocation against STT_GNU_IFUNC symbol in the non-code section and store it in the proper REL section. Don't allow non-pointer relocation against STT_GNU_IFUNC symbol without PLT. (elf_i386_finish_dynamic_symbol): Generate dynamic R_386_IRELATIVE and R_386_GLOB_DAT GOT relocations against STT_GNU_IFUNC symbols without PLT. (elf_i386_finish_dynamic_sections): Don't handle local STT_GNU_IFUNC symbols here. (elf_i386_output_arch_local_syms): Handle local STT_GNU_IFUNC symbols here. (elf_backend_output_arch_local_syms): New. * elf32-x86-64.c (elf_i386_check_relocs): Increment PLT reference count only in the code section. Allocate dynamic pointer relocation against STT_GNU_IFUNC symbol in the non-code section. (elf_x86_64_adjust_dynamic_symbol): Increment PLT reference count only for PC-relative references. (elf_x86_64_allocate_dynrelocs): Pass TRUE to _bfd_elf_allocate_ifunc_dyn_relocs. (elf_x86_64_relocate_section): Allow R_X86_64_GOTPCREL, R_X86_64_GOTPCRELX, R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCREL64 relocations against STT_GNU_IFUNC symbols without PLT. Generate dynamic pointer relocation against STT_GNU_IFUNC symbol in the non-code section and store it in the proper RELA section. Don't allow non-pointer relocation against STT_GNU_IFUNC symbol without PLT. (elf_x86_64_finish_dynamic_symbol): Generate dynamic R_X86_64_IRELATIVE and R_X86_64_GLOB_DAT GOT relocations against STT_GNU_IFUNC symbols without PLT. (elf_x86_64_finish_dynamic_sections): Don't handle local STT_GNU_IFUNC symbols here. (elf_x86_64_output_arch_local_syms): Handle local STT_GNU_IFUNC symbols here. (elf_backend_output_arch_local_syms): New. * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs): Pass FALSE to _bfd_elf_allocate_ifunc_dyn_relocs. ld/ PR ld/20253 * testsuite/ld-i386/i386.exp: Run PR ld/20253 tests. * testsuite/ld-i386/no-plt.exp: Likewise. * testsuite/ld-x86-64/no-plt.exp: Likewise. * testsuite/ld-i386/pr13302.d: Remove .rel.plt section. * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise. * testsuite/ld-x86-64/pr13082-5a.d: Likewise. * testsuite/ld-x86-64/pr13082-5b.d: Likewise. * testsuite/ld-x86-64/pr13082-6a.d: Likewise. * testsuite/ld-x86-64/pr13082-6b.d: Likewise. * testsuite/ld-i386/pr20244-2a.d: Remove .plt section. * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise. * testsuite/ld-i386/pr20244-2b.d: Updated. * testsuite/ld-i386/pr20244-2c.d: Likewise. * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise. * testsuite/ld-i386/pr20253-1a.c: New file. * testsuite/ld-i386/pr20253-1b.S: Likewise. * testsuite/ld-i386/pr20253-1c.S: Likewise. * testsuite/ld-i386/pr20253-1d.S: Likewise. * testsuite/ld-i386/pr20253-2a.c: Likewise. * testsuite/ld-i386/pr20253-2b.S: Likewise. * testsuite/ld-i386/pr20253-2c.S: Likewise. * testsuite/ld-i386/pr20253-2d.S: Likewise. * testsuite/ld-i386/pr20253-3.d: Likewise. * testsuite/ld-i386/pr20253-3.s: Likewise. * testsuite/ld-i386/pr20253-4.s: Likewise. * testsuite/ld-i386/pr20253-4a.d: Likewise. * testsuite/ld-i386/pr20253-4b.d: Likewise. * testsuite/ld-i386/pr20253-4c.d: Likewise. * testsuite/ld-i386/pr20253-5.d: Likewise. * testsuite/ld-i386/pr20253-5.s: Likewise. * testsuite/ld-ifunc/ifunc-23-x86.s: Likewise. * testsuite/ld-ifunc/ifunc-23a-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-23b-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-23c-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-24-x86.s: Likewise. * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-24b-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-24c-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-25-x86.s: Likewise. * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-25b-x86.d: Likewise. * testsuite/ld-ifunc/ifunc-25c-x86.d: Likewise. * testsuite/ld-x86-64/pr20253-1.s: Likewise. * testsuite/ld-x86-64/pr20253-1a.d: Likewise. * testsuite/ld-x86-64/pr20253-1b.d: Likewise. * testsuite/ld-x86-64/pr20253-1c.d: Likewise. * testsuite/ld-x86-64/pr20253-1d.d: Likewise. * testsuite/ld-x86-64/pr20253-1e.d: Likewise. * testsuite/ld-x86-64/pr20253-1f.d: Likewise. * testsuite/ld-x86-64/pr20253-1g.d: Likewise. * testsuite/ld-x86-64/pr20253-1h.d: Likewise. * testsuite/ld-x86-64/pr20253-1i.d: Likewise. * testsuite/ld-x86-64/pr20253-1j.d: Likewise. * testsuite/ld-x86-64/pr20253-1k.d: Likewise. * testsuite/ld-x86-64/pr20253-1l.d: Likewise. * testsuite/ld-x86-64/pr20253-2a.c: Likewise. * testsuite/ld-x86-64/pr20253-2b.S: Likewise. * testsuite/ld-x86-64/pr20253-2c.S: Likewise. * testsuite/ld-x86-64/pr20253-2d.S: Likewise. * testsuite/ld-x86-64/pr20253-3.d: Likewise. * testsuite/ld-x86-64/pr20253-3.s: Likewise. * testsuite/ld-x86-64/pr20253-4.s: Likewise. * testsuite/ld-x86-64/pr20253-4a.d: Likewise. * testsuite/ld-x86-64/pr20253-4b.d: Likewise. * testsuite/ld-x86-64/pr20253-4c.d: Likewise. * testsuite/ld-x86-64/pr20253-4d.d: Likewise. * testsuite/ld-x86-64/pr20253-4e.d: Likewise. * testsuite/ld-x86-64/pr20253-4f.d: Likewise. * testsuite/ld-x86-64/pr20253-5.s: Likewise. * testsuite/ld-x86-64/pr20253-5a.d: Likewise. * testsuite/ld-x86-64/pr20253-5b.d: Likewise. * testsuite/ld-ifunc/ifunc-18a-i386.d: Remove extra IRELATIVE relocation. * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise. * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-18a.s: Fix a typo. * testsuite/ld-x86-64/x86-64.exp: Run pr20253-1 tests.
409 lines
9.6 KiB
Plaintext
409 lines
9.6 KiB
Plaintext
# Expect script for i386 no-PLT tests.
|
|
# Copyright (C) 2016 Free Software Foundation, Inc.
|
|
#
|
|
# This file is part of the GNU Binutils.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
|
# MA 02110-1301, USA.
|
|
#
|
|
|
|
# The following tests require running the executable generated by ld,
|
|
# or enough of a build environment to create a fully linked executable.
|
|
# This is not commonly available when testing a cross-built linker.
|
|
if ![isnative] {
|
|
return
|
|
}
|
|
|
|
if ![is_elf_format] {
|
|
return
|
|
}
|
|
|
|
if ![istarget "i?86-*-*"] {
|
|
return
|
|
}
|
|
|
|
# Check to see if the C compiler works
|
|
if { [which $CC] == 0 } {
|
|
return
|
|
}
|
|
|
|
run_cc_link_tests [list \
|
|
[list \
|
|
"Build no-plt-func1.o no-plt-main1.o" \
|
|
"" \
|
|
"-fPIE" \
|
|
{no-plt-func1.c no-plt-main1.c} \
|
|
] \
|
|
[list \
|
|
"Build no-plt-check1a.o no-plt-extern1a.o \
|
|
no-plt-check1b.o no-plt-extern1b.o" \
|
|
"" \
|
|
"-Wa,-mrelax-relocations=yes" \
|
|
{no-plt-check1a.S no-plt-extern1a.S \
|
|
no-plt-check1b.S no-plt-extern1b.S } \
|
|
] \
|
|
[list \
|
|
"Build libno-plt-1a.so" \
|
|
"-shared tmpdir/no-plt-func1.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
{} \
|
|
"libno-plt-1a.so" \
|
|
] \
|
|
[list \
|
|
"Build libno-plt-1b.so" \
|
|
"-shared tmpdir/no-plt-extern1a.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr libno-plt-1b.rd} \
|
|
{objdump -dwrj.text libno-plt-1b.dd}} \
|
|
"libno-plt-1b.so" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1a)" \
|
|
"tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1a.rd} {objdump -dwrj.text no-plt-1a.dd}} \
|
|
"no-plt-1a" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1b)" \
|
|
"tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1b.rd} {objdump -dwrj.text no-plt-1b.dd}} \
|
|
"no-plt-1b" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1c)" \
|
|
"tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1c.rd} {objdump -dwrj.text no-plt-1c.dd}} \
|
|
"no-plt-1c" \
|
|
] \
|
|
[list \
|
|
"No PLT (static 1d)" \
|
|
"-static tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1d.rd} {objdump -dwrj.text no-plt-1d.dd}} \
|
|
"no-plt-1d" \
|
|
] \
|
|
[list \
|
|
"No PLT (PIE 1e)" \
|
|
"-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1e.rd} {objdump -dwrj.text no-plt-1e.dd}} \
|
|
"no-plt-1e" \
|
|
] \
|
|
[list \
|
|
"No PLT (PIE 1f)" \
|
|
"-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
{{readelf -Wr no-plt-1f.rd} {objdump -dwrj.text no-plt-1f.dd}} \
|
|
"no-plt-1f" \
|
|
] \
|
|
[list \
|
|
"No PLT (PIE 1g)" \
|
|
"-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
{{readelf -Wr no-plt-1g.rd} {objdump -dwrj.text no-plt-1g.dd}} \
|
|
"no-plt-1g" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1h)" \
|
|
"tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1h.rd} {objdump -dwrj.text no-plt-1h.dd}} \
|
|
"no-plt-1h" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1i)" \
|
|
"tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-extern1b.o tmpdir/libno-plt-1a.so" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1i.rd} {objdump -dwrj.text no-plt-1i.dd}} \
|
|
"no-plt-1i" \
|
|
] \
|
|
[list \
|
|
"No PLT (static 1j)" \
|
|
"-static tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
{{readelf -Wr no-plt-1j.rd} {objdump -dwrj.text no-plt-1j.dd}} \
|
|
"no-plt-1j" \
|
|
] \
|
|
]
|
|
|
|
run_ld_link_exec_tests [] [list \
|
|
[list \
|
|
"No PLT (dynamic 1a)" \
|
|
"tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"no-plt-1a" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1b)" \
|
|
"tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"no-plt-1b" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1c)" \
|
|
"tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"no-plt-1c" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (static 1d)" \
|
|
"-static tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"no-plt-1d" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (PIE 1e)" \
|
|
"-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1a.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"no-plt-1e" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (PIE 1f)" \
|
|
"-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"no-plt-1f" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (PIE 1g)" \
|
|
"-pie tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"no-plt-1g" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1h)" \
|
|
"tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
"no-plt-1h" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (dynamic 1i)" \
|
|
"tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-extern1b.o tmpdir/libno-plt-1a.so" \
|
|
"" \
|
|
{dummy.s} \
|
|
"no-plt-1i" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"No PLT (static 1j)" \
|
|
"-static tmpdir/no-plt-check1b.o tmpdir/no-plt-main1.o \
|
|
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1b.o" \
|
|
"" \
|
|
{dummy.s} \
|
|
"no-plt-1j" \
|
|
"pass.out" \
|
|
] \
|
|
]
|
|
|
|
# Run-time tests which require working IFUNC support.
|
|
if { [check_ifunc_available] } {
|
|
run_cc_link_tests [list \
|
|
[list \
|
|
"Build pr20244-3a.o pr20244-3b.o pr20244-3c.o pr20244-3d.o" \
|
|
"" \
|
|
"-fPIC -O2 -g" \
|
|
{ pr20244-3a.c pr20244-3b.S pr20244-3c.S pr20244-3d.S } \
|
|
] \
|
|
[list \
|
|
"Build pr20253-1a.o pr20253-1b.o pr20253-1c.o pr20253-1d.o" \
|
|
"" \
|
|
"-fPIE -O2 -g" \
|
|
{ pr20253-1a.c pr20253-1b.S pr20253-1c.S pr20253-1d.S } \
|
|
] \
|
|
[list \
|
|
"Build libpr20253-1a.so" \
|
|
"-shared tmpdir/pr20253-1b.o \
|
|
tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
{} \
|
|
"libpr20253-1a.so" \
|
|
] \
|
|
[list \
|
|
"Build pr20253-2a.o pr20253-2b.o pr20253-2c.o pr20253-2d.o" \
|
|
"" \
|
|
"-fPIE -O2 -g" \
|
|
{ pr20253-2a.c pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
|
|
] \
|
|
]
|
|
|
|
run_ld_link_exec_tests [] [list \
|
|
[list \
|
|
"Run pr20244-3a" \
|
|
"tmpdir/pr20244-3a.o tmpdir/pr20244-3b.o \
|
|
tmpdir/pr20244-3c.o tmpdir/pr20244-3d.o" \
|
|
"" \
|
|
{ dummy.c } \
|
|
"pr20244-3a" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20244-3b" \
|
|
"--static tmpdir/pr20244-3a.o tmpdir/pr20244-3b.o \
|
|
tmpdir/pr20244-3c.o tmpdir/pr20244-3d.o" \
|
|
"" \
|
|
{ dummy.c } \
|
|
"pr20244-3b" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-1a" \
|
|
"tmpdir/pr20253-1a.o tmpdir/pr20253-1b.o \
|
|
tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"pr20253-1a" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-1b" \
|
|
"--static tmpdir/pr20253-1a.o tmpdir/pr20253-1b.o \
|
|
tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"pr20253-1b" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-1c" \
|
|
"-pie tmpdir/pr20253-1a.o tmpdir/pr20253-1b.o \
|
|
tmpdir/pr20253-1c.o tmpdir/pr20253-1d.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"pr20253-1c" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-1d" \
|
|
"tmpdir/pr20253-1a.o tmpdir/libpr20253-1a.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"pr20253-1d" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-1e" \
|
|
"-pie tmpdir/pr20253-1a.o tmpdir/libpr20253-1a.so" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"pr20253-1e" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-1f" \
|
|
"tmpdir/pr20253-1a.o" \
|
|
"" \
|
|
{ pr20253-1b.S pr20253-1c.S pr20253-1d.S } \
|
|
"pr20253-1f" \
|
|
"pass.out" \
|
|
"-DCHECK_PLT" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-1g" \
|
|
"--static tmpdir/pr20253-1a.o" \
|
|
"" \
|
|
{ pr20253-1b.S pr20253-1c.S pr20253-1d.S } \
|
|
"pr20253-1g" \
|
|
"pass.out" \
|
|
"-DCHECK_PLT" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-2a" \
|
|
"tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
|
|
tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"pr20253-2a" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-2b" \
|
|
"--static tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
|
|
tmpdir/pr20253-2c.o tmpdir/pr20253-2d.o" \
|
|
"" \
|
|
{ dummy.s } \
|
|
"pr20253-2b" \
|
|
"pass.out" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-2c" \
|
|
"tmpdir/pr20253-2a.o" \
|
|
"" \
|
|
{ pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
|
|
"pr20253-2c" \
|
|
"pass.out" \
|
|
"-DCHECK_PLT" \
|
|
] \
|
|
[list \
|
|
"Run pr20253-2d" \
|
|
"--static tmpdir/pr20253-2a.o" \
|
|
"" \
|
|
{ pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
|
|
"pr20253-2d" \
|
|
"pass.out" \
|
|
"-DCHECK_PLT" \
|
|
] \
|
|
]
|
|
}
|