2011-05-31 Paul Brook <paul@codesourcery.com>
gas/ * config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant addresses. gas/testsuite/ * arm/t2-branch-global.d: New test. * arm/t2-branch-global.s: New test.
This commit is contained in:
parent
6e7ce2cdd3
commit
10960bfbce
@ -1,3 +1,8 @@
|
||||
2011-05-31 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant
|
||||
addresses.
|
||||
|
||||
2011-05-31 Paul Brook <paul@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
|
@ -9845,7 +9845,9 @@ do_t_branch (void)
|
||||
|
||||
if (unified_syntax
|
||||
&& (inst.size_req == 4
|
||||
|| (inst.size_req != 2 && inst.operands[0].hasreloc)))
|
||||
|| (inst.size_req != 2
|
||||
&& (inst.operands[0].hasreloc
|
||||
|| inst.reloc.exp.X_op == O_constant))))
|
||||
{
|
||||
inst.instruction = THUMB_OP32(opcode);
|
||||
if (cond == COND_ALWAYS)
|
||||
|
@ -1,3 +1,8 @@
|
||||
2011-05-31 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* arm/t2-branch-global.d: New test.
|
||||
* arm/t2-branch-global.s: New test.
|
||||
|
||||
2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
||||
|
||||
* gas/s390/esa-g5.d: Fix fp register pair operands.
|
||||
|
14
gas/testsuite/gas/arm/t2-branch-global.d
Normal file
14
gas/testsuite/gas/arm/t2-branch-global.d
Normal file
@ -0,0 +1,14 @@
|
||||
#name: Thumb-2 branch to constant address
|
||||
#This test is only valid on ELF based ports.
|
||||
#not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
|
||||
#objdump: -rd
|
||||
|
||||
|
||||
.*: +file format.*arm.*
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
00000000 <foo>:
|
||||
0: f... b... b\.w .*
|
||||
0: R_ARM_THM_JUMP24 \*ABS\*.*
|
5
gas/testsuite/gas/arm/t2-branch-global.s
Normal file
5
gas/testsuite/gas/arm/t2-branch-global.s
Normal file
@ -0,0 +1,5 @@
|
||||
.thumb
|
||||
.arch armv7
|
||||
.syntax unified
|
||||
foo:
|
||||
b 0x10 @ Assembler must not relax this
|
Loading…
x
Reference in New Issue
Block a user