]> granicus.if.org Git - clang/commit
[linux] When pre-reserving stack pages to work around broken address space
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 14 Oct 2016 19:51:36 +0000 (19:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 14 Oct 2016 19:51:36 +0000 (19:51 +0000)
commita7f432ba8fe081688060425ab1f0c5423ec9a587
tree81a0edd19a51f2d9dfddaaf882424fa343671f4a
parentbab2991fda9242a15e142c13be156e1e6b984b09
[linux] When pre-reserving stack pages to work around broken address space
layout for PIE binaries, ask the OS how much stack space is already in use to
avoid stack overflow if we are run with more than 512K of combined command line
arguments + environment variables.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284271 91177308-0d34-0410-b5e6-96231b3b80d8
tools/driver/cc1_main.cpp