HomePhabricator

Correct aligment computation for shared object symbols.

Authored by shenhan on Jun 6 2018, 2:43 PM.

Description

Correct aligment computation for shared object symbols.

The original computation for shared object symbol alignment is wrong when
st_value equals 0. It is very unusual for dso symbols to have st_value equal 0.
But when it happens, it causes obscure run time bugs.

Differential Revision: https://reviews.llvm.org/D47602

llvm-svn: 334135