forked from OSchip/llvm-project
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
/* RUN: linker-script-test %s | FileCheck %s
|
|
*/
|
|
|
|
OUTPUT_ARCH(i386:x86_64)
|
|
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
|
|
OUTPUT("/out/foo")
|
|
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 ) -lm -l:libgcc.a )
|
|
ENTRY(init)
|
|
|
|
/*
|
|
CHECK: kw_output_arch: OUTPUT_ARCH
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: i386:x86_64
|
|
CHECK: r_paren: )
|
|
CHECK: kw_output_format: OUTPUT_FORMAT
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: elf64-x86-64
|
|
CHECK: comma: ,
|
|
CHECK: identifier: elf64-x86-64
|
|
CHECK: comma: ,
|
|
CHECK: identifier: elf64-x86-64
|
|
CHECK: r_paren: )
|
|
CHECK: kw_output: OUTPUT
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: /out/foo
|
|
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: libname: m
|
|
CHECK: libname: :libgcc.a
|
|
CHECK: r_paren: )
|
|
CHECK: kw_entry: ENTRY
|
|
CHECK: l_paren: (
|
|
CHECK: identifier: init
|
|
CHECK: r_paren: )
|
|
CHECK: eof:
|
|
CHECK: OUTPUT_FORMAT("elf64-x86-64","elf64-x86-64","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) -lm -l:libgcc.a)
|
|
CHECK: ENTRY(init)
|
|
*/
|