summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2018-07-24 05:40:37 +0000
committerSimon Atanasyan <simon@atanasyan.com>2018-07-24 05:40:37 +0000
commit52854504cc868abed7cdfd7e22a1f51d334e6aed (patch)
tree9fa5efb7c8d6502152dfadca8cdd54163b0b5d58 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent35773f5517ff66ba56fefcfe5aea70c3a18c81d5 (diff)
downloadbcm5719-llvm-52854504cc868abed7cdfd7e22a1f51d334e6aed.tar.gz
bcm5719-llvm-52854504cc868abed7cdfd7e22a1f51d334e6aed.zip
[ELF][MIPS] Fix primary GOT sometimes overflowing by one or two words
If we fail to merge a secondary GOT with the primary GOT but so far only one merged GOT has been created (the primary one), the final element in MergedGots is the primary GOT. Thus we should not try to merge with this final element passing IsPrimary=false, since this will ignore the fact that the destination GOT does in fact need a header, and those extra two entries can be enough to allow the merge to incorrectly occur. Instead we should check for this case before attempting the second merge. Patch by James Clarke. Differential revision: https://reviews.llvm.org/D49422 llvm-svn: 337810
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud