[LLVMbugs] [Bug 14693] New: clang driver should only interpret -static as a linker option on Linux
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 21 15:05:19 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14693
Bug #: 14693
Summary: clang driver should only interpret -static as a linker
option on Linux
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgilmore at mips.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ gcc -fPIC -S h.c -static -save-temps ; grep PLT h.s
call puts at PLT
$ clang -fPIC -S h.c -static -save-temps ; grep PLT h.s
$ cat h.c
#include <stdio.h>
int main()
{
printf("hello world\n");
return 0;
}
$
Shouldn't flag usage be consistent with GCC in this situation?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list