[llvm-bugs] [Bug 51207] New: Cannot mark llvmbc section as SHF_EXCLUDE

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 24 13:58:55 PDT 2021


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

            Bug ID: 51207
           Summary: Cannot mark llvmbc section as SHF_EXCLUDE
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: nikita.ppv at gmail.com
                CC: htmldeveloper at gmail.com, i at maskray.me,
                    llvm-bugs at lists.llvm.org

After
https://github.com/llvm/llvm-project/commit/82d0749749fafb0303414131dc570781376fdcfb
this IR

module asm ".section .llvmbc,\22e\22"
@rustc.embedded.module = private constant [3 x i8] c"ABC", section ".llvmbc"

when run through llc results in an "Unknown section kind" assertion failure.

rustc emits this IR here, which has a comment explaining why it does so:
https://github.com/rust-lang/rust/blob/bddb59cf07efcf6e606f16b87f85e3ecd2c1ca69/compiler/rustc_codegen_llvm/src/back/write.rs#L970-L1017

I'm not sure where the bug is here -- what rustc is doing certainly looks
fishy, but I'm not sure what it is supposed to be doing instead. Any advice?

-- 
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/20210724/d4e5d1fb/attachment.html>


More information about the llvm-bugs mailing list