diff options
author | Fangrui Song <i@maskray.me> | 2024-03-15 09:50:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 09:50:23 -0700 |
commit | e115c00565be88677e8b7fe021a3e242249c67b8 (patch) | |
tree | f9ebc8f6c19792e8d5db425c0701b3f0a618f8a7 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 58f7251820b14c93168726a24816d8a094599be5 (diff) | |
download | llvm-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