[llvm-bugs] [Bug 36554] New: Better error message for programs that need text relocations

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 28 15:43:24 PST 2018


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

            Bug ID: 36554
           Summary: Better error message for programs that need text
                    relocations
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: ruiu at google.com
                CC: llvm-bugs at lists.llvm.org

When I use lld for a program that needs text relocations, lld prints out the
following error message

  error: can't create dynamic relocation R_X86_64_64 against local symbol in
readonly segment; recompile object files with -fPIC

This is very user unfriendly. It should give a hint that it may be resolved by
appending "-z notext", though the option is not recommend.

-- 
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/20180228/d467f42d/attachment.html>


More information about the llvm-bugs mailing list