the sh_entsize section header of the .debug_gdb_scripts section should be set to 1 (not 0) #36612
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
Context: As part of our work towards integrating lld into rustc (#36120), we found out
and reported 3 scenarios ("bugs") where
lld
doesn't behave exactly the same asld
. While one ofthe LLD devs was looking over one of the object files that was used one of the bug reports, they
found out something that seemed irregular:
Quoting @rui314's comment from the LLVM bug tracker:
The object mentioned in the comment can be generated with:
This issue is to discuss if we should change the value of sh_entsize for this particular section.
This is above my paygrade so I'm going to cc @michaelwoerister who knows our debuginfo very well.
P.S. This particular bug has already been fixed in lld by, AIUI, relaxing one of their checks so our
object files are accepted.
The text was updated successfully, but these errors were encountered: