mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* config/tc-sh.c (sh_force_relocation): Return 0 for some PC relative relocations when not relaxing. * testsuite/gas/sh/pcrel2.s: New. * testsuite/gas/sh/pcrel2.d: New. * testsuite/gas/sh/basic.exp: Add pcrel2 test.
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||
|
||||
* gas/sh/pcrel2.s: New.
|
||||
* gas/sh/pcrel2.d: New.
|
||||
* gas/sh/basic.exp: Add pcrel2 test.
|
||||
|
||||
2002-09-27 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* gas/vax/elf-rel.[ds]: New test.
|
||||
|
@ -129,6 +129,8 @@ if [istarget sh*-*-*] then {
|
||||
run_dump_test "dsp"
|
||||
|
||||
run_dump_test "pcrel"
|
||||
|
||||
run_dump_test "pcrel2"
|
||||
}
|
||||
|
||||
if {[istarget sh*-*elf] || [istarget sh*-linux*]} then {
|
||||
|
5
gas/testsuite/gas/sh/pcrel2.d
Normal file
5
gas/testsuite/gas/sh/pcrel2.d
Normal file
@ -0,0 +1,5 @@
|
||||
#as: -big
|
||||
#objdump: -r
|
||||
#name: PC-relative loads
|
||||
|
||||
.*: file format .*sh.*
|
17
gas/testsuite/gas/sh/pcrel2.s
Normal file
17
gas/testsuite/gas/sh/pcrel2.s
Normal file
@ -0,0 +1,17 @@
|
||||
.text
|
||||
|
||||
.p2align 2
|
||||
code:
|
||||
bf foo
|
||||
mov.l bar, r0
|
||||
mov.w bar, r0
|
||||
.globl foo
|
||||
foo:
|
||||
bra foo
|
||||
nop
|
||||
.align 2
|
||||
.globl bar
|
||||
bar:
|
||||
.long . - foo
|
||||
.word . - foo
|
||||
.byte . - foo
|
Reference in New Issue
Block a user