From 29a207b5aecabd50962e87e5dfbf98c55efda62e Mon Sep 17 00:00:00 2001 From: hjl Date: Wed, 19 Jul 2000 18:03:17 +0000 Subject: [PATCH] 2000-07-19 H.J. Lu * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to DT_FEATURE. (process_dynamic_segment): Likewise. * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT, DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM. (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB, DF_1_NODUMP and DF_1_CONLFAT. --- binutils/ChangeLog | 11 +++++++++++ binutils/readelf.c | 33 +++++++++++++++++++++++++++++++-- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7339d857c0..390eb6f3a6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,14 @@ +2000-07-19 H.J. Lu + + * readelf.c (get_dynamic_type): Change DT_FEATURE_1 to + DT_FEATURE. + (process_dynamic_segment): Likewise. + + * readelf.c (get_dynamic_type): Handle DT_CONFIG, DT_DEPAUDIT, + DT_AUDIT, DT_PLTPAD, DT_MOVETAB and DT_CHECKSUM. + (process_dynamic_segment): Handle DTF_1_CONFEXP, DF_1_NODEPLIB, + DF_1_NODUMP and DF_1_CONLFAT. + 2000-07-18 Nick Clifton * binutils.texi (readelf): Fix spelling typo. diff --git a/binutils/readelf.c b/binutils/readelf.c index 83cba0b496..4d41099f59 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1073,12 +1073,17 @@ get_dynamic_type (type) case DT_PLTPADSZ: return "PLTPADSZ"; case DT_MOVEENT: return "MOVEENT"; case DT_MOVESZ: return "MOVESZ"; - case DT_FEATURE_1: return "FEATURE_1"; + case DT_FEATURE: return "FEATURE"; case DT_POSFLAG_1: return "POSFLAG_1"; case DT_SYMINSZ: return "SYMINSZ"; case DT_SYMINENT: return "SYMINENT"; /* aka VALRNGHI */ case DT_ADDRRNGLO: return "ADDRRNGLO"; + case DT_CONFIG: return "CONFIG"; + case DT_DEPAUDIT: return "DEPAUDIT"; + case DT_AUDIT: return "AUDIT"; + case DT_PLTPAD: return "PLTPAD"; + case DT_MOVETAB: return "MOVETAB"; case DT_SYMINFO: return "SYMINFO"; /* aka ADDRRNGHI */ case DT_VERSYM: return "VERSYM"; @@ -1095,6 +1100,10 @@ get_dynamic_type (type) case DT_USED: return "USED"; case DT_FILTER: return "FILTER"; +#if DT_CHECKSUM != 0 + case DT_CHECKSUM: return "CHECKSUM"; +#endif + default: if ((type >= DT_LOPROC) && (type <= DT_HIPROC)) { @@ -3341,7 +3350,7 @@ process_dynamic_segment (file) } break; - case DT_FEATURE_1: + case DT_FEATURE: if (do_dynamic) { printf (_("Flags:")); @@ -3355,6 +3364,11 @@ process_dynamic_segment (file) printf (" PARINIT"); val ^= DTF_1_PARINIT; } + if (val & DTF_1_CONFEXP) + { + printf (" CONFEXP"); + val ^= DTF_1_CONFEXP; + } if (val != 0) printf (" %lx", val); puts (""); @@ -3452,6 +3466,21 @@ process_dynamic_segment (file) printf (" INTERPOSE"); val ^= DF_1_INTERPOSE; } + if (val & DF_1_NODEPLIB) + { + printf (" NODEPLIB"); + val ^= DF_1_NODEPLIB; + } + if (val & DF_1_NODUMP) + { + printf (" NODUMP"); + val ^= DF_1_NODUMP; + } + if (val & DF_1_CONLFAT) + { + printf (" CONLFAT"); + val ^= DF_1_CONLFAT; + } if (val != 0) printf (" %lx", val); puts (""); -- 2.11.0