brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 056f330 Raw
32 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3 4## The definitions of symbol assignments may reference other symbols.5## Test we can handle them.6 7# RUN: echo "SECTIONS { aaa = foo | 1; .text  : { *(.text*) } }" > %t3.script8# RUN: ld.lld -o %t --script %t3.script %t.o9# RUN: llvm-nm -p %t | FileCheck --check-prefix=VAL1 %s10 11# VAL1: 0000000000000000 T foo12# VAL1: 0000000000000001 T aaa13 14# RUN: echo "SECTIONS { aaa = ABSOLUTE(foo - 1) + 1; .text  : { *(.text*) } }" > %t.script15# RUN: ld.lld -o %t --script %t.script %t.o16# RUN: llvm-nm -p %t | FileCheck --check-prefix=VAL %s17 18# RUN: echo "SECTIONS { aaa = 1 + ABSOLUTE(foo - 1); .text  : { *(.text*) } }" > %t.script19# RUN: ld.lld -o %t --script %t.script %t.o20# RUN: llvm-nm -p %t | FileCheck --check-prefix=VAL %s21 22# RUN: echo "SECTIONS { aaa = ABSOLUTE(foo); .text  : { *(.text*) } }" > %t4.script23# RUN: ld.lld -o %t --script %t4.script %t.o24# RUN: llvm-nm -p %t | FileCheck --check-prefix=VAL %s25 26# VAL: 0000000000000000 T foo27# VAL: 0000000000000000 A aaa28 29.section .text30.globl foo31foo:32