old-cross-binutils/ld/testsuite/ld-h8300/relax.d
Nick Clifton 8c17da6e59 * elf32-h8300.c (R_H8_DIR32A16): Fix name field.
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.

* ld-h8300/h8300.exp: Replace loop with explicit list.  Run relax.d
unconditionally.  Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.
2003-07-04 10:25:14 +00:00

21 lines
484 B
Makefile

# name: H8300 Relaxation Test
# ld: --relax
# objdump: -d --no-show-raw-insn
# Based on the test case reported by Kazu Hirata:
# http://sources.redhat.com/ml/binutils/2002-11/msg00301.html
.*: file format .*-h8300
Disassembly of section .text:
00000100 <_start>:
100: 0d 00 mov.w r0,r0
102: 47 02 beq .+2 \(0x106\)
104: 55 02 bsr .+2 \(0x108\)
00000106 <.L1>:
106: 54 70 rts
00000108 <_bar>:
108: 54 70 rts