binutils-gdb/ld/testsuite/ld-sh/sh64/stobin-1.d
Kaz Kojima 46e993b970 [bfd]
* elf32-sh.c (sh_elf_relocate_section): Handle R_SH_IMM_*_PCREL
	relocations.
	(sh_elf_check_relocs): Likewise.

	* elf32-sh64.c (elf_backend_merge_symbol_attribute): Define.
	(sh64_elf_merge_symbol_attribute): New.
	* elf64-sh64.c (elf_backend_merge_symbol_attribute): Define.
	(sh64_elf64_merge_symbol_attribute): New.

[ld/testsuite]
	* ld-sh/sh64/rd-sh64.exp: If the test matches *-dso.d, copy
	the output of linker to the file tmpdir/*-dso.so.
	* ld-sh/sh64/stobin-0-dso.d: New.
	* ld-sh/sh64/stobin-1.d: New.
	* ld-sh/sh64/stobin.s: New.
	* ld-sh/sh64/stolib.s: New.
2003-10-15 06:23:55 +00:00

16 lines
383 B
Makefile

#source: stobin.s
#as: --abi=32 --isa=SHmedia
#ld: -mshelf32 tmpdir/stobin-0-dso.so
#objdump: -drj.text
#target: sh64-*-elf
.*: +file format elf32-sh64.*
Disassembly of section \.text:
0+[0-9a-f]+ <start>:
[0-9a-f]+: cffffd90 movi -1,r25
[0-9a-f]+: cbfee590 shori 65465,r25 ! 0xffffffb9 .*
[0-9a-f]+: 6bf56600 ptrel/l r25,tr0
[0-9a-f]+: 4401fff0 blink tr0,r63