diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-05-20 16:04:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-05-20 16:04:59 +0000 |
commit | 497c543457bbdabe61c03733d2a44167bf354dae (patch) | |
tree | 4c2207e298b66fa12ea3ecd088a3e5b2c6d6b640 /bfd/libelf.h | |
parent | 09985c960d737684e85d60dcc5796e2f1e8b6b45 (diff) | |
download | gdb-497c543457bbdabe61c03733d2a44167bf354dae.zip gdb-497c543457bbdabe61c03733d2a44167bf354dae.tar.gz gdb-497c543457bbdabe61c03733d2a44167bf354dae.tar.bz2 |
* elf.c (_bfd_elf_make_section_from_shdr): New function, based on
code repeated three times in bfd_section_from_shdr in elfcode.h.
* libelf.h (_bfd_elf_make_section_from_shdr): Declare.
* elfcode.h (bfd_section_from_shdr): Use new function
_bfd_elf_make_section_from_shdr to create BFD sections. If a
reloc section does not use the main symbol table, or it is part of
the process image, treat it as a normal section, not relocs.
* elf32-mips.c (mips_elf_section_from_shdr): Use new function
_bfd_elf_make_section_from_shdr.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r-- | bfd/libelf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h index 5d53f88..25d56b0 100644 --- a/bfd/libelf.h +++ b/bfd/libelf.h @@ -453,7 +453,8 @@ extern bfd_reloc_status_type bfd_elf_generic_reloc PARAMS ((bfd *, char **)); extern boolean bfd_elf_mkobject PARAMS ((bfd *)); extern Elf_Internal_Shdr *bfd_elf_find_section PARAMS ((bfd *, char *)); - +extern boolean _bfd_elf_make_section_from_shdr + PARAMS ((bfd *abfd, Elf_Internal_Shdr *hdr, const char *name)); extern struct bfd_link_hash_table *_bfd_elf_link_hash_table_create PARAMS ((bfd *)); |