diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-13 02:27:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-12-13 02:27:03 +0000 |
commit | c1397754ea2b4db48c691d0a7600f73fbeee1dfc (patch) | |
tree | 17f0ac580f518075c0c421b39ad58b607f230d75 | |
parent | cee29334087f97aa0b0e134fc6f9a5a2f8e8555c (diff) | |
download | bcm5719-llvm-c1397754ea2b4db48c691d0a7600f73fbeee1dfc.tar.gz bcm5719-llvm-c1397754ea2b4db48c691d0a7600f73fbeee1dfc.zip |
Make a test more interesting.
Before we had no tests for the use of Repl in getSymVA.
llvm-svn: 320544
-rw-r--r-- | lld/test/ELF/icf-symbol-type.s | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lld/test/ELF/icf-symbol-type.s b/lld/test/ELF/icf-symbol-type.s index dbc5eab589b..9cc1c509689 100644 --- a/lld/test/ELF/icf-symbol-type.s +++ b/lld/test/ELF/icf-symbol-type.s @@ -2,12 +2,18 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --hash-style=sysv %t.o -o %t --icf=all -shared -# RUN: llvm-readelf --dyn-symbols %t | FileCheck %s +# RUN: llvm-readelf --dyn-symbols --sections %t | FileCheck %s # We used to mark bar as absolute. -# CHECK: [[ADDR:[0-9a-z]*]] 0 NOTYPE GLOBAL DEFAULT 4 foo -# CHECK: [[ADDR]] 0 NOTYPE GLOBAL DEFAULT 4 bar +# CHECK: .text PROGBITS 0000000000001000 +# CHECK: 0000000000001001 0 NOTYPE GLOBAL DEFAULT 4 foo +# CHECK: 0000000000001001 0 NOTYPE GLOBAL DEFAULT 4 bar + +# The nop makes the test more interesting by making the offset of +# text.f non zero. + +nop .section .text.f,"ax",@progbits .globl foo |