Implement external weak (ELF) symbols on AArch64
authorTim Northover <Tim.Northover@arm.com>
Wed, 6 Feb 2013 16:43:33 +0000 (16:43 +0000)
committerTim Northover <Tim.Northover@arm.com>
Wed, 6 Feb 2013 16:43:33 +0000 (16:43 +0000)
commit8a06229c89f848bf742e2b88423d02558b7ca638
tree199f15ef02b0e4e5077718feae6f418159dd965a
parent2e402d5b5f2fce8bfe29509cc771b9919946003b
Implement external weak (ELF) symbols on AArch64

Weakly defined symbols should evaluate to 0 if they're undefined at
link-time. This is impossible to do with the usual address generation
patterns, so we should use a literal pool entry to materlialise the
address.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174518 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/extern-weak.ll [new file with mode: 0644]