This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC][ARM][AARCH64] Set DWARF2_LINE_MIN_INSN_LENGTH to 1
- From: Renlin Li <renlin dot li at arm dot com>
- To: Nicholas Clifton <nickc at redhat dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>, rth at redhat dot com
- Date: Tue, 07 Apr 2015 14:07:19 +0100
- Subject: Re: [RFC][ARM][AARCH64] Set DWARF2_LINE_MIN_INSN_LENGTH to 1
- Authentication-results: sourceware.org; auth=none
- References: <55158759 dot 8090300 at arm dot com> <551C164D dot 4010103 at redhat dot com>
On 01/04/15 17:01, Nicholas Clifton wrote:
I do not think that this is a bug. The assembler is correctly reporting that
the user has created a code section that ends not on a code alignment
boundary. It does appear however that this kind of thing is expected to work.
(See eg gas/testsuite/gas/elf/section7.s). So maybe a solution is needed.
Setting DWARF2_LINE_MIN_INSN_LENGTH to 1 seems wrong to me. For the
I agree that, DWARF2_LINE_MIN_INSN_LENGTH should mean what the name
indicates.
The assembly code is indeed crappy.
While writing the object file, subsegs_finish will try to align the last
frag. But dwarf2 information is emitted before that step.
Regards,
Renlin Li