mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Add explicit shared check to eh-frame-hdr test.
ld/ * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete (#alltargets): Renamed from #target. Add shared. * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target. Document alltargets option. Add support for alltargets option. (istarget): Add support for shared target.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2018-01-09 Jim Wilson <jimw@sifive.com>
|
||||||
|
|
||||||
|
* testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
|
||||||
|
(#alltargets): Renamed from #target. Add shared.
|
||||||
|
* testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
|
||||||
|
Document alltargets option. Add support for alltargets option.
|
||||||
|
(istarget): Add support for shared target.
|
||||||
|
|
||||||
2018-01-08 Jim Wilson <jimw@sifive.com>
|
2018-01-08 Jim Wilson <jimw@sifive.com>
|
||||||
|
|
||||||
* testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
|
* testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
#source: eh-frame-hdr.s
|
#source: eh-frame-hdr.s
|
||||||
#ld: -e _start --eh-frame-hdr
|
#ld: -e _start --eh-frame-hdr
|
||||||
#objdump: -hw
|
#objdump: -hw
|
||||||
#target: cfi
|
#alltargets: cfi shared
|
||||||
#xfail: avr*-*-* or1k*-*-elf or1k*-*-rtems* pru-*-* visium-*-*
|
|
||||||
# These targets support CFI generation but not shared libraries.
|
|
||||||
#...
|
#...
|
||||||
[0-9] .eh_frame_hdr +0*[12][048c] .*
|
[0-9] .eh_frame_hdr +0*[12][048c] .*
|
||||||
#pass
|
#pass
|
||||||
|
@ -519,7 +519,13 @@ proc ld_link_defsyms {} {
|
|||||||
# target: TARGET
|
# target: TARGET
|
||||||
# Only run the test for TARGET. This may occur more than once; the
|
# Only run the test for TARGET. This may occur more than once; the
|
||||||
# target being tested must match at least one. You may provide target
|
# target being tested must match at least one. You may provide target
|
||||||
# name "cfi" for any target supporting the CFI statements.
|
# name "cfi" for any target supporting the CFI statements. You may
|
||||||
|
# provide target name "shared" for any target supporting shared
|
||||||
|
# libraries.
|
||||||
|
#
|
||||||
|
# alltargets: TARGET
|
||||||
|
# Only run the test for TARGET. This may occur more than once; the
|
||||||
|
# target being tested must match all of them.
|
||||||
#
|
#
|
||||||
# notarget: TARGET
|
# notarget: TARGET
|
||||||
# Do not run the test for TARGET. This may occur more than once;
|
# Do not run the test for TARGET. This may occur more than once;
|
||||||
@ -599,6 +605,7 @@ proc run_dump_test { name {extra_options {}} } {
|
|||||||
set opts(ld_after_inputfiles) {}
|
set opts(ld_after_inputfiles) {}
|
||||||
set opts(xfail) {}
|
set opts(xfail) {}
|
||||||
set opts(target) {}
|
set opts(target) {}
|
||||||
|
set opts(alltargets) {}
|
||||||
set opts(notarget) {}
|
set opts(notarget) {}
|
||||||
set opts(objdump) {}
|
set opts(objdump) {}
|
||||||
set opts(nm) {}
|
set opts(nm) {}
|
||||||
@ -628,6 +635,7 @@ proc run_dump_test { name {extra_options {}} } {
|
|||||||
switch -- $opt_name {
|
switch -- $opt_name {
|
||||||
xfail {}
|
xfail {}
|
||||||
target {}
|
target {}
|
||||||
|
alltargets {}
|
||||||
notarget {}
|
notarget {}
|
||||||
warning {}
|
warning {}
|
||||||
error {}
|
error {}
|
||||||
@ -726,6 +734,11 @@ proc run_dump_test { name {extra_options {}} } {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
foreach targ $opts(alltargets) {
|
||||||
|
if ![istarget $targ] {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
foreach targ $opts(notarget) {
|
foreach targ $opts(notarget) {
|
||||||
if [istarget $targ] {
|
if [istarget $targ] {
|
||||||
return
|
return
|
||||||
@ -2152,6 +2165,9 @@ proc istarget { target } {
|
|||||||
if {$target == "cfi"} {
|
if {$target == "cfi"} {
|
||||||
return [check_as_cfi]
|
return [check_as_cfi]
|
||||||
}
|
}
|
||||||
|
if {$target == "shared"} {
|
||||||
|
return [check_shared_lib_support]
|
||||||
|
}
|
||||||
return [istarget_ld $target]
|
return [istarget_ld $target]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user