diff options
Diffstat (limited to 'test/core/absolute-local.objtxt')
-rw-r--r-- | test/core/absolute-local.objtxt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/core/absolute-local.objtxt b/test/core/absolute-local.objtxt new file mode 100644 index 0000000000000..1ba4c7f04326e --- /dev/null +++ b/test/core/absolute-local.objtxt @@ -0,0 +1,25 @@ +# RUN: lld -core %s | FileCheck %s + +# +# Test that absolute symbols with local scope do not cause name conflict +# +--- +absolute-atoms: + - name: putchar + ref-name: pc1 + value: 0xFFFF0040 + scope: static + + - name: putchar + ref-name: pc2 + value: 0xFFFF0040 + scope: static +... + +# CHECK: --- +# CHECK: absolute-atoms: +# CHECK: - name: putchar +# CHECK: value: 0x00000000FFFF0040 +# CHECK: - name: putchar +# CHECK: value: 0x00000000FFFF0040 +# CHECK: ... |