2012-10-19 01:16:19 +08:00
|
|
|
#
|
|
|
|
# Source File:
|
|
|
|
# .local absGlobalSymbol
|
|
|
|
# .set absLocalSymbol,0xC0000
|
|
|
|
# .type absLocalSymbol, @object
|
|
|
|
# .globl absGlobalSymbol
|
|
|
|
# .set absGlobalSymbol,0xD0000
|
|
|
|
# .type absGlobalSymbol, @object
|
|
|
|
|
|
|
|
# built using: "gcc -m32"
|
|
|
|
#
|
2014-10-20 12:00:26 +08:00
|
|
|
RUN: lld -flavor gnu -target i386 --output-filetype=yaml -r %p/Inputs/abs-test.i386 | FileCheck -check-prefix=YAML %s
|
2012-10-19 01:16:19 +08:00
|
|
|
|
2014-01-27 11:09:26 +08:00
|
|
|
YAML: absolute-atoms:
|
2012-10-19 01:16:19 +08:00
|
|
|
YAML: - name: absLocalSymbol
|
2013-01-05 10:22:35 +08:00
|
|
|
YAML: value: {{0x[0]+C0000}}
|
2012-10-19 01:16:19 +08:00
|
|
|
YAML: - name: absGlobalSymbol
|
|
|
|
YAML: scope: global
|
2013-01-05 10:22:35 +08:00
|
|
|
YAML: value: {{0x[0]+D0000}}
|