Skip to content
Snippets Groups Projects
  • Javed Absar's avatar
    7c787101
    Add support for #pragma clang section · 7c787101
    Javed Absar authored
    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
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304705 91177308-0d34-0410-b5e6-96231b3b80d8
    7c787101
    History
    Add support for #pragma clang section
    Javed Absar authored
    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
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304705 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.