]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/testsuite/binutils-all/readelf.exp
ELF: Don't generate unused section symbols
[thirdparty/binutils-gdb.git] / binutils / testsuite / binutils-all / readelf.exp
index 4834233ad3160da25d5b42696800bb976c45262e..51d26b762b3aa8bfe3511ad1d0c846e9a7d5ec5d 100644 (file)
@@ -100,7 +100,11 @@ proc readelf_test { options binary_file regexp_file xfails } {
        return
     }
 
-    set target_machine ""
+    if { [is_elf_unused_section_symbols ] } {
+       set target_machine unused
+    } else {
+       set target_machine ""
+    }
     if [istarget "mips*-*-*"] then {
        if [is_bad_symtab] then {
            set target_machine mips