[all-commits] [llvm/llvm-project] cb0a4b: [ELF] Change (NOLOAD) section type mismatch error ...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Feb 18 11:20:49 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb0a4bb5be10636aaec3ecb56ed586dee3eb0b9e
https://github.com/llvm/llvm-project/commit/cb0a4bb5be10636aaec3ecb56ed586dee3eb0b9e
Author: Fangrui Song <i at maskray.me>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M lld/ELF/OutputSections.cpp
M lld/test/ELF/linkerscript/noload.s
Log Message:
-----------
[ELF] Change (NOLOAD) section type mismatch error to warning
Making a (NOLOAD) section SHT_PROGBITS is fishy (the user may expect all-zero
content, but the linker does not check that), but some projects (e.g. Linux
kernel https://github.com/ClangBuiltLinux/linux/issues/1597) traditionally rely
on the behavior. Issue a warning to not break them.
More information about the All-commits
mailing list