diff options
author | Chih-Hung Hsieh <[email protected]> | 2015-10-06 15:53:15 -0700 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2015-10-07 22:44:41 +0200 |
commit | 7eff36d5daa6ebca5e6399638a7643af105ae5b0 (patch) | |
tree | 7bfd9c4a93f88135b9f42337d827948aa6b63cdb /libdwfl/ChangeLog | |
parent | daee4714ee3761e2d92f764a724e83875a79a3f0 (diff) |
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 <[email protected]>
Diffstat (limited to 'libdwfl/ChangeLog')
-rw-r--r-- | libdwfl/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index ed1156ef..949a3728 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,13 @@ +2015-10-05 Chih-Hung Hsieh <[email protected]> + + * dwfl_module_getdwarf.c (find_prelink_address_sync): Do not use + union of variable length arrays. + * dwfl_segment_report_module.c (dwfl_segment_report_module): Likewise. + * elf-from-memory.c (elf_from_remote_memory): Likewise. + * link_map.c (auxv_format_probe): Likewise. + * link_map.c (report_r_debug): Likewise. + * link_map.c (dwfl_link_map_report): Likewise. + 2015-09-18 Chih-Hung Hsieh <[email protected]> * relocate.c (relocate_section): Move nested function "relocate" |