summaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-04-24 07:55:09 +0000
committerJeff Law <law@redhat.com>2000-04-24 07:55:09 +0000
commitbb54d115e0d779795a27810ae0b63505130d7ec1 (patch)
tree8de66d5b63be3cd7ab64fbb792d954be63fbc075 /bfd/elfcode.h
parent10a8158ca54d0f899e0cad40929d9035ee40108d (diff)
downloadgdb-bb54d115e0d779795a27810ae0b63505130d7ec1.tar.gz
* elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and bfd_elf64_slurp_reloc_table. * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New definitions to get external names. (elf_write_relocs): Renamed from write_relocs and make global. (elf_slurp_reloc_table): Make global. (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index c5edf9b8250..b1ce9d820fd 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -118,6 +118,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define elf_add_dynamic_entry NAME(bfd_elf,add_dynamic_entry)
#define elf_write_shdrs_and_ehdr NAME(bfd_elf,write_shdrs_and_ehdr)
#define elf_write_out_phdrs NAME(bfd_elf,write_out_phdrs)
+#define elf_write_relocs NAME(bfd_elf,write_relocs)
+#define elf_slurp_reloc_table NAME(bfd_elf,slurp_reloc_table)
#define elf_link_create_dynamic_sections \
NAME(bfd_elf,link_create_dynamic_sections)
#define elf_link_record_dynamic_symbol _bfd_elf_link_record_dynamic_symbol
@@ -168,10 +170,6 @@ static void elf_swap_shdr_out
static boolean elf_slurp_reloc_table_from_section
PARAMS ((bfd *, asection *, Elf_Internal_Shdr *, bfd_size_type,
arelent *, asymbol **, boolean));
-static boolean elf_slurp_reloc_table
- PARAMS ((bfd *, asection *, asymbol **, boolean));
-
-static void write_relocs PARAMS ((bfd *, asection *, PTR));
static boolean elf_file_p PARAMS ((Elf_External_Ehdr *));
@@ -746,8 +744,8 @@ elf_object_p (abfd)
/* Write out the relocs. */
-static void
-write_relocs (abfd, sec, data)
+void
+elf_write_relocs (abfd, sec, data)
bfd *abfd;
asection *sec;
PTR data;
@@ -1325,7 +1323,7 @@ elf_slurp_reloc_table_from_section (abfd, asect, rel_hdr, reloc_count,
/* Read in and swap the external relocs. */
-static boolean
+boolean
elf_slurp_reloc_table (abfd, asect, symbols, dynamic)
bfd *abfd;
asection *asect;
@@ -1533,7 +1531,7 @@ const struct elf_size_info NAME(_bfd_elf,size_info) = {
ELFCLASS, EV_CURRENT,
elf_write_out_phdrs,
elf_write_shdrs_and_ehdr,
- write_relocs,
+ elf_write_relocs,
elf_swap_symbol_out,
elf_slurp_reloc_table,
elf_slurp_symbol_table,