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
Original issue reported on code.google.com by
mysekki
on 25 May 2012 at 2:28Attachments: