aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-07-19 18:24:32 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-07-19 18:24:32 +0000
commit05107a46eda4181b91e2f9996253f8ab2e9cea25 (patch)
tree27a1cfecc6ad0844f6e91091c7501addabb47e85 /binutils
parentdf70244cd332cd0fe353e4593c7d974b9e5bcf0d (diff)
downloadgdb-05107a46eda4181b91e2f9996253f8ab2e9cea25.zip
gdb-05107a46eda4181b91e2f9996253f8ab2e9cea25.tar.gz
gdb-05107a46eda4181b91e2f9996253f8ab2e9cea25.tar.bz2
2000-07-19 H.J. Lu <hjl@gnu.org>
* readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 390eb6f3..bc72395 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,9 @@
2000-07-19 H.J. Lu <hjl@gnu.org>
+ * readelf.c (get_dynamic_type): Fix DT_CHECKSUM.
+
+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.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 4d41099..174493c 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1070,6 +1070,7 @@ get_dynamic_type (type)
case DT_PREINIT_ARRAY: return "PREINIT_ARRAY";
case DT_PREINIT_ARRAYSZ: return "PREINIT_ARRAYSZ";
+ case DT_CHECKSUM: return "CHECKSUM";
case DT_PLTPADSZ: return "PLTPADSZ";
case DT_MOVEENT: return "MOVEENT";
case DT_MOVESZ: return "MOVESZ";
@@ -1100,10 +1101,6 @@ 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))
{