old-cross-binutils/ld/testsuite/ld-mips-elf/emit-relocs-1.ld
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

20 lines
281 B
Text

ENTRY(_start)
SECTIONS
{
. = 0x80000;
.text : { *(.text) }
. = ALIGN (0x400);
.merge1 : { *(.merge1) }
. = ALIGN (0x400);
.merge2 : { *(.merge2) }
. = ALIGN (0x400);
.merge3 : { *(.merge3) }
. = ALIGN (0x400);
.data : { *(.data) }
/DISCARD/ : { *(*) }
}