The canParse function for all the ELF subtargets check if the input files match the subtarget. There were few mismatches in the input files that didnt match the subtarget for which the link was being invoked, which also acts as a test for this change. llvm-svn: 220182
20 lines
590 B
Plaintext
20 lines
590 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 -target i386 --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}}
|