[all-commits] [llvm/llvm-project] 700baa: [MC][ELF] Accept abbreviated form with sh_flags an...
Tom Stellard via All-commits
all-commits at lists.llvm.org
Mon Dec 14 14:32:17 PST 2020
Branch: refs/heads/release/11.x
Home: https://github.com/llvm/llvm-project
Commit: 700baa009dc685a0adc5f94d258be4ae24742471
https://github.com/llvm/llvm-project/commit/700baa009dc685a0adc5f94d258be4ae24742471
Author: Tobias Burnus <tobias at codesourcery.com>
Date: 2020-12-14 (Mon, 14 Dec 2020)
Changed paths:
M llvm/lib/MC/MCParser/ELFAsmParser.cpp
M llvm/test/MC/ELF/section-flags-changed.s
A llvm/test/MC/ELF/section-omitted-attributes.s
Log Message:
-----------
[MC][ELF] Accept abbreviated form with sh_flags and sh_entsize
D73999 / commit 75af9da755721123e62b45cd0bc0c5e688a9722a
added for LLVM 11 a check that sh_flags and sh_entsize (and sh_type)
changes are an error, in line with GNU assembler.
However, GNU assembler accepts and GCC generates an abbreviated form:
while the first .section contains the flags and entsize, subsequent
sections simply contain the name without repeating entsize or flags.
Do likewise for better compatibility.
See https://bugs.llvm.org/show_bug.cgi?id=48201
Reviewed By: jhenderson, MaskRay
Differential Revision: https://reviews.llvm.org/D92052
(cherry picked from commit 1deff4009e0ae661b03682901bf6932297ce7ea1)
More information about the All-commits
mailing list