This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Linker --fix-v4bx problem
- From: Gary Partis <Gary at partis dot co dot uk>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Sun, 9 Feb 2020 16:33:19 +0000
- Subject: Linker --fix-v4bx problem
Hello
I am using GNU ld version 2.31.1 to target ARMv3 (ARM610/710) processors. Primarily, GCC's libgcc contains "BX LR" instructions which we want changed to "MOV PC,LR" so to be compatible with older processors, but after running the linker with the "--fix-vxb4" directive the BX instructions are still there (we use objdump to disassemble the resultant ELF file to check).
Are we missing something really obvious or is the "--fix-v4bx" directive broken in some way?
Thanks in advance.
Kind regards
Gary Partis