diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-07-15 23:57:20 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-07-15 23:57:20 +0000 |
commit | 1345a0c087decf73553c7ed8e92ae0e997794eff (patch) | |
tree | a910b9d85cac1f865adf4dd604ceea3927027a8d /ld/testsuite/ld-elfvsb/elfvsb.exp | |
parent | 930d924dd4454c4e4cb0c8fd12eaba029fde23d9 (diff) | |
download | gdb-1345a0c087decf73553c7ed8e92ae0e997794eff.zip gdb-1345a0c087decf73553c7ed8e92ae0e997794eff.tar.gz gdb-1345a0c087decf73553c7ed8e92ae0e997794eff.tar.bz2 |
2000-07-15 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failure
for "protected_undef_def".
* ld-elfvsb/main.c: Don't define HIDDEN_UNDEF_TEST when
PROTECTED_WEAK_TEST is defined.
Don't define PROTECTED_UNDEF_TEST when PROTECTED_WEAK_TEST is
defined.
Define PROTECTED_TEST when PROTECTED_UNDEF_TEST is defined.
* ld-elfvsb/sh1.c (visibility): Mark protected only if
PROTECTED_TEST, PROTECTED_UNDEF_TEST or PROTECTED_WEAK_TEST
is defined.
(visibility_var): Likewise.
Diffstat (limited to 'ld/testsuite/ld-elfvsb/elfvsb.exp')
-rw-r--r-- | ld/testsuite/ld-elfvsb/elfvsb.exp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp index 3c45e51..e3a010e 100644 --- a/ld/testsuite/ld-elfvsb/elfvsb.exp +++ b/ld/testsuite/ld-elfvsb/elfvsb.exp @@ -213,7 +213,8 @@ proc visibility_run {visibility} { } else { # SunOS non PIC shared libraries don't permit some cases of # overriding. - if [ string match $visibility "protected" ] { + if { [ string match $visibility "protected" ] + || [ string match $visibility "protected_undef_def" ] } { setup_xfail $target_triplet } else { setup_xfail "*-*-sunos4*" @@ -224,7 +225,8 @@ proc visibility_run {visibility} { # address for the library. Near as I can tell, the R_*_RELATIVE # relocations for various targets are broken in the case where # the load address is not zero (which is the default). - if [ string match $visibility "protected" ] { + if { [ string match $visibility "protected" ] + || [ string match $visibility "protected_undef_def" ] } { setup_xfail $target_triplet } else { setup_xfail "*-*-sunos4*" @@ -241,7 +243,8 @@ proc visibility_run {visibility} { || ![ld_compile "$CC $CFLAGS $SHCFLAG $VSBCFLAG $picflag" $srcdir/$subdir/sh2.c $tmpdir/sh2p.o] } { unresolved "visibility ($visibility)" } else { - if [ string match $visibility "protected" ] { + if { [ string match $visibility "protected" ] + || [ string match $visibility "protected_undef_def" ] } { setup_xfail $target_triplet } # SunOS can not compare function pointers correctly @@ -266,7 +269,8 @@ proc visibility_run {visibility} { } else { # SunOS non PIC shared libraries don't permit some cases of # overriding. - if [ string match $visibility "protected" ] { + if { [ string match $visibility "protected" ] + || [ string match $visibility "protected_undef_def" ] } { setup_xfail $target_triplet } else { setup_xfail "*-*-sunos4*" @@ -278,7 +282,8 @@ proc visibility_run {visibility} { } if { [file exists $tmpdir/sh1p.o ] && [ file exists $tmpdir/sh2p.o ] } { - if [ string match $visibility "protected" ] { + if { [ string match $visibility "protected" ] + || [ string match $visibility "protected_undef_def" ] } { setup_xfail $target_triplet } if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } { |