Line 147... |
Line 147... |
if { $fails != 0 } {
|
if { $fails != 0 } {
|
return
|
return
|
}
|
}
|
|
|
# Check the object file.
|
# Check the object file.
|
if {! [check_osabi tmpdir/unique.o {UNIX - Linux}]} {
|
if {! [check_osabi tmpdir/unique.o {UNIX - GNU}]} {
|
fail "Object containing unique does not have an OS/ABI field of LINUX"
|
fail "Object containing unique does not have an OS/ABI field of GNU"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|
}
|
}
|
|
|
if {[contains_unique_symbol tmpdir/unique.o] != 1} {
|
if {[contains_unique_symbol tmpdir/unique.o] != 1} {
|
fail "Object containing unique does not contain an UNIQUE symbol"
|
fail "Object containing unique does not contain an UNIQUE symbol"
|
Line 162... |
Line 162... |
if { $fails == 0 } {
|
if { $fails == 0 } {
|
pass "Checking unique object"
|
pass "Checking unique object"
|
}
|
}
|
|
|
# Check the executable.
|
# Check the executable.
|
if {! [check_osabi tmpdir/unique_prog {UNIX - Linux}]} {
|
if {! [check_osabi tmpdir/unique_prog {UNIX - GNU}]} {
|
fail "Executable containing unique does not have an OS/ABI field of LINUX"
|
fail "Executable containing unique does not have an OS/ABI field of GNU"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|
}
|
}
|
|
|
if {[contains_unique_symbol tmpdir/unique_prog] != 1} {
|
if {[contains_unique_symbol tmpdir/unique_prog] != 1} {
|
fail "Executable containing unique does not contain an UNIQUE symbol"
|
fail "Executable containing unique does not contain an UNIQUE symbol"
|
Line 192... |
Line 192... |
if { $fails == 0 } {
|
if { $fails == 0 } {
|
pass "Checking empty unique object"
|
pass "Checking empty unique object"
|
}
|
}
|
|
|
# Check the unique PIC file.
|
# Check the unique PIC file.
|
if {! [check_osabi tmpdir/unique_shared.o {UNIX - Linux}]} {
|
if {! [check_osabi tmpdir/unique_shared.o {UNIX - GNU}]} {
|
fail "PIC Object containing unique does not have an OS/ABI field of LINUX"
|
fail "PIC Object containing unique does not have an OS/ABI field of GNU"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|
}
|
}
|
|
|
if {[contains_unique_symbol tmpdir/unique_shared.o] != 1} {
|
if {[contains_unique_symbol tmpdir/unique_shared.o] != 1} {
|
fail "PIC Object containing unique does not contain an UNIQUE symbol"
|
fail "PIC Object containing unique does not contain an UNIQUE symbol"
|
Line 207... |
Line 207... |
if { $fails == 0 } {
|
if { $fails == 0 } {
|
pass "Checking unique PIC object"
|
pass "Checking unique PIC object"
|
}
|
}
|
|
|
# Check the unique shared library.
|
# Check the unique shared library.
|
if {! [check_osabi tmpdir/libunique_shared.so {UNIX - Linux}]} {
|
if {! [check_osabi tmpdir/libunique_shared.so {UNIX - GNU}]} {
|
fail "Shared library containing unique does not have an OS/ABI field of LINUX"
|
fail "Shared library containing unique does not have an OS/ABI field of GNU"
|
set fails [expr $fails + 1]
|
set fails [expr $fails + 1]
|
}
|
}
|
|
|
if {[contains_unique_symbol tmpdir/libunique_shared.so] != 1} {
|
if {[contains_unique_symbol tmpdir/libunique_shared.so] != 1} {
|
fail "Shared library containing unique does not contain an UNIQUE symbol"
|
fail "Shared library containing unique does not contain an UNIQUE symbol"
|