aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-04-12 03:30:56 +0000
committerAlan Modra <amodra@gmail.com>2002-04-12 03:30:56 +0000
commit89d4966ff87e2cb5f74c4768e2ce330a2dc65b15 (patch)
tree9443eb950bc3bc3444cc8fed62a103cce25fc034 /bfd/elf.c
parent3d8b830ba7b8edf0b913ec2189fb4e7efcaf0f6c (diff)
downloadgdb-89d4966ff87e2cb5f74c4768e2ce330a2dc65b15.zip
gdb-89d4966ff87e2cb5f74c4768e2ce330a2dc65b15.tar.gz
gdb-89d4966ff87e2cb5f74c4768e2ce330a2dc65b15.tar.bz2
* elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
header pad.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 379eb08..f8fdbd2 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -3881,7 +3881,6 @@ prep_headers (abfd)
Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */
Elf_Internal_Phdr *i_phdrp = 0; /* Program header table, internal form */
Elf_Internal_Shdr **i_shdrp; /* Section header table, internal form */
- int count;
struct elf_strtab_hash *shstrtab;
struct elf_backend_data *bed = get_elf_backend_data (abfd);
@@ -3904,12 +3903,6 @@ prep_headers (abfd)
bfd_big_endian (abfd) ? ELFDATA2MSB : ELFDATA2LSB;
i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current;
- i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_NONE;
- i_ehdrp->e_ident[EI_ABIVERSION] = 0;
-
- for (count = EI_PAD; count < EI_NIDENT; count++)
- i_ehdrp->e_ident[count] = 0;
-
if ((abfd->flags & DYNAMIC) != 0)
i_ehdrp->e_type = ET_DYN;
else if ((abfd->flags & EXEC_P) != 0)