mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
d52e3d06e5
Verify that `strip' completes successfully and a correct relocation entry is copied for a relocation encountered with the STN_UNDEF symbol index. binutils/ * testsuite/binutils-all/strip-15.d: New test. * testsuite/binutils-all/strip-15rel.s: New test source. * testsuite/binutils-all/strip-15rela.s: New test source. * testsuite/binutils-all/strip-15mips64.s: New test source. * testsuite/binutils-all/objcopy.exp: Run the new test.
24 lines
345 B
ArmAsm
24 lines
345 B
ArmAsm
.text
|
|
foo:
|
|
.dc.l 0x12345678
|
|
|
|
.section .rel.text
|
|
.ifdef ELF64
|
|
|
|
.dc.a 0
|
|
.dc.a RELOC
|
|
|
|
.dc.a 0
|
|
.dc.a 0
|
|
.else
|
|
|
|
# Some targets, such as `m68hc11-*', use 16-bit addresses.
|
|
# With them `.dc.a' emits 16-bit quantities, so we need to use
|
|
# `.dc.l' for 32-bit relocation data.
|
|
.dc.l 0
|
|
.dc.l RELOC
|
|
|
|
.dc.l 0
|
|
.dc.l 0
|
|
.endif
|