Mergeable sections with size zero are useless because they don't actually contain data, and therefore there's no merit ot merge them. However, in reality, there are object files in the wild containing such sections. Currently, LLD can't handle them proerply. This patch makes LLD to handle such sections as if they are non- mergeable to fix the issue. Fixes bug 28822. llvm-svn: 277568
13 lines
267 B
ArmAsm
13 lines
267 B
ArmAsm
// Ensure that a mergeable string with size 0 does not cause any issue.
|
|
|
|
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
// RUN: ld.lld %t.o -o %t
|
|
|
|
.globl _start, s
|
|
.section .rodata.str1.1,"aMS",@progbits,1
|
|
s:
|
|
.text
|
|
_start:
|
|
.quad s
|