You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
617 B
18 lines
617 B
7 months ago
|
# REQUIRES: x86
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
||
|
|
||
|
# RUN: echo "SECTIONS { .text : { *(.text) } foo = ABSOLUTE(_start) + _start; };" > %t.script
|
||
|
# RUN: ld.lld -o %t --script %t.script %t.o
|
||
|
# RUN: llvm-objdump -t %t | FileCheck %s
|
||
|
|
||
|
# RUN: echo "SECTIONS { .text : { *(.text) } foo = _start + ABSOLUTE(_start); };" > %t.script
|
||
|
# RUN: ld.lld -o %t --script %t.script %t.o
|
||
|
# RUN: llvm-objdump -t %t | FileCheck %s
|
||
|
|
||
|
# CHECK: 0000000000000001 g .text 0000000000000000 _start
|
||
|
# CHECK: 0000000000000002 g .text 0000000000000000 foo
|
||
|
|
||
|
.global _start
|
||
|
nop
|
||
|
_start:
|