diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-17 08:46:11 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-17 08:46:11 +0000 |
| commit | a635d83240de59c72c8f29925b04e527af2de254 (patch) | |
| tree | f15d69b876ea763182743200821d25c68053a286 /llvm/test | |
| parent | 337d5aa58fc22dd174dd6e9e96a764cf5a85f1fc (diff) | |
| download | bcm5719-llvm-a635d83240de59c72c8f29925b04e527af2de254.tar.gz bcm5719-llvm-a635d83240de59c72c8f29925b04e527af2de254.zip | |
Don't walk aliases from global to local symbols in comdats.
This fixes pr23196.
llvm-svn: 235167
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/ELF/alias-to-local.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/alias-to-local.s b/llvm/test/MC/ELF/alias-to-local.s new file mode 100644 index 00000000000..4983833b33a --- /dev/null +++ b/llvm/test/MC/ELF/alias-to-local.s @@ -0,0 +1,18 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu < %s | llvm-readobj -r | FileCheck %s + +// CHECK: Relocations [ +// CHECK-NEXT: Section {{.*}} .rela.text { +// CHECK-NEXT: 0x1 R_X86_64_32 zed 0x0 +// CHECK-NEXT: } +// CHECK-NEXT: ] + +foo: + movl $zed, %eax + + + .section .data.bar,"aGw",@progbits,zed,comdat +bar: + .byte 42 + + .globl zed +zed = bar |

