[PATCH] D29278: [ELF] Bypass section type check #2
ben via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 08:29:46 PST 2017
bd1976llvm added a comment.
FWIW, I liked the spirit, if not the implementation, of your original change: https://reviews.llvm.org/D28761. To me it seems that LLD should do it's best to obey the linker script even if that means producing an elf that doesn't meet the elf standard (although I think it is a dubious call as to if the elf standard is really meant to be this strict). By all means issue a warning if the types or flags of sections don't match - but don't fail the link! This makes the tool simpler and able to cope with non-conforming input effectively.
More information about the llvm-commits