diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-07-20 02:45:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-07-20 02:45:36 +0000 |
commit | 019148e439ad25d40097e97ca96fa39c01c9f2b6 (patch) | |
tree | 96099d43bb25f8505af614863a4ad7537eba72ee | |
parent | 36a30e65ca075ab7fc28b32419ae5c4bc1dc4726 (diff) | |
download | gdb-019148e439ad25d40097e97ca96fa39c01c9f2b6.zip gdb-019148e439ad25d40097e97ca96fa39c01c9f2b6.tar.gz gdb-019148e439ad25d40097e97ca96fa39c01c9f2b6.tar.bz2 |
2000-07-19 H.J. Lu <hjl@gnu.org>
* readelf.c (get_dynamic_type): Change "AUXILARY" to
"AUXILIARY".
(process_dynamic_segment): Print out strings for DT_CONFIG,
DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH.
-rw-r--r-- | binutils/ChangeLog | 7 | ||||
-rw-r--r-- | binutils/readelf.c | 36 |
2 files changed, 38 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3b733d5..579fdb5 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2000-07-19 H.J. Lu <hjl@gnu.org> + + * readelf.c (get_dynamic_type): Change "AUXILARY" to + "AUXILIARY". + (process_dynamic_segment): Print out strings for DT_CONFIG, + DT_DEPAUDIT, DT_AUDIT and DT_RUNPATH. + 2000-07-19 Mark Kettenis <kettenis@gnu.org> * nm.c (usage): Change output of `nm --help' to include a diff --git a/binutils/readelf.c b/binutils/readelf.c index 77bd758..50d3b4c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1097,7 +1097,7 @@ get_dynamic_type (type) case DT_VERNEED: return "VERNEED"; case DT_VERNEEDNUM: return "VERNEEDNUM"; - case DT_AUXILIARY: return "AUXILARY"; + case DT_AUXILIARY: return "AUXILIARY"; case DT_USED: return "USED"; case DT_FILTER: return "FILTER"; @@ -3329,12 +3329,33 @@ process_dynamic_segment (file) case DT_AUXILIARY: case DT_FILTER: + case DT_CONFIG: + case DT_DEPAUDIT: + case DT_AUDIT: if (do_dynamic) { - if (entry->d_tag == DT_AUXILIARY) - printf (_("Auxiliary library")); - else - printf (_("Filter library")); + switch (entry->d_tag) + { + case DT_AUXILIARY: + printf (_("Auxiliary library")); + break; + + case DT_FILTER: + printf (_("Filter library")); + break; + + case DT_CONFIG: + printf (_("Configuration file")); + break; + + case DT_DEPAUDIT: + printf (_("Dependency audit library")); + break; + + case DT_AUDIT: + printf (_("Audit library")); + break; + } if (dynamic_strings) printf (": [%s]\n", dynamic_strings + entry->d_un.d_val); @@ -3506,6 +3527,7 @@ process_dynamic_segment (file) case DT_DEBUG : case DT_TEXTREL : case DT_JMPREL : + case DT_RUNPATH : dynamic_info[entry->d_tag] = entry->d_un.d_val; if (do_dynamic) @@ -3536,6 +3558,10 @@ process_dynamic_segment (file) printf (_("Library rpath: [%s]"), name); break; + case DT_RUNPATH: + printf (_("Library runpath: [%s]"), name); + break; + default: print_vma (entry->d_un.d_val, PREFIX_HEX); break; |