Hello,
Regarding ELFObjectWriter.cpp in LLVM-MC LLVM: lib/MC/ELFObjectWriter.cpp Source File
in line no 415.
with design assumptions made in D95749 [ELF] Make SHF_GNU_RETAIN sections GC roots (llvm.org)
setting OSABI to GNU seems to be incorrect since lld obeys SHF_GNU_RETAIN semantics even for ELFOSABINONE. is there any specific reason why we are changing OSABI here.
Even if LLD does, do GNU ld and gold?