aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-03-15 09:50:23 -0700
committerGitHub <noreply@github.com>2024-03-15 09:50:23 -0700
commite115c00565be88677e8b7fe021a3e242249c67b8 (patch)
treef9ebc8f6c19792e8d5db425c0701b3f0a618f8a7 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent58f7251820b14c93168726a24816d8a094599be5 (diff)
downloadllvm-e115c00565be88677e8b7fe021a3e242249c67b8.zip
llvm-e115c00565be88677e8b7fe021a3e242249c67b8.tar.gz
llvm-e115c00565be88677e8b7fe021a3e242249c67b8.tar.bz2
[ELF] Reject certain unknown section types (#85173)
Unknown section sections may require special linking rules, and rejecting such sections for older linkers may be desired. For example, if we introduce a new section type to replace a control structure (e.g. relocations), it would be nice for older linkers to reject the new section type. GNU ld allows certain unknown section types: * [SHT_LOUSER,SHT_HIUSER] and non-SHF_ALLOC * [SHT_LOOS,SHT_HIOS] and non-SHF_OS_NONCONFORMING but reports errors and stops linking for others (unless --no-warn-mismatch is specified). Port its behavior. For convenience, we additionally allow all [SHT_LOPROC,SHT_HIPROC] types so that we don't have to hard code all known types for each processor. Close https://github.com/llvm/llvm-project/issues/84812
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions