brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 7f1d9b7 Raw
30 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3 4# RUN: echo "SECTIONS { symbol2 = symbol; }" > %t2.script5# 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=MAP8# 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:10 11# ERR-COUNT-3: {{.*}}.script:1: symbol not found: symbol12 13# MAP:      VMA              LMA     Size Align Out     In      Symbol14# MAP-NEXT:   0                0        0     1 symbol2 = symbol15# MAP-NEXT:   0                0        1     4 .text16# MAP-NEXT:   0                0        1     4         {{.*}}.o:(.text)17# MAP-NEXT:   0                0        0     1                 _start18# MAP-NEXT:   0                0        8     1 .comment19# MAP-NEXT:   0                0        8     1         <internal>:(.comment)20# MAP-NEXT:   0                0       60     8 .symtab21# MAP-NEXT:   0                0       60     8         <internal>:(.symtab)22# MAP-NEXT:   0                0       2a     1 .shstrtab23# MAP-NEXT:   0                0       2a     1         <internal>:(.shstrtab)24# MAP-NEXT:   0                0       17     1 .strtab25# MAP-NEXT:   0                0       17     1         <internal>:(.strtab)26 27.global _start28_start:29 nop30