diff options
author | Asiri Rathnayake <asiri.rathnayake@arm.com> | 2014-09-10 13:54:38 +0000 |
---|---|---|
committer | Asiri Rathnayake <asiri.rathnayake@arm.com> | 2014-09-10 13:54:38 +0000 |
commit | 369c03063376df9d24d521b0edd4ee0e72360e4d (patch) | |
tree | 935ecf715f8d16b037c8a199a890a4d3d51021e2 /llvm/lib/Target/AArch64/Utils | |
parent | 3967764b98cbbea1c4a72f8767fc988955782085 (diff) | |
download | bcm5719-llvm-369c03063376df9d24d521b0edd4ee0e72360e4d.tar.gz bcm5719-llvm-369c03063376df9d24d521b0edd4ee0e72360e4d.zip |
[AArch 64] Use a constant pool load for weak symbol references when
using static relocation model and small code model.
Summary: currently we generate GOT based relocations for weak symbol
references regardless of the underlying relocation model. This should
be change so that in static relocation model we use a constant pool
load instead.
Patch from: Keith Walker
Reviewers: Renato Golin, Tim Northover
llvm-svn: 217503
Diffstat (limited to 'llvm/lib/Target/AArch64/Utils')
-rw-r--r-- | llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h index 3d030a5042a..326eb9995d7 100644 --- a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h +++ b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h @@ -1271,7 +1271,12 @@ namespace AArch64II { /// thread-local symbol. On Darwin, only one type of thread-local access /// exists (pre linker-relaxation), but on ELF the TLSModel used for the /// referee will affect interpretation. - MO_TLS = 0x20 + MO_TLS = 0x20, + + /// MO_CONSTPOOL - This flag indicates that a symbol operand represents + /// the address of a constant pool entry for the symbol, rather than the + /// address of the symbol itself. + MO_CONSTPOOL = 0x40 }; } // end namespace AArch64II |