bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/28254] gas 2.63.1 fails to generate debugging information for a


From: dcmay at copper dot net
Subject: [Bug gas/28254] gas 2.63.1 fails to generate debugging information for aarch64 .S files
Date: Tue, 24 Aug 2021 11:34:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28254

--- Comment #5 from Dietmar May <dcmay at copper dot net> ---
No, I trust that it works.

The PR states:

>> DW_AT_ranges (since DWARF v3; probably ok to have it in -gdwarf-2) probably
>> should not have contribution from non-executable sections.

But this is NOT a non-executable section. It should be clear to the assembler
that it is generating and emitting executable code for the section.

Why should it be necessary to replace:

 .section .rom_core_0

with

 .section .rom_core_0,"ax",%progbits

to tell the assembler that a section that contains executable code is
executable?

That looks like a hackaround, not designed behavior.

This is real simple, straightforward assembler code. Are we saying that the
syntax of the assembler for its most important intended task has necessarily
been made more complex for the sake of eliminating debugging information for
NON-EXECUTABLE code?

If that's the case, then the original PR apparently did more than intended:

>> I also extended it to cover sections that are not loaded as well, since 
>> I do not see how debug information for them would be useful either.

For this is neither non-executable code, nor a section that is not loaded - it
is exactly the very first instructions that the processor executes upon
startup.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]