berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

Do not report error for undefined weak symbol #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
$llvm-mcld -shared -z defs crti.o -march=x86
Error: undefined reference to `__gmon_start__'
Error: undefined reference to `__gmon_start__'

$ld.gold -shared -z defs crti.o -m elf-i386
successfully generate the output file

gnu ld and gold won't report error for undefined weak or undefined non-global 
symbols. (when -z defs is given or emits executables)
Ref: gnu gold, target-reloc.h, line 176.

Original issue reported on code.google.com by mysekki on 25 May 2012 at 2:28

Attachments:

GoogleCodeExporter commented 9 years ago
fix at revision 24e9d9b6739b.

Original comment by mysekki on 25 May 2012 at 8:24