mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
Add a test showing that nocopyreloc is only about copy relocs.
For functions the linker uses a related hack: creating a plt in the main executable that preempts the function. Like bfd and gold, we don't disable it with nocopyreloc. llvm-svn: 295976
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
// RUN: ld.lld %t.o %t2.so -o %t3
|
||||
// RUN: llvm-readobj -t -s -r %t3 | FileCheck %s
|
||||
|
||||
// Test that -z nocopyreloc doesn't prevent the plt hack.
|
||||
// RUN: ld.lld %t.o %t2.so -o %t3 -z nocopyreloc
|
||||
|
||||
.globl _start
|
||||
_start:
|
||||
movabsq $set_data, %rax
|
||||
|
||||
Reference in New Issue
Block a user