diff options
author | Di Chen <dichen@redhat.com> | 2022-04-28 19:55:33 +0800 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-08-01 01:20:06 +0200 |
commit | 369c021c6eedae3665c1dbbaa4fc43afbbb698f4 (patch) | |
tree | 59f12753c030b3bbb990eb1aa003c5ec014953fa /src/ChangeLog | |
parent | ccc157dc2b96e47d6d1bbb1b066ecbea4975051b (diff) | |
download | elfutils-369c021c6eedae3665c1dbbaa4fc43afbbb698f4.tar.gz |
readelf: Support --dynamic with --use-dynamic
Currently, eu-readelf is using section headers to dump the dynamic
segment information (print_dynamic -> handle_dynamic).
This patch adds new options to eu-readelf (-D, --use-dynamic)
for (-d, --dynamic).
https://sourceware.org/bugzilla/show_bug.cgi?id=28873
Signed-off-by: Di Chen <dichen@redhat.com>
Diffstat (limited to 'src/ChangeLog')
-rw-r--r-- | src/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8c9f5ddd..db20a6ef 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,16 @@ +2022-04-28 Di Chen <dichen@redhat.com> + + * readelf.c (options): Add use-dynamic 'D'. + (use_dynamic_segment): New static bool. + (enum dyn_idx): New. + (get_dynscn_strtab): New function. + (get_dynscn_addrs): Likewise. + (find_offsets): Likewise. + (parse_opt): Handle 'D'. + (handle_dynamic): New argument phdr. Get data either through the shdr + or phdr. Print segment info when use_dynamic_segment. Use + get_dynscn_strtab. Get library name and paths through strtab_data. + 2022-05-09 Mark Wielaard <mark@klomp.org> * strip.c (remove_debug_relocations): Check gelf_getshdr, gelf_getrela, |