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
22 lines
627 B
C++
22 lines
627 B
C++
//===--------- lib/ReaderWriter/ELF/ARM/ARMLinkingContext.cpp -------------===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "ARMLinkingContext.h"
|
|
#include "ARMRelocationPass.h"
|
|
|
|
using namespace lld;
|
|
using namespace lld::elf;
|
|
|
|
void elf::ARMLinkingContext::addPasses(PassManager &pm) {
|
|
auto pass = createARMRelocationPass(*this);
|
|
if (pass)
|
|
pm.add(std::move(pass));
|
|
ELFLinkingContext::addPasses(pm);
|
|
}
|