Fix test with gold linker
Bug 57633 - Symbol tests should ignore __bss_start, _edata, _end
This commit is contained in:
parent
b71b0bd9ee
commit
61865745e3
|
@ -24,7 +24,7 @@ for def in $defs; do
|
||||||
echo "Checking that $so has the same symbol list as $def"
|
echo "Checking that $so has the same symbol list as $def"
|
||||||
{
|
{
|
||||||
echo EXPORTS
|
echo EXPORTS
|
||||||
nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>' | cut -d' ' -f3
|
nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>\| __bss_start\>\| _edata\>\| _end\>' | cut -d' ' -f3
|
||||||
stat=1
|
stat=1
|
||||||
# cheat: copy the last line from the def file!
|
# cheat: copy the last line from the def file!
|
||||||
tail -n1 "$def"
|
tail -n1 "$def"
|
||||||
|
|
|
@ -19,7 +19,7 @@ for suffix in .so; do
|
||||||
so=`echo .libs/libharfbuzz$suffix`
|
so=`echo .libs/libharfbuzz$suffix`
|
||||||
if test -f "$so"; then
|
if test -f "$so"; then
|
||||||
echo "Checking that we are not exposing internal symbols"
|
echo "Checking that we are not exposing internal symbols"
|
||||||
if nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>\| T hb_'; then
|
if nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>\| T hb_\| __bss_start\>\| _edata\>\| _end\>'; then
|
||||||
echo "Ouch, internal symbols exposed"
|
echo "Ouch, internal symbols exposed"
|
||||||
stat=1
|
stat=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue