[all-commits] [llvm/llvm-project] 56decd: [ELF] Allow invalid sh_size%sh_entsize!=0 for non-...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Apr 3 08:48:40 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 56decd982dc03a74d1796d9d4dbd7d9e0cea98dc
https://github.com/llvm/llvm-project/commit/56decd982dc03a74d1796d9d4dbd7d9e0cea98dc
Author: Fangrui Song <maskray at google.com>
Date: 2020-04-03 (Fri, 03 Apr 2020)
Changed paths:
M lld/ELF/InputFiles.cpp
A lld/test/ELF/invalid/entsize.yaml
Log Message:
-----------
[ELF] Allow invalid sh_size%sh_entsize!=0 for non-SHF_MERGE sections
Fixes https://bugs.llvm.org/show_bug.cgi?id=45370
Fixes https://github.com/Clozure/ccl/issues/273
.stab holds a table of 12-byte entries. GNU as before 2.35 incorrectly
sets sh_entsize(.stab) to 20 on 64-bit architectures:
https://sourceware.org/bugzilla/show_bug.cgi?id=25768
We should not emit the confusing error:
"SHF_MERGE section size (...) must be a multiple of sh_entsize (20)
Reviewed By: grimar, psmith
Differential Revision: https://reviews.llvm.org/D77368
More information about the All-commits
mailing list