[llvm-bugs] [Bug 34164] New: lld: please support -zmuldefs

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 11 13:02:00 PDT 2017


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

            Bug ID: 34164
           Summary: lld: please support -zmuldefs
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
            Blocks: 23214

>From the GNU ld manpage:

       --allow-multiple-definition
       -z muldefs
           Normally when a symbol is defined multiple times, the linker will
           report a fatal error. These options allow multiple definitions and
           the first definition will be used.

This gets used by FreeBSD's arm LINT kernel, which is not intended to actually
boot but enables all kernel options/devices and is used as a source file
coverage tool.

E.g.:

ld: error: duplicate symbol: cpu_initclocks
>>> defined at /usr/home/emaste/src/freebsd-wip/sys/arm/arm/machdep.c
>>>            machdep.o:(cpu_initclocks)
>>> defined at /usr/home/emaste/src/freebsd-wip/sys/arm/at91/at91_machdep.c
>>>            at91_machdep.o:(.text+0x3B0)


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=23214
[Bug 23214] [META] Using LLD as FreeBSD's system linker
-- 
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/20170811/3b3e608d/attachment.html>


More information about the llvm-bugs mailing list