[llvm-bugs] [Bug 38271] Inline assembler might need better errors for section mismatches

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 20 14:55:15 PST 2020


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

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |i at maskray.me
         Resolution|---                         |FIXED

--- Comment #1 from Fangrui Song <i at maskray.me> ---
int main() {
    __asm__ __volatile__ (".text; ha: nop; .data; .long ha-.; .text");
}

works fine with clang have_as_x86_pcrel.c -flto=thin -ffunction-sections.

I do think `<unknown>:0: Cannot represent a difference across sections` is
still possible but we'll need a fresh test case.

-- 
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/20201220/f628fc8b/attachment.html>


More information about the llvm-bugs mailing list