mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 05:52:21 +08:00
* ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d,
ld-mips-elf/reloc-5.s, ld-mips-elf/reloc-5.d: New tests. * ld-mips-elf/mips-elf.exp: Invoke them.
This commit is contained in:
@ -114,6 +114,9 @@ run_dump_test "reloc-3"
|
||||
if {$has_newabi} {
|
||||
run_dump_test "reloc-3-n32"
|
||||
}
|
||||
run_dump_test "reloc-4"
|
||||
run_dump_test "reloc-5"
|
||||
|
||||
if {$has_newabi && $linux_gnu} {
|
||||
run_dump_test "eh-frame1-n32"
|
||||
run_dump_test "eh-frame1-n64"
|
||||
|
3
ld/testsuite/ld-mips-elf/reloc-4.d
Normal file
3
ld/testsuite/ld-mips-elf/reloc-4.d
Normal file
@ -0,0 +1,3 @@
|
||||
#source: reloc-4.s
|
||||
#ld:
|
||||
#error: small-data section exceeds 64KB.*truncated to fit: R_MIPS_LITERAL
|
7
ld/testsuite/ld-mips-elf/reloc-4.s
Normal file
7
ld/testsuite/ld-mips-elf/reloc-4.s
Normal file
@ -0,0 +1,7 @@
|
||||
.text
|
||||
.globl _start
|
||||
_start:
|
||||
li.d $f2,1.10000000000000000000e0
|
||||
|
||||
.section .sdata
|
||||
.space 0x10000
|
3
ld/testsuite/ld-mips-elf/reloc-5.d
Normal file
3
ld/testsuite/ld-mips-elf/reloc-5.d
Normal file
@ -0,0 +1,3 @@
|
||||
#source: reloc-5.s
|
||||
#ld:
|
||||
#error: small-data section exceeds 64KB.*truncated to fit: R_MIPS_GPREL16
|
11
ld/testsuite/ld-mips-elf/reloc-5.s
Normal file
11
ld/testsuite/ld-mips-elf/reloc-5.s
Normal file
@ -0,0 +1,11 @@
|
||||
.text
|
||||
.globl _start
|
||||
_start:
|
||||
lw $2, %gp_rel(i)($28)
|
||||
|
||||
.section .sdata
|
||||
.space 0x10000
|
||||
|
||||
.section .sbss
|
||||
i:
|
||||
.space 4
|
Reference in New Issue
Block a user