http://llvm.org/bugs/show_bug.cgi?id=16251
Bug ID: 16251
Summary: Clang -pg option doesn't work on Linux
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 10640
--> http://llvm.org/bugs/attachment.cgi?id=10640&action=edit
Replace crt1.o with gcrt1.o when -pg is specified
Clang linker driver links the wrong crt1.o file when -pg option is specified.
As a result, the gprof doesn't work with clang on Linux. Programs compiled with
clang -pg doesn't generate gmon.out file.
Attached is patch which replaces crt1.o with gcrt1.o when -pg is specified.
With the patch, compiled programs generate gmon.out file correctly.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs