https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118221

--- Comment #2 from Trampas Stern <trampas at gmail dot com> ---
Yes! 

I typically use xpack to install cross compiler with binutils. 

I have verified that this issue does not exist before GCC 11.  I have tested
that it exists with the latest version of arm-none-eabi 14.2.Rel1:
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

I have also confirmed that it exists in the following version installed via
xpack:
11.2.1-1.1.1
11.3.1-1.1.2
12.3.1-1.2.1
13.3.1-1.1.1

I have tested and issue does not exist in the following versions:
10.2.1-1.1.2
10.3.1-2.2.1

I have read the change log for GCC 11, and changed compiler options to output
DWARF version 4 which still had the issue. 

I have tried changing compiler/linker with -flto and it still has the issue. 

I have found the issue appears to be relative to the elf file.  I have not
researched the elf file format enough to figure out what the differences are,
but if I use 11.2.1 version of objdump to dump both elf files the version from
GCC 10 does not have issue.  Also if I use objdump from GCC 10 to dump listing
for both elf files then the GCC 11 listing still has the issue.  Therefore it
seems agnostic to the version of objdump.  This left me with the conclusion
that something is different in the elf file causing the error.

Reply via email to