The code is able to statically link the simplest case of:
int main() { return 0; }
* Only works with ARM code - no Thumb code, no interwork (-marm -mno-thumb-interwork)
* musl libc built with no interwork and no Thumb code
Differential Revision: http://reviews.llvm.org/D6716
From: Denis Protivensky <dprotivensky@accesssoftek.com>
llvm-svn: 226643
32 lines
912 B
C++
32 lines
912 B
C++
//===--------- lib/ReaderWriter/ELF/ARM/ARMRelocationPass.h ---------------===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
///
|
|
/// \file
|
|
/// \brief Declares the relocation processing pass for ARM. This includes
|
|
/// GOT and PLT entries, TLS, COPY, and ifunc.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLD_READER_WRITER_ELF_ARM_ARM_RELOCATION_PASS_H
|
|
#define LLD_READER_WRITER_ELF_ARM_ARM_RELOCATION_PASS_H
|
|
|
|
#include <memory>
|
|
|
|
namespace lld {
|
|
class Pass;
|
|
namespace elf {
|
|
class ARMLinkingContext;
|
|
|
|
/// \brief Create ARM relocation pass for the given linking context.
|
|
std::unique_ptr<Pass> createARMRelocationPass(const ARMLinkingContext &);
|
|
}
|
|
}
|
|
|
|
#endif
|