[llvm-bugs] [Bug 28926] New: support VERSION in linker script

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 10 09:40:46 PDT 2016


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

            Bug ID: 28926
           Summary: support VERSION in linker script
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Symbol version information can be provided via the --version-script command
line option, or can be embedded into a VERSION block in a linker script:

     VERSION { version-script-commands }

FreeBSD uses this for the Linux ABI vDSO support, presumably from the same use
in the Linux kernel.

Reference: https://www.sourceware.org/binutils/docs/ld/VERSION.html#VERSION

Example:

VERSION
{
        LINUX_2.6 {
        global:
                time;
                __vdso_time;
                gettimeofday;
                __vdso_gettimeofday;
                getcpu;
                __vdso_getcpu;
                clock_gettime;
                __vdso_clock_gettime;
                linux_rt_sigcode;
                linux_platform;
        local: *;
        };
}

-- 
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/20160810/bbde2753/attachment.html>


More information about the llvm-bugs mailing list