diff mbox

[ARM] fix for the check-namespace test case

Message ID 1318596255-27239-2-git-send-email-ken.werner@linaro.org
State Accepted
Commit 9a311bf48b08dcf18c09f289c3b7bf2382282e61
Headers show

Commit Message

Ken Werner Oct. 14, 2011, 12:44 p.m. UTC
Add ARM specific symbols and ignore some symbols generated by the ARM Linux
default linker script.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
---
 tests/check-namespace.sh.in |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/tests/check-namespace.sh.in b/tests/check-namespace.sh.in
index 0608607..4858faa 100644
--- a/tests/check-namespace.sh.in
+++ b/tests/check-namespace.sh.in
@@ -69,6 +69,15 @@  filter_misc () {
     ignore _Uelf64_valid_object
     ignore _U.*debug_level
     ignore ICRT.INTERNAL	# ICC 8.x defines this
+
+    # Ignore symbols generated by the ARM Linux default linker script.
+    # For details see the binutils sources (src/ld/emulparams/armelf_linux.sh).
+    if [ ${plat} = "arm" ]; then
+	ignore __bss_start__
+	ignore __bss_end__
+	ignore __end__
+	ignore _bss_end__
+    fi
 }
 
 check_local_unw_abi () {
@@ -105,6 +114,12 @@  check_local_unw_abi () {
     match backtrace
 
     case ${plat} in
+	arm)
+	    match _U${plat}_get_elf_image
+	    match _U${plat}_is_fpreg
+	    match _UL${plat}_search_unwind_table
+	    match _UL${plat}_dwarf_search_unwind_table
+	    ;;
 	hppa)
 	    match _UL${plat}_dwarf_search_unwind_table
 	    match _U${plat}_get_elf_image
@@ -162,6 +177,12 @@  check_generic_unw_abi () {
     match _U${plat}_strerror
 
     case ${plat} in
+	arm)
+	    match _U${plat}_is_fpreg
+	    match _U${plat}_get_elf_image
+	    match _U${plat}_search_unwind_table
+	    match _U${plat}_dwarf_search_unwind_table
+	    ;;
 	hppa)
 	    match _U${plat}_dwarf_search_unwind_table
 	    match _U${plat}_get_elf_image