From 2f47f5fc1338185064d87c4ab54773a9f4cfe796 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 13 Jun 2013 12:36:02 +0000 Subject: PR ld/15302 * elf32-arm.c (allocate_dynrelocs_for_symbol): Transform ST_BRANCH_TO_ARM into ST_BRANCH_TO_THUMB if the target only supports thumb instructions. PR ld/15302 * ld-arm/branch-lks-sym.ld: New script. * ld-arm/thumb-b-lks-sym.s: New test. * ld-arm/thumb-b-lks-sym.d: Expected disassembly. * ld-arm/thumb-bl-lks-sym.s: New test. * ld-arm/thumb-bl-lks-sym.d: Expected disassembly. * ld-arm/arm-elf.exp: Run the new tests. --- ld/testsuite/ld-arm/thumb-b-lks-sym.s | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ld/testsuite/ld-arm/thumb-b-lks-sym.s (limited to 'ld/testsuite/ld-arm/thumb-b-lks-sym.s') diff --git a/ld/testsuite/ld-arm/thumb-b-lks-sym.s b/ld/testsuite/ld-arm/thumb-b-lks-sym.s new file mode 100644 index 0000000..ae62f8b --- /dev/null +++ b/ld/testsuite/ld-arm/thumb-b-lks-sym.s @@ -0,0 +1,16 @@ +@ Test to ensure that the b to linker script symbol isn't changed to other format. + + + .syntax unified + .cpu cortex-m3 + .fpu softvfp + .thumb + .file "x.c" + .text + .align 2 + .global main + .thumb + .thumb_func + .type main, %function +main: + b extFunc -- cgit v1.1