[llvm-bugs] [Bug 42656] New: Allow linking of fPIC objects into regular executables.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 17 11:36:26 PDT 2019


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

            Bug ID: 42656
           Summary: Allow linking of fPIC objects into regular
                    executables.
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: sbc at chromium.org
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

Currently this is not supported under wasm but is supported on other platforms.

We have a couple of options for how to implement this:

1. Linker relaxation

This would rewrite the "get_global + load/store" and "get_global +
call_indirect" into simple load/start or call_indirect instructions. 

2. Create module-internal globals for address and table offsets.  

I think I'll start with (2) since is simple and doesn't involve any new
relocation types.

-- 
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/20190717/0462b41a/attachment.html>


More information about the llvm-bugs mailing list