Align text section ends so that stub tables appears at expected addresses.
This commit is contained in:
parent
6008fc5fcd
commit
15162befa3
@ -1,3 +1,18 @@
|
||||
2015-06-29 Doug Kwan <dougkwan@google.com>
|
||||
|
||||
* testsuite/arm_bl_out_of_range.s: Align stub table so that it appears
|
||||
at address expected by test.
|
||||
* testsuite/arm_cortex_a8_b.s: Ditto.
|
||||
* testsuite/arm_cortex_a8_b_cond.s: Ditto.
|
||||
* testsuite/arm_cortex_a8_bl.s: Ditto.
|
||||
* testsuite/arm_cortex_a8_blx.s: Ditto.
|
||||
* testsuite/arm_cortex_a8_local.s: Ditto.
|
||||
* testsuite/arm_fix_v4bx.s: Ditto.
|
||||
* testsuite/arm_unaligned_reloc.s: Ditto.
|
||||
* testsuite/thumb_bl_out_of_range.s: Ditto.
|
||||
* testsuite/thumb_bl_out_of_range_local.s: Ditto.
|
||||
* testsuite/thumb_blx_out_of_range.s: Ditto.
|
||||
|
||||
2015-06-29 Han Shen <shenhan@google.com>
|
||||
|
||||
Patch for erratum 843419 internal error.
|
||||
|
@ -34,6 +34,9 @@ _forward_test:
|
||||
bl _forward_target
|
||||
.size _forward_test, .-_forward_test
|
||||
|
||||
# Align stub table for address matching
|
||||
.align 8
|
||||
|
||||
.section .text.post,"x"
|
||||
|
||||
# Add padding so that target is just out of branch range.
|
||||
|
@ -28,3 +28,6 @@ _test:
|
||||
add.w r0, r0, 0
|
||||
b.w _func
|
||||
.size _test,.-_test
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 12
|
||||
|
@ -28,3 +28,6 @@ _test:
|
||||
add.w r0, r0, 0
|
||||
beq.w _func
|
||||
.size _test,.-_test
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 12
|
||||
|
@ -28,3 +28,6 @@ _test:
|
||||
add.w r0, r0, 0
|
||||
bl _func
|
||||
.size _test,.-_test
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 12
|
||||
|
@ -30,4 +30,9 @@ _test:
|
||||
|
||||
# We have no mapping symbols for stubs. This make the disassembler
|
||||
# list the stub correctly in ARM mode.
|
||||
.align 2
|
||||
.arm
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 12
|
||||
|
||||
|
@ -27,3 +27,6 @@ _test:
|
||||
add.w r0, r0, 0
|
||||
bpl.w .Lfunc
|
||||
.size _test,.-_test
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 12
|
||||
|
@ -13,3 +13,6 @@ _start:
|
||||
bx r0
|
||||
bx r15
|
||||
.size _start, .-_start
|
||||
|
||||
# Align this to 256-byte boundary for easier address matching.
|
||||
.align 8
|
||||
|
@ -15,7 +15,7 @@ x:
|
||||
.word 1
|
||||
|
||||
.section .data.1,"aw",%progbits
|
||||
.align 2
|
||||
.align 12
|
||||
|
||||
# This causes following relocations to be unaligned.
|
||||
.global padding
|
||||
|
@ -45,8 +45,11 @@ _forward_test:
|
||||
.size _forward_test, .-_forward_test
|
||||
|
||||
# switch back to ARM mode so that stubs are disassembled correctly.
|
||||
.align 2
|
||||
.code 32
|
||||
nop
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 8
|
||||
|
||||
.section .text.post,"x"
|
||||
|
||||
|
@ -45,8 +45,11 @@ _forward_test:
|
||||
.size _forward_test, .-_forward_test
|
||||
|
||||
# Switch back to ARM mode so that we can see stubs
|
||||
.align 2
|
||||
.code 32
|
||||
nop
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 8
|
||||
|
||||
.section .text.post,"x"
|
||||
|
||||
|
@ -50,9 +50,12 @@ _forward_test:
|
||||
.size _forward_test, .-_forward_test
|
||||
|
||||
# switch back to ARM mode so that stubs are disassembled correctly.
|
||||
.align 2
|
||||
.code 32
|
||||
nop
|
||||
|
||||
# Align stub table for address matching.
|
||||
.align 8
|
||||
|
||||
.section .text.post,"x"
|
||||
|
||||
# Add padding so that target is just out of branch range.
|
||||
|
Loading…
Reference in New Issue
Block a user