llvm-project/lld/test/elf/abs.test

20 lines
577 B
Plaintext

#
# Source File:
# .local absGlobalSymbol
# .set absLocalSymbol,0xC0000
# .type absLocalSymbol, @object
# .globl absGlobalSymbol
# .set absGlobalSymbol,0xD0000
# .type absGlobalSymbol, @object
# built using: "gcc -m32"
#
RUN: lld -flavor gnu --output-filetype=yaml -r %p/Inputs/abs-test.i386 | FileCheck -check-prefix=YAML %s
YAML: absolute-atoms:
YAML: - name: absLocalSymbol
YAML: value: {{0x[0]+C0000}}
YAML: - name: absGlobalSymbol
YAML: scope: global
YAML: value: {{0x[0]+D0000}}