[LLVMbugs] [Bug 414] NEW: [vmcore] Emitting globals to a specific executable section

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 4 00:20:33 PDT 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=414

           Summary: [vmcore] Emitting globals to a specific executable
                    section
           Product: libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


LLVM eventually needs the ability to specify which section of an executable a
global variable or function gets emitted to.  This can be used for several
purposes, such as:

1. GC and EH information can be put into a special section to be away from other
   code and data (increasing locality for commonly accessed stuff).
2. The Linux and OS/X kernels use sections to remove all initialization code from
   memory once the system is booted.  This is accomplished by putting this stuff
   into a .init section.
3. GCC supports an attribute to put stuff into a named section.

Adding this is pretty easy and the semantics are straight-forward.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list