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

Reply via email to