[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated
From: |
clegg89 at gmail dot com |
Subject: |
[Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly |
Date: |
Mon, 29 May 2017 11:16:09 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21523
--- Comment #3 from clegg89 at gmail dot com ---
Created attachment 10071
--> https://sourceware.org/bugzilla/attachment.cgi?id=10071&action=edit
Test Case
The object file test.o contains two relocations, both of type
R_ARM_THM_ALU_PREL_11_0, as can be seen by arm-none-eabi-objdump:
arm-none-eabi-objdump -rd test.o:
test.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <getOtherValue>:
0: f2af 0004 subw r0, pc, #4
0: R_ARM_THM_ALU_PREL_11_0 aValue
4: 4770 bx lr
...
00000008 <aValue>:
8: 6854 7369 6920 2073 2061 6574 7473 000a This is a test..
00000018 <getValue>:
18: f2af 0004 subw r0, pc, #4
18: R_ARM_THM_ALU_PREL_11_0 aValue
1c: 4770 bx lr
When attempting to link this object file, the first relocation (in
getOtherValue) is performed without issue. However, the second relocation (in
getValue) throws an error:
test.o: In function `getValue':
test:(.text+0x18): relocation truncated to fit: R_ARM_THM_ALU_PREL_11_0 against
symbol `aValue' defined in .text section in test.o
Details on how to build the project can be found in README.md
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/21523] New: Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, clegg89 at gmail dot com, 2017/05/25
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, clegg89 at gmail dot com, 2017/05/25
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, clegg89 at gmail dot com, 2017/05/28
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, clegg89 at gmail dot com, 2017/05/28
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly,
clegg89 at gmail dot com <=
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, clegg89 at gmail dot com, 2017/05/29
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, clegg89 at gmail dot com, 2017/05/29
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, cvs-commit at gcc dot gnu.org, 2017/05/30
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, nickc at redhat dot com, 2017/05/30
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, clegg89 at gmail dot com, 2017/05/31
- [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly, nickc at redhat dot com, 2017/05/31