mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +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.
23 lines
299 B
ArmAsm
23 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
|