From d5b2ff99b74ecce255a1370d4c4849005c9115b3 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Thu, 29 Jun 2000 04:46:51 +0000 Subject: [PATCH] gdb-5.0 and binutils-2.10.1 still have overly conservative elfcode.h committer: jreiser 962254011 +0000 --- patches/patch-elfcode.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/patch-elfcode.h b/patches/patch-elfcode.h index 6ac950a7..b0ce33e8 100644 --- a/patches/patch-elfcode.h +++ b/patches/patch-elfcode.h @@ -1,8 +1,11 @@ The GNU bfd binary file descriptor package, part of the GNU binutils package, contains code to recognize an Elf file by looking at fields in the file header. Many programs (such as gdb, size, objdump, objcopy, strip and others) use bfd. -Unfortunately, bfd has been overly strict. In releases binutils-2.9.1.0.4, -binutils-2.9.1.0.23, binutils-2.9.5.0.0, gdb-4.17, and probably others, +Unfortunately, bfd has been overly strict. In releases + binutils-2.9.1.0.4, binutils-2.9.1.0.23, binutils-2.9.5.0.0, + binutils-2.10.1, + gdb-4.17, gdb-5.0, +and probably others, bfd does not recognize a file with zero in Elf32_Ehdr.e_shoff, .e_shentsize, or .e_shnum, even though the operating system kernel does not care, and many bfd clients would work just fine in these cases.