HomePhabricator

Add support for #pragma clang section

Description

Add support for #pragma clang section

This patch provides a means to specify section-names for global variables,
functions and static variables, using #pragma directives.
This feature is only defined to work sensibly for ELF targets.
One can specify section names as:
#pragma clang section bss="myBSS" data="myData" rodata="myRodata" text="myText"
One can "unspecify" a section name with empty string e.g.
#pragma clang section bss="" data="" text="" rodata=""

Reviewers: Roger Ferrer, Jonathan Roelofs, Reid Kleckner
Differential Revision: https://reviews.llvm.org/D33412

Details

Committed
javed.absarJun 5 2017, 3:11 AM
Differential Revision
D33412: Add support for #pragma clang section
Parents
rL304704: Add support for #pragma clang section
Branches
Unknown
Tags
Unknown