[LLVMbugs] [Bug 19256] New: -fms-extensions should support __declspec(allocate("...")) and #pragma section("...", ...)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 26 10:36:48 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19256

            Bug ID: 19256
           Summary: -fms-extensions should support
                    __declspec(allocate("...")) and #pragma section("...",
                    ...)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 18887
    Classification: Unclassified

Some code in Chromium uses this to allocate a page of executable memory in the
image:
https://code.google.com/p/chromium/codesearch#chromium/src/chrome_elf/ntdll_cache.cc&sq=package:chromium&type=cs&l=22

// Allocate storage for thunks in a page of this module to save on doing
// an extra allocation at run time.
#pragma section(".crthunk",read,execute)
__declspec(allocate(".crthunk")) sandbox::ThunkData g_nt_thunk_storage;

IMO these extensions are different enough from http://llvm.org/pr18885 to
warrant a different bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140326/19f6a040/attachment.html>


More information about the llvm-bugs mailing list