[llvm-bugs] [Bug 45190] New: arch/x86/entry/entry_64_compat.S: Assertion `OS.tell() - Start == Layout.getSectionAddressSize(Sec)' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 12 18:28:16 PDT 2020


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

            Bug ID: 45190
           Summary: arch/x86/entry/entry_64_compat.S: Assertion `OS.tell()
                    - Start == Layout.getSectionAddressSize(Sec)' failed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: caij2003 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Building above file in the linux kernel triggered the assertion failure. The
reason is due to the following code pattern

$ cat bad.s
.macro ALTERNATIVE newinstr
.skip 144f-143f,0x0
.pushsection .altinstr_replacement,"ax"
143:
\newinstr
144:
.popsection
.endm

.section .entry.text, "ax"
ALTERNATIVE "jmp .Lint80_keep_stack"
.Lint80_keep_stack:

$ gcc -c bad.s
$ echo $?
0

-- 
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/20200313/cfd6e5fb/attachment.html>


More information about the llvm-bugs mailing list