Florian Weimer f63b73814f Remove all loaded objects if dlopen fails, ignoring NODELETE [BZ #20839]
This introduces a “pending NODELETE” state in the link map, which is
flipped to the persistent NODELETE state late in dlopen, via
activate_nodelete.    During initial relocation, symbol binding
records pending NODELETE state only.  dlclose ignores pending NODELETE
state.  Taken together, this results that a partially completed dlopen
is rolled back completely because new NODELETE mappings are unloaded.

Tested on x86_64-linux-gnu and i386-linux-gnu.

Change-Id: Ib2a3d86af6f92d75baca65431d74783ee0dbc292
2019-11-27 20:55:35 +01:00
..
2016-10-28 22:40:16 -04:00
2018-03-25 00:48:01 +01:00
2017-04-07 07:45:53 -04:00
2019-10-31 17:02:49 -03:00
2017-11-22 22:21:10 +00:00
2018-12-07 12:47:41 -08:00
2019-05-02 11:42:51 +02:00
2019-10-09 17:48:41 -03:00
2018-12-07 20:21:45 +01:00
2019-11-06 09:20:52 -03:00