summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2014-09-04 00:59:20 +0200
committerPetar Jovanovic <petarj@mips.com>2014-09-04 19:52:35 +0200
commiteac3e9b89366d1381e2c567b358a6e4a7fa390e8 (patch)
tree553d2922c70df47e45b10c2c77407d81f45f3560 /cpp/RenderScript.cpp
parent3e4e505367ac289429183dc4998fa6c3b734930d (diff)
[MIPS] Add GOT right below the text section
Make sure that GOT is close to the text section, so the function can reach it easily. This is important for MIPS64 for which there is an assumption that GOT can be reached if 32-bit value is added to $t9 (the start of the function for PIC). The MIPS64 code looks like this: // lui $v0, %hi(%neg(%gp_rel(fname))) // daddu $v1, $v0, $t9 // daddiu $globalbasereg, $v1, %lo(%neg(%gp_rel(fname))) This patch prevents possible issue in which a function could not reach GOT. Change-Id: I024f1f9483ffcd312bb6fcbc61145a171e7096e9
Diffstat (limited to 'cpp/RenderScript.cpp')
0 files changed, 0 insertions, 0 deletions