[Bug ld/28924] ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-18 Thread cvs-commit at gcc dot gnu.org
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

[Bug ld/28924] ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28924 Nick Clifton changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ld/28924] ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-16 Thread viorel.preoteasa at gmail dot com
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/

[Bug ld/28924] ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-16 Thread viorel.preoteasa at gmail dot com
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

[Bug ld/28924] ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-16 Thread viorel.preoteasa at gmail dot com
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

[Bug ld/28924] ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-16 Thread viorel.preoteasa at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28924 Viorel Preoteasa changed: What|Removed |Added CC||viorel.preoteasa at gmail dot com

[Bug ld/28924] ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-16 Thread nickc at redhat 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

Re: ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-03-16 Thread Nick Clifton
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

[Bug ld/28924] New: ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-02-25 Thread jori.bomanson at huld dot io
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

ld-arm bug in encoding of blx calls jumping from thumb to arm instructions

2022-02-22 Thread Jori Bomanson
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