2019-09-06 23:10:31 +08:00
|
|
|
# REQUIRES: x86
|
2015-12-12 02:49:29 +08:00
|
|
|
|
2019-09-06 23:10:31 +08:00
|
|
|
## Test that the .L symbol in a SHF_MERGE section is omitted.
|
2015-12-12 02:49:29 +08:00
|
|
|
|
2019-09-06 23:10:31 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
|
|
|
# RUN: ld.lld %t.o -o %t
|
|
|
|
# RUN: llvm-readelf -s %t | FileCheck /dev/null --implicit-check-not=.L.str
|
2015-12-12 02:49:29 +08:00
|
|
|
|
2019-09-06 23:10:31 +08:00
|
|
|
lea .L.str(%rip), %rdi
|
|
|
|
lea local(%rip), %rdi
|
2015-12-12 02:49:29 +08:00
|
|
|
|
2019-09-06 23:10:31 +08:00
|
|
|
.section .rodata.str1.1,"aMS",@progbits,1
|
|
|
|
.L.str:
|
|
|
|
local:
|