mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
0b95d3784a
https://reviews.llvm.org/rL312796 meant that references to garbage collected common symbols would cause a segfault. This change fixes the behaviour for references to stripped common symbols. Differential Revision: https://reviews.llvm.org/D37718 llvm-svn: 313086
19 lines
421 B
ArmAsm
19 lines
421 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld %t.o -o %t1 --gc-sections
|
|
# RUN: llvm-objdump -s %t1 | FileCheck %s
|
|
|
|
# CHECK: Contents of section .noalloc:
|
|
# 0000 00000000 00000000 ........
|
|
|
|
.section .text._start,"ax",@progbits
|
|
.globl _start
|
|
_start:
|
|
retq
|
|
|
|
.type unused,@object
|
|
.comm unused,4,4
|
|
|
|
.section .noalloc,"",@progbits
|
|
.quad unused
|