mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
81d43bffb5
* 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.
21 lines
281 B
Plaintext
21 lines
281 B
Plaintext
ENTRY(_start)
|
|
SECTIONS
|
|
{
|
|
. = 0x80000;
|
|
.text : { *(.text) }
|
|
|
|
. = ALIGN (0x400);
|
|
.merge1 : { *(.merge1) }
|
|
|
|
. = ALIGN (0x400);
|
|
.merge2 : { *(.merge2) }
|
|
|
|
. = ALIGN (0x400);
|
|
.merge3 : { *(.merge3) }
|
|
|
|
. = ALIGN (0x400);
|
|
.data : { *(.data) }
|
|
|
|
/DISCARD/ : { *(*) }
|
|
}
|