summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2013-09-18 22:46:09 +0000
committerReed Kotler <rkotler@mips.com>2013-09-18 22:46:09 +0000
commitd6aadc797c5325b1fbffaff2fa81b335f8188b17 (patch)
tree05bfdb6c7e8d7a4a98032734808b6af47e354365 /clang/lib/Sema/SemaLookup.cpp
parentcc87253f90370e2d537f82afa2d10bf4df973e7a (diff)
downloadbcm5719-llvm-d6aadc797c5325b1fbffaff2fa81b335f8188b17.tar.gz
bcm5719-llvm-d6aadc797c5325b1fbffaff2fa81b335f8188b17.zip
Fix two issues regarding Got pointer (GP) setup.
1) make sure that the first two instructions of the sequence cannot separate from each other. The linker requires that they be sequential. If they get separated, it can still work but it will not work in all cases because the first of the instructions mostly involves the hi part of the pc relative offset and that part changes slowly. You would have to be at the right boundary for this to matter. 2) make sure that this sequence begins on a longword boundary. There appears to be a bug in binutils which makes some of these calculations get messed up if the instruction sequence does not begin on a longword boundary. This is being investigated with the appropriate binutils folks. llvm-svn: 190966
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud