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