Line 242... |
Line 242... |
}
|
}
|
|
|
# Check the executables and shared libraries
|
# Check the executables and shared libraries
|
#
|
#
|
# The linked ifunc using executables and the shared library containing
|
# The linked ifunc using executables and the shared library containing
|
# ifunc should have an OSABI field of LINUX. The linked non-ifunc using
|
# ifunc should have an OSABI field of GNU. The linked non-ifunc using
|
# executable should have an OSABI field of NONE (aka System V).
|
# executable should have an OSABI field of NONE (aka System V).
|
|
|
if {! [check_osabi tmpdir/libshared_ifunc.so {UNIX - Linux}]} {
|
if {! [check_osabi tmpdir/libshared_ifunc.so {UNIX - GNU}]} {
|
fail "Shared libraries containing ifunc does not have an OS/ABI field of LINUX"
|
fail "Shared libraries containing ifunc does not have an OS/ABI field of GNU"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|
}
|
}
|
if {! [check_osabi tmpdir/local_prog {UNIX - Linux}]} {
|
if {! [check_osabi tmpdir/local_prog {UNIX - GNU}]} {
|
fail "Local ifunc-using executable does not have an OS/ABI field of LINUX"
|
fail "Local ifunc-using executable does not have an OS/ABI field of GNU"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|
}
|
}
|
if {! [check_osabi tmpdir/static_prog {UNIX - Linux}]} {
|
if {! [check_osabi tmpdir/static_prog {UNIX - GNU}]} {
|
fail "Static ifunc-using executable does not have an OS/ABI field of LINUX"
|
fail "Static ifunc-using executable does not have an OS/ABI field of GNU"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|
}
|
}
|
if {! [check_osabi tmpdir/dynamic_prog {UNIX - System V}]} {
|
if {! [check_osabi tmpdir/dynamic_prog {UNIX - System V}]} {
|
fail "Dynamic ifunc-using executable does not have an OS/ABI field of System V"
|
fail "Dynamic ifunc-using executable does not have an OS/ABI field of System V"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|