[RFC][ARM][AARCH64] Set DWARF2_LINE_MIN_INSN_LENGTH to 1
Renlin Li
renlin.li@arm.com
Tue Apr 7 13:07:00 GMT 2015
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
More information about the Binutils
mailing list