[all-commits] [llvm/llvm-project] 1deff4: [MC][ELF] Accept abbreviated form with sh_flags an...
abidh via All-commits
all-commits at lists.llvm.org
Fri Dec 11 08:46:51 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1deff4009e0ae661b03682901bf6932297ce7ea1
https://github.com/llvm/llvm-project/commit/1deff4009e0ae661b03682901bf6932297ce7ea1
Author: Tobias Burnus <tobias at codesourcery.com>
Date: 2020-12-11 (Fri, 11 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
More information about the All-commits
mailing list