aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-07-19 18:03:18 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-07-19 18:03:18 +0000
commitdcefbbbda0f35b8ee3bb36d7bba65fec0a1d5d63 (patch)
tree0fda31d50fd4720bf959669b35847df4f0721dad /binutils
parent5b102b37d54cef222835d8550deacde0454e31d3 (diff)
downloadfsf-binutils-gdb-dcefbbbda0f35b8ee3bb36d7bba65fec0a1d5d63.zip
fsf-binutils-gdb-dcefbbbda0f35b8ee3bb36d7bba65fec0a1d5d63.tar.gz
fsf-binutils-gdb-dcefbbbda0f35b8ee3bb36d7bba65fec0a1d5d63.tar.bz2
2000-07-19 H.J. Lu <hjl@gnu.org>
* 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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog11
-rw-r--r--binutils/readelf.c33
2 files changed, 42 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7339d85..390eb6f3 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,14 @@
+2000-07-19 H.J. Lu <hjl@gnu.org>
+
+ * 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 <nickc@cygnus.com>
* binutils.texi (readelf): Fix spelling typo.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 83cba0b..4d41099 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 ("");