Home | History | Annotate | Download | only in bfd

Lines Matching refs:bfd

0 /* BFD back-end data structures for NLM (NetWare Loadable Modules) files.
5 This file is part of BFD, the Binary File Descriptor library.
48 /* BFD symbol. */
56 extern bfd_boolean nlm_mkobject (bfd *);
57 extern bfd_boolean nlm_set_arch_mach (bfd *, enum bfd_architecture, unsigned long);
58 extern void nlmNAME (get_symbol_info) (bfd *, asymbol *, symbol_info *);
59 extern long nlmNAME (get_symtab_upper_bound)(bfd *);
60 extern long nlmNAME (canonicalize_symtab) (bfd *, asymbol **);
61 extern asymbol * nlmNAME (make_empty_symbol) (bfd *);
62 extern void nlmNAME (print_symbol) (bfd *, void *, asymbol *, bfd_print_symbol_type);
63 extern long nlmNAME (get_reloc_upper_bound) (bfd *, asection *);
64 extern long nlmNAME (canonicalize_reloc) (bfd *, asection *, arelent **, asymbol **);
65 extern const bfd_target * nlmNAME (object_p) (bfd *);
66 extern bfd_boolean nlmNAME (set_arch_mach) (bfd *, enum bfd_architecture, unsigned long);
67 extern bfd_boolean nlmNAME (set_section_contents) (bfd *, asection *, const void *, file_ptr, bfd_size_type);
68 extern bfd_boolean nlmNAME (write_object_contents) (bfd *);
71 in the bfd structure. */
83 /* BFD NLM symbols. */
107 #define nlm_tdata(bfd) ((bfd) -> tdata.nlm_obj_data)
108 #define nlm_fixed_header(bfd) (nlm_tdata (bfd) -> nlm_fixed_hdr)
109 #define nlm_variable_header(bfd) (nlm_tdata (bfd) -> nlm_variable_hdr)
110 #define nlm_version_header(bfd) (nlm_tdata (bfd) -> nlm_version_hdr)
111 #define nlm_copyright_header(bfd) (nlm_tdata (bfd) -> nlm_copyright_hdr)
112 #define nlm_extended_header(bfd) (nlm_tdata (bfd) -> nlm_extended_hdr)
113 #define nlm_custom_header(bfd) (nlm_tdata (bfd) -> nlm_custom_hdr)
114 #define nlm_cygnus_ext_header(bfd) (nlm_tdata (bfd) -> nlm_cygnus_ext_hdr)
115 #define nlm_get_symbols(bfd) (nlm_tdata (bfd) -> nlm_symbols)
116 #define nlm_set_symbols(bfd, p) (nlm_tdata (bfd) -> nlm_symbols = (p))
117 #define nlm_set_text_low(bfd, i) (nlm_tdata (bfd) -> nlm_text_low = (i))
118 #define nlm_get_text_low(bfd) (nlm_tdata (bfd) -> nlm_text_low)
119 #define nlm_set_data_low(bfd, i) (nlm_tdata (bfd) -> nlm_data_low = (i))
120 #define nlm_get_data_low(bfd) (nlm_tdata (bfd) -> nlm_data_low)
121 #define nlm_relocation_fixups(bfd) (nlm_tdata (bfd) -> nlm_reloc_fixups)
122 #define nlm_relocation_fixup_secs(bfd) (nlm_tdata (bfd) -> nlm_reloc_fixup_secs)
123 #define nlm_alpha_backend_data(bfd) (&nlm_tdata (bfd) -> backend_data.alpha_backend_data)
158 the BFD such that a bfd_bread will pick up the fixed header. */
159 bfd_boolean (*nlm_backend_object_p) (bfd *);
163 bfd_boolean (*nlm_write_prefix) (bfd *);
171 bfd_boolean (*nlm_read_reloc) (bfd *, nlmNAME (symbol_type) *, asection **, arelent *);
174 bfd_boolean (*nlm_mangle_relocs) (bfd *, asection *, const void *, bfd_vma, bfd_size_type);
177 bfd_boolean (*nlm_read_import) (bfd *, nlmNAME (symbol_type) *);
179 bfd_boolean (*nlm_write_import) (bfd *, asection *, arelent *);
182 bfd_boolean (*nlm_set_public_section) (bfd *, nlmNAME (symbol_type) *);
185 bfd_vma (*nlm_get_public_offset) (bfd *, asymbol *);
187 void (*nlm_swap_fhdr_in) (bfd *, void *, Nlm_Internal_Fixed_Header *);
188 void (*nlm_swap_fhdr_out) (bfd *, struct nlm_internal_fixed_header *, void *);
190 bfd_boolean (*nlm_write_external) (bfd *, bfd_size_type, asymbol *, struct reloc_and_sec *);
191 bfd_boolean (*nlm_write_export) (bfd *, asymbol *, bfd_vma);
194 #define nlm_backend(bfd) ((struct nlm_backend_data *)((bfd) -> xvec -> backend_data))
195 #define nlm_signature(bfd) (nlm_backend (bfd) -> signature)
196 #define nlm_fixed_header_size(bfd) (nlm_backend (bfd) -> fixed_header_size)
197 #define nlm_optional_prefix_size(bfd) (nlm_backend (bfd) -> optional_prefix_size)
198 #define nlm_architecture(bfd) (nlm_backend (bfd) -> arch)
199 #define nlm_machine(bfd) (nlm_backend (bfd) -> mach)
200 #define nlm_no_uninitialized_data(bfd) (nlm_backend (bfd) -> no_uninitialized_data)
201 #define nlm_backend_object_p_func(bfd) (nlm_backend (bfd) -> nlm_backend_object_p)
202 #define nlm_write_prefix_func(bfd) (nlm_backend (bfd) -> nlm_write_prefix)
203 #define nlm_read_reloc_func(bfd) (nlm_backend (bfd) -> nlm_read_reloc)
204 #define nlm_mangle_relocs_func(bfd) (nlm_backend (bfd) -> nlm_mangle_relocs)
205 #define nlm_read_import_func(bfd) (nlm_backend (bfd) -> nlm_read_import)
206 #define nlm_write_import_func(bfd) (nlm_backend (bfd) -> nlm_write_import)
207 #define nlm_set_public_section_func(bfd) (nlm_backend (bfd) -> nlm_set_public_section)
208 #define nlm_get_public_offset_func(bfd) (nlm_backend (bfd) -> nlm_get_public_offset)
209 #define nlm_swap_fixed_header_in_func(bfd) (nlm_backend (bfd) -> nlm_swap_fhdr_in)
210 #define nlm_swap_fixed_header_out_func(bfd)(nlm_backend (bfd) -> nlm_swap_fhdr_out)
211 #define nlm_write_external_func(bfd) (nlm_backend (bfd) -> nlm_write_external)
212 #define nlm_write_export_func(bfd) (nlm_backend (bfd) -> nlm_write_export)
215 in the NLM, but bfd wants to give them names, so use the traditional