forked from OSchip/llvm-project
18 lines
379 B
ArmAsm
18 lines
379 B
ArmAsm
![]() |
# RUN: llvm-mc -filetype=obj -triple=i386-linux-musl %s -o %t.o
|
||
|
# RUN: ld.lld --gc-sections %t.o -o %t
|
||
|
# RUN: llvm-readelf -S -r %t | FileCheck %s
|
||
|
|
||
|
# Test that we discard R_386_NONE, but respect the
|
||
|
# references it creates among sections.
|
||
|
|
||
|
# CHECK: .data
|
||
|
# CHECK: There are no relocations in this file.
|
||
|
|
||
|
.globl _start
|
||
|
_start:
|
||
|
ret
|
||
|
.reloc 0, R_386_NONE, .data
|
||
|
|
||
|
.data
|
||
|
.long 0
|