[llvm-commits] [PATCH] Make use of OpenBSD's libc routines for stack protector
Rafael EspĂndola
rafael.espindola at gmail.com
Tue Aug 14 14:51:38 PDT 2012
> + if (Triple(TLI->getTargetMachine().getTargetTriple()).getOS() ==
> + llvm::Triple::OpenBSD) {
> + Constant *StackChkFail =
> + M->getOrInsertFunction("__stack_smash_handler",
> + Type::getVoidTy(F->getContext()), NULL);
> + Constant *G = new GlobalVariable(*M,
> + ArrayType::get(Type::getInt8Ty(F->getContext()),
> + F->getName().size() + 1),
> + true, GlobalVariable::PrivateLinkage,
> + ConstantDataArray::getString(F->getContext(),
> + F->getName(), true),
> + "SSH");
SSH?
Not sure if it is the patch being corrupted or what, but these lines
show up with a lot of trailing space: 205 columns!
Cheers,
Rafael
More information about the llvm-commits
mailing list