mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +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.
18 lines
260 B
ArmAsm
18 lines
260 B
ArmAsm
.section .merge1,"aMS",@progbits,1
|
|
A: .string "flutter"
|
|
|
|
.section .merge2,"aMS",@progbits,1
|
|
B: .string "sting"
|
|
|
|
.section .merge3,"aM",@progbits,4
|
|
C: .4byte 0x300
|
|
D: .4byte 0x200
|
|
|
|
.data
|
|
E: .4byte E
|
|
.4byte E + 0x1000
|
|
.4byte A
|
|
.4byte B
|
|
.4byte C
|
|
.4byte D
|