Lines Matching full:unique
24 # Adapted for unique checking by Mark J. Wielaard <mjw@redhat.com>
40 verbose "UNIQUE tests not run - target does not support UNIQUE"
49 verbose "UNIQUE tests not run - not a native toolchain"
56 verbose "UNIQUE tests not run - no compiler available"
87 # A procedure to confirm that a file contains the UNIQUE symbol.
101 # 54: 0000000000400474 4 OBJECT UNIQUE DEFAULT 13 a
103 if { ![regexp ".*\[ \]*OBJECT\[ \]+UNIQUE\[ \]+DEFAULT\[ \]+\[UND0-9\]+\[ \]+\[ab\]\n" [file_contents readelf.out]] } {
112 # Create object file containing unique symbol.
113 if ![ld_compile "$CC -c" "$srcdir/$subdir/unique.s" "tmpdir/unique.o"] {
114 fail "Could not create a unique object"
118 # Create object file NOT containing unique symbol.
120 fail "Could not create a non-unique object"
124 # Create pic object file containing unique symbol.
126 fail "Could not create a pic unique object"
130 # Create executable containing unique symbol.
131 if ![default_ld_link $ld "tmpdir/unique_prog" "tmpdir/unique.o"] {
132 fail "Could not link a unique executable"
136 # Create shared library containing unique symbol.
138 fail "Could not create a shared library containing an unique symbol"
142 # Create executable NOT containing unique symbol linked against library.
148 # Create shared library containing unique symbol with reference.
150 fail "Could not create a shared library containing an unique symbol with reference"
159 if {! [check_osabi tmpdir/unique.o {UNIX - GNU}]} {
160 fail "Object containing unique does not have an OS/ABI field of GNU"
164 if {[contains_unique_symbol tmpdir/unique.o] != 1} {
165 fail "Object containing unique does not contain an UNIQUE symbol"
170 pass "Checking unique object"
175 fail "Executable containing unique does not have an OS/ABI field of GNU"
180 fail "Executable containing unique does not contain an UNIQUE symbol"
185 pass "Checking unique executable"
190 fail "Object NOT containing unique does not have an OS/ABI field of System V"
195 fail "Object NOT containing unique does contain an UNIQUE symbol"
200 pass "Checking empty unique object"
203 # Check the unique PIC file.
205 fail "PIC Object containing unique does not have an OS/ABI field of GNU"
210 fail "PIC Object containing unique does not contain an UNIQUE symbol"
215 pass "Checking unique PIC object"
218 # Check the unique shared library.
220 fail "Shared library containing unique does not have an OS/ABI field of GNU"
225 fail "Shared library containing unique does not contain an UNIQUE symbol"
229 # Check the unique shared library with reference.
231 fail "Shared library containing unique with reference does not have an OS/ABI field of GNU"
236 fail "Shared library containing unique with reference does not contain an UNIQUE symbol"
241 pass "Checking unique PIC object"
244 # Check the empty executable linked against unique shared library.
246 fail "Executable NOT containing unique does not have an OS/ABI field of System V"
251 fail "Executable NOT containing unique does contain an UNIQUE symbol"
262 remote_file host delete "tmpdir/unique.o"