[llvm-bugs] [Bug 28690] New: linker script: implement EXCLUDE_FILE

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 24 18:41:34 PDT 2016


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

            Bug ID: 28690
           Summary: linker script: implement EXCLUDE_FILE
           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
            Blocks: 23214
    Classification: Unclassified

>From https://www.sourceware.org/binutils/docs-2.10/ld_3.html

    To exclude a list of files from matching the file name wildcard,
EXCLUDE_FILE may be used to match all files except the ones specified in the
EXCLUDE_FILE list. For example:

    (*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors))

    will cause all .ctors sections from all files except `crtend.o' and
`otherfile.o' to be included.

Example use in the FreeBSD/amd64 kernel link script:
https://svnweb.freebsd.org/base/head/sys/conf/ldscript.amd64?view=markup#l124

-- 
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/20160725/e504787c/attachment.html>


More information about the llvm-bugs mailing list