Ensure we copy the symbol table for MH_PRELOAD Mach-Os, which don't have a LINKEDIT segment, but (can) have a symbol table. rdar://88919473 Differential revision: https://reviews.llvm.org/D120583
11 lines
395 B
Plaintext
11 lines
395 B
Plaintext
$ cat foo.c
|
|
void start(void) asm("start");
|
|
void start(void) {}
|
|
$ xcrun clang -c -o foo.o foo.c -g3
|
|
$ xcrun clang -o foo foo.o -g3 -Wl,-preload -nodefaultlibs
|
|
|
|
RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/preload/foo -o %t.dSYM
|
|
RUN: llvm-nm %p/../Inputs/private/tmp/preload/foo | FileCheck %s
|
|
RUN: llvm-nm %t.dSYM/Contents/Resources/DWARF/foo | FileCheck %s
|
|
CHECK: start
|