mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
569006e582
* reloc.c (BFD_RELOC_MN10300_ALIGN): Add. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * elf-m10300.h: Handle R_MN10300_ALIGN relocs. * mn10300_elf_relax_delete_bytes): Honour R_MN10300_ALIGN relocs. Re-fix off by one error in comparisons. * config/tc-mn10300.c (tc_gen_reloc): Fix test that decides when sym_diff relocs should be generated. (md_apply_fix): Skip R_MN10300_ALIGN relocs. (mn10300_fix_adjustable): Do not adjust R_MN10300_ALIGN relocs. (mn10300_handle_align): New function. Generate R_MN10300_ALIGN relocs to record alignment requests. * config/tc-mn10300.h (TC_FORCE_RELOCATION_SUB_SAME): Also force R_MN10300_ALIGN relocs. (HANDLE_ALIGN): Define. Call mn10300_handle_align. * gas/all/gas.exp: Do not run diff1.s test for mn10300. * ld-mn10300/mn10300.exp: Run new tests. Skip i126256 test if a compiler is not available. * ld-mn10300/i112045-3.s: New test. * ld-mn10300/i112045-3.d: Expected disassembly. * ld-mn10300/i135409.s: Rename to i135409-1.s. * ld-mn10300/i135409.d: Rename to i135409-1.d * ld-mn10300/i135409-2.s: New test. * ld-mn10300/i135409-2.d: Expected symbol table. * ld-mn10300/i36434.d: Adjust expected disassembly.
30 lines
410 B
ArmAsm
30 lines
410 B
ArmAsm
.text
|
|
|
|
nop
|
|
|
|
.global _start
|
|
_start:
|
|
.type _func, @function
|
|
_func:
|
|
mov L001,A1
|
|
nop
|
|
A:
|
|
mov L001,A1
|
|
.size _func, . - _func
|
|
|
|
|
|
.global _func2
|
|
_func2:
|
|
.type _func2, @function
|
|
mov L001,A1
|
|
nop
|
|
mov L001,A1
|
|
.size _func2, . - _func2
|
|
|
|
.global BOTTOM
|
|
BOTTOM:
|
|
|
|
.data
|
|
L001:
|
|
|