OSDN Git Service

[MC] Set defaults based on section names and support name suffixes
authorPetr Hosek <phosek@chromium.org>
Tue, 4 Apr 2017 23:32:45 +0000 (23:32 +0000)
committerPetr Hosek <phosek@chromium.org>
Tue, 4 Apr 2017 23:32:45 +0000 (23:32 +0000)
commit802fcd9c3eacc70f80207e9436ffc9754e00ad7f
tree5c1ad5ee26f700c502736bc2c97993205a75f0fb
parent6f50c7fe4aa8c7792be0258595f2769c5a70e540
[MC] Set defaults based on section names and support name suffixes

Set correct default flags and section type based on its name for .text,
.data, .bss, .init_array, .fini_array, .preinit_array, .tdata, and .tbss
and support section name suffixes for .data.*, .rodata.*, .text.*,
.bss.*, .tdata.* and .tbss.* which matches the behavior of GAS.

Fixes PR31888.

Differential Revision: https://reviews.llvm.org/D30229

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/ELFAsmParser.cpp
test/MC/ELF/section.s