a747a286b9331adfba85a508beddaef47ea1a1c2
Author: Viorel Preoteasa
Date: Fri Mar 18 15:32:28 2022 +
Fix ld-arm bug in encoding of blx calls jumping from thumb to arm
instructions
PR 28924
* elf32-arm.c (THM_MAX_FWD_BRANCH_OFFSET): Fix definition.
(THM2_MAX_FWD_BRANCH_OFFSET
https://sourceware.org/bugzilla/show_bug.cgi?id=28924
Nick Clifton changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://sourceware.org/bugzilla/show_bug.cgi?id=28924
--- Comment #5 from Viorel Preoteasa ---
The error occurs also in the master branch of binutils. The bug can be
reproduced applying ld
compiled for arm using the following configuration:
export
CPPFLAGS=-I/home/viorel/arm-none-eabi-original/
https://sourceware.org/bugzilla/show_bug.cgi?id=28924
--- Comment #4 from Viorel Preoteasa ---
Created attachment 14021
--> https://sourceware.org/bugzilla/attachment.cgi?id=14021&action=edit
Disassembled correct file after using the fixed ld
--
You are receiving this mail because:
You are on
https://sourceware.org/bugzilla/show_bug.cgi?id=28924
--- Comment #3 from Viorel Preoteasa ---
Created attachment 14020
--> https://sourceware.org/bugzilla/attachment.cgi?id=14020&action=edit
Disassembled erroneous file after linking the object file
--
You are receiving this mail because:
You
https://sourceware.org/bugzilla/show_bug.cgi?id=28924
Viorel Preoteasa changed:
What|Removed |Added
CC||viorel.preoteasa at gmail dot
com
https://sourceware.org/bugzilla/show_bug.cgi?id=28924
Nick Clifton changed:
What|Removed |Added
CC||nickc at redhat dot com
--- Comment #1
Hi Jori,
We encountered a linking error in 11.1 and 11.2 of the ARM GNU Toolchain.
If this is a toolchain produced by ARM, then you really need to contact them,
not us. If you can reproduce the problem using the GNU Binutils sources
directly, then please feel free to report the bug here:
ht
https://sourceware.org/bugzilla/show_bug.cgi?id=28924
Bug ID: 28924
Summary: ld-arm bug in encoding of blx calls jumping from thumb
to arm instructions
Product: binutils
Version: 2.37
Status: UNCONFIRMED
Hello,
We encountered a linking error in 11.1 and 11.2 of the ARM GNU Toolchain. There
seems to be a bug in encodings of calls using blx when jumping from thumb to
arm instructions. When the jump is exactly 2^24 + 2, the jump turns into a jump
of 2 instead of an indirect jump. If the jump is sh
10 matches
Mail list logo