summaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2005-03-02 04:47:25 +0000
committerZack Weinberg <zackw@panix.com>2005-03-02 04:47:25 +0000
commit29cc17817013def96b6d8131b27f9ec2e68f1320 (patch)
tree58395ef7d04f9d22b5b45d72fb10e3cdd3370c36 /bfd/elfxx-target.h
parent38fff588799872b580ce6b785125e97b0c57a026 (diff)
downloadbinutils-redhat-29cc17817013def96b6d8131b27f9ec2e68f1320.tar.gz
* elf.c (bfd_section_from_shdr <default case>): Call
elf_backend_section_from_shdr hook unconditionally, and return what it returns. (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr. * elfxx-target.h (elf_backend_section_from_shdr) (elf_backend_section_from_phdr): Default to _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr respectively.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 09b9eee438..861cb2b274 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -326,13 +326,13 @@
#define elf_backend_section_processing 0
#endif
#ifndef elf_backend_section_from_shdr
-#define elf_backend_section_from_shdr 0
+#define elf_backend_section_from_shdr _bfd_elf_make_section_from_shdr
#endif
#ifndef elf_backend_section_flags
#define elf_backend_section_flags 0
#endif
#ifndef elf_backend_section_from_phdr
-#define elf_backend_section_from_phdr 0
+#define elf_backend_section_from_phdr _bfd_elf_make_section_from_phdr
#endif
#ifndef elf_backend_fake_sections
#define elf_backend_fake_sections 0