[llvm-bugs] [Bug 44457] New: Fatal error on inline asm(".section xxx")

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 4 05:12:03 PST 2020


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

            Bug ID: 44457
           Summary: Fatal error on inline asm(".section xxx")
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ch3root at openwall.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 22986
  --> https://bugs.llvm.org/attachment.cgi?id=22986&action=edit
preprocessed source

Aleksey Cherepanov communicated to me the following testcase. clang hits a
"fatal error" while trying to compile it.

----------------------------------------------------------------------
void f()
{
    __asm__(".section xxx");
}
----------------------------------------------------------------------
$ clang test.c 
error: Cannot represent a difference across sections
fatal error: error in backend: Size expression must be absolute.
clang-10: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 10.0.0 (https://github.com/llvm/llvm-project.git
1737cc750c464b454ec14b397ce1b7cf504e17a7)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/user/cc/clang/bin
clang-10: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-10: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-10: note: diagnostic msg: /tmp/test-850ec9.c
clang-10: note: diagnostic msg: /tmp/test-850ec9.sh
clang-10: note: diagnostic msg: 

********************
----------------------------------------------------------------------

The same happens with __asm__(".pushsection xxx");

-- 
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/20200104/a81de751/attachment.html>


More information about the llvm-bugs mailing list