https://bugs.llvm.org/show_bug.cgi?id=47384
Bug ID: 47384
Summary: -wrap not supported on MinGW
Product: lld
Version: unspecified
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: COFF
Assignee: unassignedb...@nondot.org
Reporter: org...@gmail.com
CC: llvm-bugs@lists.llvm.org
rand.cpp:
#include <stdlib.h>
#include <stdio.h>
extern "C" int __wrap_rand() { return 42; }
int main()
{
printf("%d\n", rand());
return 0;
}
$ g++ -Wl,-wrap=rand -o rand rand.cpp
$ ./rand
42
$ g++ -fuse-ld=lld -Wl,-wrap=rand -o rand rand.cpp
lld: error: unknown argument: -wrap=rand
collect2.exe: error: ld returned 1 exit status
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs