[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / linkerscript / symbol-assignexpr.s
blob7f1d9b702d0579b7071646847cdd8312ce3b3411
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
4 # RUN: echo "SECTIONS { symbol2 = symbol; }" > %t2.script
5 # RUN: not ld.lld -o /dev/null -T %t2.script %t.o -Map=%t.map 2>&1 \
6 # RUN: | FileCheck --check-prefix=ERR %s --implicit-check-not=error:
7 # RUN: FileCheck --input-file=%t.map %s --check-prefix=MAP
8 # RUN: not ld.lld -o /dev/null --noinhibit-exec -T %t2.script %t.o 2>&1 \
9 # RUN: | FileCheck --check-prefix=ERR %s --implicit-check-not=error:
11 # ERR-COUNT-3: {{.*}}.script:1: symbol not found: symbol
13 # MAP: VMA LMA Size Align Out In Symbol
14 # MAP-NEXT: 0 0 0 1 symbol2 = symbol
15 # MAP-NEXT: 0 0 1 4 .text
16 # MAP-NEXT: 0 0 1 4 {{.*}}.o:(.text)
17 # MAP-NEXT: 0 0 0 1 _start
18 # MAP-NEXT: 0 0 8 1 .comment
19 # MAP-NEXT: 0 0 8 1 <internal>:(.comment)
20 # MAP-NEXT: 0 0 60 8 .symtab
21 # MAP-NEXT: 0 0 60 8 <internal>:(.symtab)
22 # MAP-NEXT: 0 0 2a 1 .shstrtab
23 # MAP-NEXT: 0 0 2a 1 <internal>:(.shstrtab)
24 # MAP-NEXT: 0 0 17 1 .strtab
25 # MAP-NEXT: 0 0 17 1 <internal>:(.strtab)
27 .global _start
28 _start:
29 nop