[llvm-dev] [LLD] Support DWARF64, debug_info "sorting"
Cary Coutant via llvm-dev
llvm-dev at lists.llvm.org
Wed Nov 18 12:13:07 PST 2020
> My concern with using section type, is that it does modify ELF format spec, and can break various tools that rely on this information. This sems somewhat of a heavy handed approach to solving this problem.
>
> Alternatively, if we do want to go with something more official then just doing it in a linker using first reloc, why not use sh_info? Seems like it's made for providing an extra information for each section_type. In this case .debug_*.
No, sh_info is a poor fit for this. Its usage is implied by the
sh_type, and, if used, always contains either a symbol table index or
a section table index. A section flag would be far more appropriate.
-cary
More information about the llvm-dev
mailing list