[LLVMbugs] [Bug 10417] New: accepting __attribute__((section("__ksymtab_strings"))) on mach-o

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 19 17:35:15 PDT 2011


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

           Summary: accepting
                    __attribute__((section("__ksymtab_strings"))) on
                    mach-o
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: echristo at gmail.com
                CC: llvmbugs at cs.uiuc.edu


llvm-gcc/gcc accepts this code from 2006-07-31-PR854.c:


  struct kernel_symbol {
    unsigned long value;
  };
  unsigned long loops_per_jiffy = (1<<12);
  static const char __kstrtab_loops_per_jiffy[]
__attribute__((section("__ksymtab_strings"))) = "loops_per_jiffy";
  static const struct kernel_symbol __ksymtab_loops_per_jiffy
__attribute__((__used__)) __attribute__((section("__ksymtab"))) = { (unsigned
long)&loops_per_jiffy, __kstrtab_loops_per_jiffy };

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list