This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Debug symbols are screwed for a "freestanding" app
- From: Nick Clifton <nickc at redhat dot com>
- To: Anatol Pomozov <anatol dot pomozov at gmail dot com>, binutils at sourceware dot org
- Date: Mon, 29 Jan 2018 14:26:44 +0000
- Subject: Re: Debug symbols are screwed for a "freestanding" app
- Authentication-results: sourceware.org; auth=none
- References: <CAOMFOmUrEDzuJiMnTnYQUyhTxCQQ0eXCz7T9QHoD=-gz69=diQ@mail.gmail.com>
Hi Anatol,
> It seems fine except that there are few "DW_FORM_strp offset too big" warnings.
>
> $ readelf -w foo.elf > /dev/null
> readelf: Warning: DW_FORM_strp offset too big: 5b6
This might be a binutils problem, or it could be a gcc problem. (Ie
it could be generating debug information with the wrong offsets).
Please could you file a bug report here:
https://sourceware.org/bugzilla/enter_bug.cgi
If you can include the assembler source file created by gcc,
the object file created by the assembler and the foo.elf binary
file as well, that would be a big help.
> My environment is Arch Linux with gcc 7.3.0 and binutils 2.29.1.
Binutils 2.30 has just been released, and might possibly contain a
fix for the problem.
Cheers
Nick