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: unassignedb...@nondot.org
          Reporter: r...@google.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to