aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/reloc-merge-lo16.s
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-07-08 15:43:00 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-07-08 15:43:00 +0000
commit17a6716ad03a8b735c7b8afb36aa3b00665d6f34 (patch)
treed30d15f73bb7f01f360256d658a5963564d3670a /ld/testsuite/ld-mips-elf/reloc-merge-lo16.s
parent855bd88ab87f67a9ca044d6caabc004bc2a409c2 (diff)
downloadgdb-17a6716ad03a8b735c7b8afb36aa3b00665d6f34.zip
gdb-17a6716ad03a8b735c7b8afb36aa3b00665d6f34.tar.gz
gdb-17a6716ad03a8b735c7b8afb36aa3b00665d6f34.tar.bz2
* ld-mips-elf/reloc-merge-lo16.{s,d,ld}: New test.
* ld-mips-elf/mips-elf.exp: Run it.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/reloc-merge-lo16.s')
-rw-r--r--ld/testsuite/ld-mips-elf/reloc-merge-lo16.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/reloc-merge-lo16.s b/ld/testsuite/ld-mips-elf/reloc-merge-lo16.s
new file mode 100644
index 0000000..33158b1
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/reloc-merge-lo16.s
@@ -0,0 +1,28 @@
+ .section .rodata.str1.4,"aMS", @progbits, 1
+ .macro fillstr char
+ .rept 0x3fff - \char
+ .byte \char
+ .endr
+ .byte 0
+ .endm
+ fillstr 'a'
+ fillstr 'h'
+ fillstr 'c'
+ fillstr 'd'
+ fillstr 'g'
+ fillstr 'f'
+g:
+ fillstr 'g'
+ fillstr 'h'
+
+ .text
+ .globl __start
+ .ent __start
+ .type __start, @function
+__start:
+ lui $2, %hi(g)
+ addiu $3, $2, %lo(g)
+ addiu $2, $2, %lo(g)
+ .end __start
+
+ .space 16