diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-07-03 20:42:10 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-07-03 20:42:10 +0000 |
commit | 1fc6e4fa79444b2a7be8a1150f646ffbde68b744 (patch) | |
tree | 309b13e3238d65a18c1ce1e5c9b88f14f1102cd8 /test/Coverage/codegen-gnu.m | |
parent | c70851b74c06b27df07b9a772656a2e663d432ee (diff) |
When using -pg targeting OS X 10.8, pass -no_new_main to the linker.
By default on OS X 10.8, we don't link with a crt1.o file and the linker
knows to use _main as the entry point. But, when compiling with -pg, we
need to link with the gcrt1.o file, and the linker needs to be told to use
the "start" symbol as the entry point. The -no_new_main linker option does
that last part. <rdar://problem/11491405>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Coverage/codegen-gnu.m')
0 files changed, 0 insertions, 0 deletions