old-cross-binutils/ld/testsuite/ld-mips-elf/emit-relocs-1a.s
Richard Sandiford 81d43bffb5 bfd/
* elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
	out from...
	(_bfd_mips_elf_relocate_section): ...here.  Use it to adjust r_addend
	for final links too.

ld/testsuite/
	* ld-mips/emit-relocs-1a.s, ld-mips/emit-relocs-1b.s,
	* ld-mips/emit-relocs-1.ld, ld-mips/emit-relocs-1.d: New test.
	* ld-mips/mips-elf.exp: Run it.
2006-03-14 07:47:49 +00:00

22 lines
299 B
ArmAsm

.text
.globl _start
_start:
jr $31
.section .merge1,"aMS",@progbits,1
A: .string "utter"
.section .merge2,"aMS",@progbits,1
B: .string "tasting"
.section .merge3,"aM",@progbits,4
C: .4byte 0x100
D: .4byte 0x200
.data
E: .4byte E
.4byte E + 0x1000
.4byte A
.4byte B
.4byte C
.4byte D