* gdb.t00/help.exp: Use .* in place of some help messages which
[deliverable/binutils-gdb.git] / bfd / libelf.h
CommitLineData
db232882
KR
1/* BFD back-end data structures for ELF files.
2 Copyright (C) 1992, 1993 Free Software Foundation, Inc.
3 Written by Cygnus Support.
4
5This file is part of BFD, the Binary File Descriptor library.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
20
21#ifndef _LIBELF_H_
22#define _LIBELF_H_ 1
23
81187b54
KR
24#include "elf/common.h"
25#include "elf/internal.h"
26#include "elf/external.h"
27
db232882
KR
28typedef struct
29{
30 asymbol symbol;
31 Elf_Internal_Sym internal_elf_sym;
32 Elf_External_Sym native_elf_sym;
33 /* these are used for the generation of .stabX symbols (?) */
34 short desc;
35 unsigned char type;
36 char other;
37} elf_symbol_type;
38
81187b54
KR
39struct elf_backend_data {
40 void (*elf_info_to_howto) PARAMS ((bfd *, arelent *, Elf_Internal_Rela *));
41 enum bfd_architecture arch;
db232882 42
8e40bcd8
KR
43 /* @@ I really don't think this should be here. I don't know what
44 global_sym is supposed to be used for, but I doubt it's something
45 that would be considered global, e.g., if you've got a program
46 reading and writing many BFDs. My hunch is that it's specific to
47 the output BFD. If not, put a comment here explaining why. */
db232882 48 elf_symbol_type *global_sym;
81187b54
KR
49};
50
51extern bfd_target *elf_object_p PARAMS ((bfd *));
52extern bfd_target *elf_core_file_p PARAMS ((bfd *));
53extern boolean elf_mkobject PARAMS ((bfd *));
54extern boolean elf_write_object_contents PARAMS ((bfd *));
55extern char *elf_core_file_failing_command PARAMS ((bfd *));
56extern int elf_core_file_failing_signal PARAMS ((bfd *));
57extern boolean elf_core_file_matches_executable_p PARAMS ((bfd *, bfd *));
58extern boolean elf_set_section_contents PARAMS ((bfd *, sec_ptr, PTR,
59 file_ptr, bfd_size_type));
60extern unsigned int elf_get_symtab_upper_bound PARAMS ((bfd *));
61extern unsigned int elf_get_symtab PARAMS ((bfd *, asymbol **));
62extern unsigned int elf_get_reloc_upper_bound PARAMS ((bfd *, sec_ptr));
63extern unsigned int elf_canonicalize_reloc PARAMS ((bfd *, sec_ptr,
64 arelent **, asymbol **));
65extern asymbol *elf_make_empty_symbol PARAMS ((bfd *));
66extern void elf_print_symbol PARAMS ((bfd *, PTR, asymbol *,
67 bfd_print_symbol_type));
93b4f018
DM
68extern void elf_get_symbol_info PARAMS ((bfd *, asymbol *,
69 symbol_info *));
81187b54
KR
70extern alent *elf_get_lineno PARAMS ((bfd *, asymbol *));
71extern boolean elf_set_arch_mach PARAMS ((bfd *, enum bfd_architecture,
72 unsigned long));
73extern boolean elf_find_nearest_line PARAMS ((bfd *, asection *, asymbol **,
74 bfd_vma, CONST char **,
75 CONST char **, unsigned int *));
76extern int elf_sizeof_headers PARAMS ((bfd *, boolean));
77
78/* If the target doesn't have reloc handling written yet: */
79extern void elf_no_info_to_howto PARAMS ((bfd *, arelent *,
80 Elf_Internal_Rela *));
db232882
KR
81
82#endif /* _LIBELF_H_ */
This page took 0.03875 seconds and 4 git commands to generate.