[llvm-bugs] [Bug 42950] New: __attribute__((section())) string should not be escaped

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 9 14:33:07 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42950

            Bug ID: 42950
           Summary: __attribute__((section())) string should not be
                    escaped
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk, sedat.dilek at gmail.com,
                    srhines at google.com
            Blocks: 4068

int foo __attribute__((__section__("\".foo\"")));


In Clang produces:
  .section "\".foo\"","aw", at progbits

In GCC:
  .section ".foo","aw"

This is leading to a bug in Clang built Linux kernels for distros that use BPF
(not eBPF) during boot, causing them to fail to boot.

https://github.com/ClangBuiltLinux/linux/issues/619


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
-- 
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/20190809/29e812e1/attachment.html>


More information about the llvm-bugs mailing list