Skip to content
Commit 1deff400 authored by Tobias Burnus's avatar Tobias Burnus Committed by Hafiz Abid Qadeer
Browse files

[MC][ELF] Accept abbreviated form with sh_flags and sh_entsize

D73999 / commit 75af9da7
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
parent 4d956af5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment