diff options
author | Maciej W. Rozycki <macro@mips.com> | 2018-06-09 01:09:23 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@mips.com> | 2018-06-09 01:09:23 +0100 |
commit | d68033ea86780183c2a2a28077fe495acde5887c (patch) | |
tree | afeaf83b98dc223bde85714fc1fc1440766522c2 /ld/testsuite/ld-mips-elf/mips-elf.exp | |
parent | 653e0a1e047b00d77bf9b094f06a9781d6d45589 (diff) | |
download | gdb-d68033ea86780183c2a2a28077fe495acde5887c.zip gdb-d68033ea86780183c2a2a28077fe495acde5887c.tar.gz gdb-d68033ea86780183c2a2a28077fe495acde5887c.tar.bz2 |
MIPS/LD/testsuite: Add microMIPS lazy binding stub tests
Adapt the existing regular MIPS lazy binding stub tests for microMIPS
code verification. Check both regular and `--insn32' variants.
Correct indentation issues in the conditional updated.
ld/
* testsuite/ld-mips-elf/stub-dynsym-micromips-1-7fff.d: New
test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-1-8000.d: New
test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-1-fff0.d: New
test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-1-10000.d: New
test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-1-2fe80.d: New
test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-7fff.d:
New test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-8000.d:
New test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-fff0.d:
New test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-10000.d:
New test.
* testsuite/ld-mips-elf/stub-dynsym-micromips-insn32-1-2fe80.d:
New test.
* testsuite/ld-mips-elf/mips-elf.exp: Run the new tests. Fix
indentation.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/mips-elf.exp')
-rw-r--r-- | ld/testsuite/ld-mips-elf/mips-elf.exp | 51 |
1 files changed, 29 insertions, 22 deletions
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index d688867..b8d7882 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -782,28 +782,35 @@ run_dump_test "hash1b" run_dump_test "hash1c" if {[istarget mips*-*-linux*]} { - # The number of symbols that are always included in the symbol table - # for these tests. The 2 are: - # - # the null symbol entry - # the .MIPS.stubs section symbol - set base_syms 2 - foreach dynsym { 7fff 8000 fff0 10000 2fe80 } { - run_ld_link_tests \ - [list [list \ - "Stub for dynsym 0x$dynsym" \ - "-shared -melf32btsmip -T stub-dynsym-1.ld" "" \ - [concat \ - "-EB -march=mips1 -32 -KPIC" \ - "--defsym base_syms=$base_syms" \ - "--defsym dynsym=0x$dynsym"] \ - [list "stub-dynsym-1.s"] \ - [list [list \ - "objdump" "-dz" \ - "stub-dynsym-1-$dynsym.d"]] \ - "stub-dynsym-1-$dynsym"]] - } - } + # The number of symbols that are always included in the symbol table + # for these tests. The 2 are: + # + # the null symbol entry + # the .MIPS.stubs section symbol + set base_syms 2 + foreach { isa aflag lflag suffix } \ + { MIPS -march=mips1 "" "" \ + microMIPS -mmicromips "" -micromips \ + "microMIPS insn32" "-mmicromips -minsn32" --insn32 \ + -micromips-insn32 } { + foreach dynsym { 7fff 8000 fff0 10000 2fe80 } { + run_ld_link_tests \ + [list [list \ + "Stub for dynsym 0x$dynsym ($isa)" \ + "-shared -melf32btsmip -T stub-dynsym-1.ld $lflag" \ + "" \ + [concat \ + "-EB $aflag -32 -KPIC" \ + "--defsym base_syms=$base_syms" \ + "--defsym dynsym=0x$dynsym"] \ + [list "stub-dynsym-1.s"] \ + [list [list \ + "objdump" "-dz" \ + "stub-dynsym$suffix-1-$dynsym.d"]] \ + "stub-dynsym$suffix-1-$dynsym"]] + } + } +} # For tests which may involve multiple files, use run_ld_link_tests. |