about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2015-10-29 09:26:03 +0100
committerFlorian Weimer <fweimer@redhat.com>2015-10-29 09:26:03 +0100
commit58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85 (patch)
treebf53ad2bf8249a03702408bcaca07b91ace4f6b7 /ChangeLog
parent2145f97cee01140d5369a8c67dc92eacfe8e4417 (diff)
downloadglibc-58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85.tar.gz
glibc-58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85.tar.xz
glibc-58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85.zip
_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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ef00a7a32..9bab5e44bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-29  Florian Weimer  <fweimer@redhat.com>
+
+	* 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  <joseph@codesourcery.com>
 
 	[BZ #16068]