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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to