Skip to content

Why can static linking with AOT ld successfully link the object files generated by ORC JIT, but JITlink fails to produce a correct executable file? #91708

Open
@Thrrreeee

Description

@Thrrreeee

When I input a .bc file generated by a multithreaded program, dump the object file generated by ORC JIT, ORC JIT cannot produce a correct executable file, and using llvm-jitlink also fails. However, when I use clang ld to link, it succeeds.
When debugging with LLDB, it outputs the error signal SIGSEGV: invalid address (fault address: 0x0).
What could be the reasons behind this situation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions