diff options
author | İsmail Dönmez <ismail@i10z.com> | 2019-05-08 04:30:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-13 10:55:18 +0900 |
commit | 598b6c3a9270e7bd2379fc6084a6ddf694c0f8ea (patch) | |
tree | f14374cf74096b9c47da2f37f5eeef68884d5abd /refs/ref-cache.h | |
parent | The eighth batch (diff) | |
download | tgif-598b6c3a9270e7bd2379fc6084a6ddf694c0f8ea.tar.xz |
mingw: do not let ld strip relocations
This is the first step for enabling ASLR (Address Space Layout
Randomization) support. We want to enable ASLR for better protection
against exploiting security holes in Git: it makes it harder to attack
software by making code addresses unpredictable.
The problem fixed by this commit is that `ld.exe` seems to be stripping
relocations which in turn will break ASLR support. We just make sure
it's not stripping the main executable entry.
Signed-off-by: İsmail Dönmez <ismail@i10z.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.h')
0 files changed, 0 insertions, 0 deletions