diff options
author | Jean Marie Diaz <ambar@cygnus> | 1994-08-01 23:37:22 +0000 |
---|---|---|
committer | Jean Marie Diaz <ambar@cygnus> | 1994-08-01 23:37:22 +0000 |
commit | df9e066f4b2396801d70a768810a2c45aa60fdfa (patch) | |
tree | f610dd30d98eec03660bc9345b6e478bb4ccdebf /bfd/elfcode.h | |
parent | 4ab1f9471219356115b635b60a39823934fff22e (diff) | |
download | gdb-df9e066f4b2396801d70a768810a2c45aa60fdfa.zip gdb-df9e066f4b2396801d70a768810a2c45aa60fdfa.tar.gz gdb-df9e066f4b2396801d70a768810a2c45aa60fdfa.tar.bz2 |
* elfcode.h (map_program_segments): Check DYNAMIC as well as EXEC_P.
(assign_file_positions_except_relocs): Likewise.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index d05af80..3b70b07 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -1745,7 +1745,7 @@ map_program_segments (abfd, off, first, phdr_size) unsigned int last_type; Elf_Internal_Ehdr *i_ehdrp; - BFD_ASSERT ((abfd->flags & EXEC_P) != 0); + BFD_ASSERT ((abfd->flags & (EXEC_P | DYNAMIC)) != 0); BFD_ASSERT (phdr_size / sizeof (Elf_Internal_Phdr) <= sizeof phdrs / sizeof (phdrs[0])); @@ -1976,7 +1976,7 @@ assign_file_positions_except_relocs (abfd, dosyms) /* Start after the ELF header. */ off = i_ehdrp->e_ehsize; - if ((abfd->flags & EXEC_P) == 0) + if ((abfd->flags & (EXEC_P | DYNAMIC)) == 0) { Elf_Internal_Shdr **hdrpp; unsigned int i; |