[PATCH] D30229: [MC] Mark sections whose names starts with .text as AX

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 15:19:42 PST 2017


phosek added a comment.

In https://reviews.llvm.org/D30229#682890, @mcgrathr wrote:

> Isn't PROGBITS the default type anyway?
>
> The GNU behavior is not startswith(".text"); it's == ".text" || startswith(".text.").  Exactly analogous to the .bss cases I reported earlier.


The `.text` case is handled by a directive handler (line 57) which only supports the exact match which is why this is being handled separately.


Repository:
  rL LLVM

https://reviews.llvm.org/D30229





More information about the llvm-commits mailing list