HomePhabricator

Mitigate relocation overflow [part 2 of 2]

Authored by shenhan on May 17 2018, 8:01 PM.

Description

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

Details

Committed
shenhanMay 17 2018, 8:01 PM
Parents
rGf31e91e4a8a3: Tidy comment up a bit.
Branches
Unknown
Tags
Unknown