aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-06-17 13:37:26 +0000
committerJakub Jelinek <jakub@redhat.com>2005-06-17 13:37:26 +0000
commit08d8fa11878dc2fb68745443a892106379121882 (patch)
tree728f34d5dc682cc5c0e5e598fe52a7bd8854486b /include
parentd6ab8113e32876e3d8ca06ad090d3160d51c8e16 (diff)
downloadgdb-08d8fa11878dc2fb68745443a892106379121882.zip
gdb-08d8fa11878dc2fb68745443a892106379121882.tar.gz
gdb-08d8fa11878dc2fb68745443a892106379121882.tar.bz2
* elf/external.h (GRP_ENTRY_SIZE): Define.
* readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define. (process_section_headers): Use it. (process_relocs): Don't crash if symsec is not SHT_SYMTAB or SHT_DYNSYM. (process_version_sections): Use sizeof (Elf_External_Versym) instead of sh_entsize.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/elf/external.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 54d7f07..fab3d9c 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-17 Jakub Jelinek <jakub@redhat.com>
+
+ * elf/external.h (GRP_ENTRY_SIZE): Define.
+
2005-06-08 Zack Weinberg <zack@codesourcery.com>
* dis-asm.h (get_arm_regnames): Update prototype.
diff --git a/include/elf/external.h b/include/elf/external.h
index a7fc767..5985e94 100644
--- a/include/elf/external.h
+++ b/include/elf/external.h
@@ -1,5 +1,5 @@
/* ELF support for BFD.
- Copyright 1991, 1992, 1993, 1995, 1997, 1998, 1999, 2001, 2003
+ Copyright 1991, 1992, 1993, 1995, 1997, 1998, 1999, 2001, 2003, 2005
Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
@@ -272,5 +272,8 @@ typedef struct
unsigned char a_val[8];
} Elf64_External_Auxv;
+/* Size of SHT_GROUP section entry. */
+
+#define GRP_ENTRY_SIZE 4
#endif /* _ELF_EXTERNAL_H */