From 58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 29 Oct 2015 09:26:03 +0100 Subject: _dl_fini: Rewrite to use VLA instead of extend_alloca In this case, extend_alloca is used to work around the lack of deallocation on scope exit. A VLA is automatically deallocated in this way, so it is the more fitting approach. To implement this, it is necessary to eliminate the goto. In addition, this change eliminates the trivially-true assert; the assert is always skipped if nloaded > 0. * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array instead of extend_alloca. Change control flow to avoid a goto. Remove assert which is trivially always true. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 9ef00a7..9bab5e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-10-29 Florian Weimer + + * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array + instead of extend_alloca. Change control flow to avoid a goto. + Remove assert which is trivially always true. + 2015-10-28 Joseph Myers [BZ #16068] -- cgit v1.1