diff options
author | Jim Wilson <wilson@tuliptree.org> | 2000-10-05 22:22:27 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 2000-10-05 22:22:27 +0000 |
commit | 2acc77ff84b584b03a316f2be6f835628853863b (patch) | |
tree | 5b0d6f3e81218ebcb9e9c077a01784c4dca319e9 /bfd/elf-bfd.h | |
parent | 262d6ef47671c8cc1f578dcb2687e0095701b8a4 (diff) | |
download | gdb-2acc77ff84b584b03a316f2be6f835628853863b.tar.gz |
Preserve machine dependent section header flags when reading ELF object file.
* elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
field.
* elf.c (_bfd_elf_make_section_from_shdr): Call the
elf_backend_section_flags function.
* elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
code.
(elf64_ia64_section_flags): New function containing flag conversion
code.
(elf_backend_section_flags): Define to elf64_ia64_section_flags.
* elfxx-target.h (elf_backend_section_flags): Define.
(elfNN_bed): Initialize elf_backend_section_flags field.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index b84948f63a2..574411c1bfc 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -391,6 +391,11 @@ struct elf_backend_data Elf32_Internal_Shdr *, char *)); + /* A function to convert machine dependent section header flags to + BFD internal section header flags. */ + boolean (*elf_backend_section_flags) PARAMS ((flagword *, + Elf32_Internal_Shdr *)); + /* A function to handle unusual program segment types when creating BFD sections from ELF program segments. */ boolean (*elf_backend_section_from_phdr) PARAMS ((bfd *, |