[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21458] ld generates none ARM elf ABI compliant code that causes
From: |
Andrewgoedhart at gmail dot com |
Subject: |
[Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault. |
Date: |
Thu, 04 May 2017 01:03:02 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21458
--- Comment #2 from Andrew Goedhart <Andrewgoedhart at gmail dot com> ---
Created attachment 10037
--> https://sourceware.org/bugzilla/attachment.cgi?id=10037&action=edit
Patch to fix R_ARM_THM_ALU_PREL hard fault/abi relocation error
Tested. After applying patch generates correct code with lsb set at addresses:
0xd720, 0xd738, 0x7d52
?Subroutine5:
0000d710: 0x00000192 str r2, [sp, #4]
0000d712: 0x00000023 movs r3, #0
0000d714: 0x43f69822 movw r2, #15000 ; 0x3a98
0000d718: 0x00000092 str r2, [sp, #0]
0000d71a: 0x00008218 adds r2, r0, r2
0000d71c: 0x00004b41 adcs r3, r1
0000d71e: 0x00000021 movs r1, #0
0000d720: 0x0ff27500 addw r0, pc, #117 ; 0x75
0000d724: 0x0ef023b9 b.w 0x1b96e <g3_timed_events_add>
?Subroutine4:
0000d728: 0x00000192 str r2, [sp, #4]
0000d72a: 0x00000023 movs r3, #0
0000d72c: 0x4ef66022 movw r2, #60000 ; 0xea60
0000d730: 0x00000092 str r2, [sp, #0]
0000d732: 0x00008218 adds r2, r0, r2
0000d734: 0x00004b41 adcs r3, r1
0000d736: 0x00000021 movs r1, #0
0000d738: 0x0ff24100 addw r0, pc, #65 ; 0x41
0000d73c: 0x0ef017b9 b.w 0x1b96e <g3_timed_events_add>
?Subroutine3:
0000d740: 0x00000192 str r2, [sp, #4]
0000d742: 0x4ff4fa62 mov.w r2, #2000 ; 0x7d0
0000d746: 0x00000092 str r2, [sp, #0]
0000d748: 0x10f5fa62 adds.w r2, r0, #2000 ; 0x7d0
0000d74c: 0x41f10003 adc.w r3, r1, #0
0000d750: 0x00000021 movs r1, #0
0000d752: 0x0ff26100 addw r0, pc, #97 ; 0x61
0000d756: 0x0ef00ab9 b.w 0x1b96e <g3_timed_events_add>
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/21458] New: ld generates none ARM elf ABI compliant code that causes a hard fault., Andrewgoedhart at gmail dot com, 2017/05/03
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., Andrewgoedhart at gmail dot com, 2017/05/03
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault.,
Andrewgoedhart at gmail dot com <=
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., Andrewgoedhart at gmail dot com, 2017/05/04
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., Andrewgoedhart at gmail dot com, 2017/05/07
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., cvs-commit at gcc dot gnu.org, 2017/05/09
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., nickc at redhat dot com, 2017/05/09
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., Andrewgoedhart at gmail dot com, 2017/05/09
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., nickc at redhat dot com, 2017/05/10
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., Andrewgoedhart at gmail dot com, 2017/05/10
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., cvs-commit at gcc dot gnu.org, 2017/05/15
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., nickc at redhat dot com, 2017/05/15
- [Bug ld/21458] ld generates none ARM elf ABI compliant code that causes a hard fault., Andrew.goedhart at simplepowersolutions dot co.za, 2017/05/15