Commit 738370d9 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Don't fail to run DT_INIT and DT_INIT_ARRAY constructors if a shared library...

Don't fail to run DT_INIT and DT_INIT_ARRAY constructors if a shared library has DT_PREINIT_ARRAY constructors.

The GNU dynamic linker silently ignores a DT_PREINIT_ARRAY section
in a shared library. We had ineffectual code that tried to report
an error, which I tried to fix but got wrong --- my version still
wouldn't report the error to the caller, but would prevent us from
continuing to call constructors.

Bug: 8825226

(cherry picked from commit 8147d3c2)

Change-Id: Iad8e7e3743d1a5e6bd1d44ef40b1ab3499cb64f2
parent 262b7384
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment