forked from OSchip/llvm-project
31 lines
939 B
Plaintext
31 lines
939 B
Plaintext
/* RUN: linker-script-test %s | FileCheck %s
|
|
*/
|
|
|
|
OUTPUT_FORMAT(elf64-x86-64)
|
|
GROUP ( /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc_nonshared.a AS_NEEDED ( /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ) )
|
|
ENTRY(init)
|
|
|
|
/*
|
|
CHECK: kw_output_format: OUTPUT_FORMAT
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: elf64-x86-64
|
|
CHECK: r_paren: )
|
|
CHECK: kw_group: GROUP
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: /lib/x86_64-linux-gnu/libc.so.6
|
|
CHECK: identifier: /usr/lib/x86_64-linux-gnu/libc_nonshared.a
|
|
CHECK: kw_as_needed: AS_NEEDED
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
|
|
CHECK: r_paren: )
|
|
CHECK: r_paren: )
|
|
CHECK: kw_entry: ENTRY
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: init
|
|
CHECK: r_paren: )
|
|
CHECK: eof:
|
|
CHECK: OUTPUT_FORMAT(elf64-x86-64)
|
|
CHECK: GROUP(/lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc_nonshared.a AS_NEEDED(/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2))
|
|
CHECK: ENTRY(init)
|
|
*/
|