CVSROOT: /cvs Module name: src Changes by: morti...@cvs.openbsd.org 2019/10/24 18:40:56
Modified files: gnu/llvm/lib/Target/Mips: CMakeLists.txt MipsAsmPrinter.cpp MipsFrameLowering.cpp MipsFrameLowering.h MipsInstrInfo.td gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp gnu/usr.bin/clang: Makefile.inc gnu/usr.bin/clang/libLLVMMipsCodeGen: Makefile Added files: gnu/llvm/lib/Target/Mips: MipsReturnProtectorLowering.cpp MipsReturnProtectorLowering.h Log message: Add retguard for octeon/mips64. For this architecture we use separate retguard prologue and epilogue code for static or PIC code. In the PIC case we use some additional code before the retguard epilogue to recover the function start address and the GOT pointer in order to get the per-function random cookie. Much thanks to visa@ for suggestions and advice making it all work. ok deraadt@ visa@