Files
clang-p2996/lld/test/ELF/linkerscript/non-absolute2.test
Fangrui Song 1044ee827a [ELF][test] Improve llvm-objdump -t tests
In many cases, llvm-nm or llvm-readelf is more suitable.
2020-03-04 10:48:36 -08:00

13 lines
341 B
Plaintext

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t1.o
# RUN: ld.lld -shared %t1.o --script %s -o %t
# RUN: llvm-readelf -s %t | FileCheck %s
SECTIONS {
A = . + 0x1;
. += 0x1000;
}
# CHECK: Value Size Type Bind Vis Ndx Name
# CHECK: 0000000000000001 0 NOTYPE GLOBAL DEFAULT 1 A