diff options
author | Florian Weimer <fweimer@redhat.com> | 2015-10-29 09:26:03 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2015-10-29 09:26:03 +0100 |
commit | 58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85 (patch) | |
tree | bf53ad2bf8249a03702408bcaca07b91ace4f6b7 /include | |
parent | 2145f97cee01140d5369a8c67dc92eacfe8e4417 (diff) | |
download | glibc-58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85.zip glibc-58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85.tar.gz glibc-58acfe6fa7b1e28ec15ce59c5a90fe36a9c11a85.tar.bz2 |
_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 'include')
0 files changed, 0 insertions, 0 deletions