Change R_{386,AARCH64}_NONE yaml2obj tests/icf10.test to use assembly
Add relocation-none-{arm,x86_64}.s.
Check the referenced section survives under --gc-sections.
Check -r copies R_X86_64_NONE R_AARCH64_NONE. (Elf*_Rel arches currently have a bug)
Delete the dtrace tests as they are covered by the R_X86_64_NONE test.
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D62051
llvm-svn: 361013
18 lines
413 B
ArmAsm
18 lines
413 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-freebsd %s -o %t.o
|
|
# RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
|
|
|
|
# Checks that ICF does not merge 2 sections the offset of
|
|
# the relocations of which differ.
|
|
|
|
# CHECK-NOT: selected
|
|
|
|
.section .text.foo,"ax"
|
|
.quad -1
|
|
.reloc 0, R_X86_64_NONE, 0
|
|
|
|
.section .text.bar,"ax"
|
|
.quad -1
|
|
.reloc 1, R_X86_64_NONE, 0
|