brintos

brintos / llvm-project-archived public Read only

0
0
Text · 617 B · 3315854 Raw
18 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3 4# RUN: echo "SECTIONS { .text : { *(.text) } foo = ABSOLUTE(_start) + _start; };" > %t.script5# RUN: ld.lld -o %t --script %t.script %t.o6# RUN: llvm-objdump -t %t | FileCheck %s7 8# RUN: echo "SECTIONS { .text : { *(.text) } foo = _start + ABSOLUTE(_start); };" > %t.script9# RUN: ld.lld -o %t --script %t.script %t.o10# RUN: llvm-objdump -t %t | FileCheck %s11 12# CHECK: 0000000000000001 g       .text  0000000000000000 _start13# CHECK: 0000000000000002 g       .text  0000000000000000 foo14 15        .global _start16        nop17_start:18