[llvm-bugs] [Bug 35838] New: lld does not export __start_*/__stop_* symbols when a version script is passed

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 5 16:52:44 PST 2018


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

            Bug ID: 35838
           Summary: lld does not export __start_*/__stop_* symbols when a
                    version script is passed
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org

$ cat start.s
.globl __start_foo
.globl __stop_foo
.section foo
$ cat start.lds
{
  global:
    __start_foo;
    __stop_foo;
  local:
    *;
};
$ make start.o
as   -o start.o start.s
$ ld.lld start.o --version-script start.lds -shared
$ nm -D
nm: a.out: no symbols

-- 
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/20180106/f86cf641/attachment.html>


More information about the llvm-bugs mailing list