Bug 58498 - Tests fail with gold linker on ARM
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 19 Dec 2012 18:00:16 +0000 (13:00 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 19 Dec 2012 18:00:16 +0000 (13:00 -0500)
src/check-exported-symbols.sh
src/check-internal-symbols.sh

index ea07e57..6f0bf7f 100755 (executable)
@@ -24,7 +24,7 @@ for def in $defs; do
                echo "Checking that $so has the same symbol list as $def"
                {
                        echo EXPORTS
-                       nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>\| __bss_start\>\| _edata\>\| _end\>' | cut -d' ' -f3
+                       nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>\| __bss_start\>\| __bss_start__\>\| __bss_end__\>\| _edata\>\| _end\>\| _bss_end__\>\| __end__\>' | cut -d' ' -f3
                        stat=1
                        # cheat: copy the last line from the def file!
                        tail -n1 "$def"
index c8d8f44..a8fdc53 100755 (executable)
@@ -19,7 +19,7 @@ for suffix in .so; do
        so=`echo .libs/libharfbuzz$suffix`
        if test -f "$so"; then
                echo "Checking that we are not exposing internal symbols"
-               if nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>\| T hb_\| __bss_start\>\| _edata\>\| _end\>'; then
+               if nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>\| T hb_\| __bss_start\>\| __bss_start__\>\| __bss_end__\>\| _edata\>\| _end\>\| _bss_end__\>\| __end__\>'; then
                        echo "Ouch, internal symbols exposed"
                        stat=1
                fi