Document how to recreate a binary.

llvm-svn: 268134
This commit is contained in:
Rafael Espindola 2016-04-29 23:28:36 +00:00
parent aae59561d6
commit 9e5e2df3f3
1 changed files with 16 additions and 0 deletions

View File

@ -5,6 +5,22 @@
// RUN: ld.lld -o %t %t.o %t2.so // RUN: ld.lld -o %t %t.o %t2.so
// RUN: llvm-readobj -dyn-symbols %t | FileCheck %s // RUN: llvm-readobj -dyn-symbols %t | FileCheck %s
// Inputs/progname-ver.so consists of the assembly file
//
// .global bar
// bar:
// .quad __progname
//
// linked into a library with the version script
//
// VER_1 {
// global:
// bar;
// };
//
// We should create it with lld itself once we it supports that.
// RUN: ld.lld -o %t %t.o %p/Inputs/progname-ver.so // RUN: ld.lld -o %t %t.o %p/Inputs/progname-ver.so
// RUN: llvm-readobj -dyn-symbols %t | FileCheck %s // RUN: llvm-readobj -dyn-symbols %t | FileCheck %s