diff options
author | Han Shen <shenhan@google.com> | 2018-05-18 03:01:06 +0000 |
---|---|---|
committer | Han Shen <shenhan@google.com> | 2018-05-18 03:01:06 +0000 |
commit | 3aede9283cc0a7cc1788c29e040e0f4e7439ba96 (patch) | |
tree | 86388aaed3baa3bf93f3f58359e7df0dd5e29226 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f31e91e4a8a3a01a8ab1dd7a0396b2be20c789ca (diff) | |
download | bcm5719-llvm-3aede9283cc0a7cc1788c29e040e0f4e7439ba96.tar.gz bcm5719-llvm-3aede9283cc0a7cc1788c29e040e0f4e7439ba96.zip |
Mitigate relocation overflow [part 2 of 2]
_init_array_start/end are placed at 0 if no ".init_array" presents,
this causes .text relocation against them become more prone to overflow.
This CL sets ".init_array" address to that of ".text" to mitigate the situation.
Review: https://reviews.llvm.org/D46200
llvm-svn: 332688
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions