aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/LockFileManager.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2014-03-11 15:26:27 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2014-03-11 15:26:27 +0000
commitfa84ac9d8a36fb92fbaeafe76d05e475b22c9c82 (patch)
tree146769ebe0d714a73b361af08e32c23e97a3ae27 /llvm/lib/Support/LockFileManager.cpp
parented94639ea19a742b73f518669cb8c81ff682322e (diff)
downloadllvm-fa84ac9d8a36fb92fbaeafe76d05e475b22c9c82.zip
llvm-fa84ac9d8a36fb92fbaeafe76d05e475b22c9c82.tar.gz
llvm-fa84ac9d8a36fb92fbaeafe76d05e475b22c9c82.tar.bz2
[ppc64] Patch in TOC restore code after all external function calls
When resolving a function call to an external routine, the dynamic loader must patch the "nop" after the branch instruction to a load that restores the TOC register. Current code does that, but only with the *first* instance of a call to any particular external routine, i.e. at the point where it also allocates the call stub. With subsequent calls to the same routine, current code neglects to patch in the TOC restore code. This is a bug, and leads to corrupt TOC pointers in those cases. Fixed by patching in restore code every time. llvm-svn: 203580
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
0 files changed, 0 insertions, 0 deletions