On 29.04.2022 11:36, Roger Pau Monne wrote:
> LLVM LD doesn't strip the quotes from the section names, and so the
> resulting binary ends up with section names like:
>
> [ 1] ".text" PROGBITS ffff82d040200000 00008000
> 000000000018cbc1 0000000000000000 AX 0 0 4096
>
> This confuses some tools (like gdb) and prevents proper parsing of the
> binary.
>
> The issue has already been reported and is being fixed in LLD. In
> order to workaround this issue and keep the GNU ld support define
> different DECL_SECTION macros depending on the used ld
> implementation.
>
> Drop the quotes from the definitions of the debug sections in
> DECL_DEBUG{2}, as those quotes are not required for GNU ld either.
>
> Fixes: 6254920587c3 ('x86: quote section names when defining them in linker
> script')
> Signed-off-by: Roger Pau Monné <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>