diff options
author | Chih-Hung Hsieh <chh@google.com> | 2015-10-06 15:53:15 -0700 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-10-07 22:44:41 +0200 |
commit | 7eff36d5daa6ebca5e6399638a7643af105ae5b0 (patch) | |
tree | 7bfd9c4a93f88135b9f42337d827948aa6b63cdb /src/ChangeLog | |
parent | daee4714ee3761e2d92f764a724e83875a79a3f0 (diff) | |
download | android_external_elfutils-7eff36d5daa6ebca5e6399638a7643af105ae5b0.tar.gz android_external_elfutils-7eff36d5daa6ebca5e6399638a7643af105ae5b0.tar.bz2 android_external_elfutils-7eff36d5daa6ebca5e6399638a7643af105ae5b0.zip |
Do without union of variable length arrays.
Prepare to compile with clang.
A union like
{ T32 a32[n]; T64 a64[n]; } u;
is expanded to
size_t nbytes = n * MAX(sizeof(T32), sizeof(T64));
void *data = malloc(nbytes);
T32 (*a32)[n] = data;
T64 (*a64)[n] = data;
Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Diffstat (limited to 'src/ChangeLog')
-rw-r--r-- | src/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index daa76cf2..e6744017 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2015-10-05 Chih-Hung Hsieh <chh@google.com> + + * unstrip.c (find_alloc_sections_prelink): Do not allocate + on stack union types with variable length arrays; use xmalloc + for such dynamic sized objects. + * readelf.c (handle_core_item): Likewise, but use alloca + for small variable size data object and add assert(count < 128). + 2015-10-05 Josh Stone <jistone@redhat.com> * Makefile.am (libld_elf_i386.so): Add AM_V_CCLD silencer. |