Changeset 609 for branches/GNU/src/binutils/bfd/libnlm.h
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/bfd/libnlm.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* BFD back-end data structures for NLM (NetWare Loadable Modules) files. 2 Copyright 1993, 1994 Free Software Foundation, Inc.2 Copyright 1993, 1994, 2001, 2002 Free Software Foundation, Inc. 3 3 Written by Cygnus Support. 4 4 … … 53 53 } nlmNAME(symbol_type); 54 54 55 extern boolean nlm_mkobject PARAMS ((bfd *)); 56 extern boolean nlm_set_arch_mach PARAMS ((bfd *, enum bfd_architecture, 57 unsigned long)); 55 extern bfd_boolean nlm_mkobject 56 PARAMS ((bfd *)); 57 extern bfd_boolean nlm_set_arch_mach 58 PARAMS ((bfd *, enum bfd_architecture, unsigned long)); 58 59 59 60 extern void nlmNAME(get_symbol_info) 60 61 PARAMS ((bfd *, asymbol *, symbol_info *)); 61 62 extern long nlmNAME(get_symtab_upper_bound) 62 63 PARAMS ((bfd *)); 63 64 extern long nlmNAME(get_symtab) 64 65 PARAMS ((bfd *, asymbol **)); 65 66 extern asymbol *nlmNAME(make_empty_symbol) 66 67 PARAMS ((bfd *)); 67 68 extern void nlmNAME(print_symbol) 68 69 PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type)); 69 70 extern long nlmNAME(get_reloc_upper_bound) 70 71 PARAMS ((bfd *, asection *)); 71 72 extern long nlmNAME(canonicalize_reloc) 72 73 PARAMS ((bfd *, asection *, arelent **, asymbol **)); 73 74 extern const bfd_target *nlmNAME(object_p) 74 75 extern b oolean nlmNAME(set_arch_mach)76 77 extern b oolean nlmNAME(set_section_contents)78 79 extern b oolean nlmNAME(write_object_contents)80 75 PARAMS ((bfd *)); 76 extern bfd_boolean nlmNAME(set_arch_mach) 77 PARAMS ((bfd *, enum bfd_architecture, unsigned long)); 78 extern bfd_boolean nlmNAME(set_section_contents) 79 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type)); 80 extern bfd_boolean nlmNAME(write_object_contents) 81 PARAMS ((bfd *)); 81 82 82 83 /* Some private data is stashed away for future use using the tdata pointer … … 162 163 enum bfd_architecture arch; 163 164 /* Machine. */ 164 longmach;165 unsigned int mach; 165 166 /* Some NLM formats do not use the uninitialized data section, so 166 167 all uninitialized data must be put into the regular data section 167 168 instead. */ 168 b oolean no_uninitialized_data;169 bfd_boolean no_uninitialized_data; 169 170 /* Some NLM formats have a prefix on the file. If this function is 170 171 not NULL, it will be called by nlm_object_p. It should return 171 trueif this file could match this format, and it should leave172 the BFD such that a bfd_ read will pick up the fixed header. */173 b oolean (*nlm_backend_object_p) PARAMS ((bfd *));172 TRUE if this file could match this format, and it should leave 173 the BFD such that a bfd_bread will pick up the fixed header. */ 174 bfd_boolean (*nlm_backend_object_p) PARAMS ((bfd *)); 174 175 /* Write out the prefix. This function may be NULL. This must 175 176 write out the same number of bytes as is in the field 176 177 optional_prefix_size. */ 177 b oolean (*nlm_write_prefix) PARAMS ((bfd *));178 bfd_boolean (*nlm_write_prefix) PARAMS ((bfd *)); 178 179 /* Read a relocation fixup from abfd. The reloc information is 179 180 machine specific. The second argument is the symbol if this is … … 183 184 not need to fill in the sym_ptr_ptr field for a reloc against an 184 185 import symbol. */ 185 b oolean (*nlm_read_reloc) PARAMS ((bfd *, nlmNAME(symbol_type) *,186 186 bfd_boolean (*nlm_read_reloc) 187 PARAMS ((bfd *, nlmNAME(symbol_type) *, asection **, arelent *)); 187 188 /* To make objcopy to an i386 NLM work, the i386 backend needs a 188 189 chance to work over the relocs. This is a bit icky. */ 189 boolean (*nlm_mangle_relocs) PARAMS ((bfd *, asection *, PTR data, 190 bfd_vma offset, 191 bfd_size_type count)); 190 bfd_boolean (*nlm_mangle_relocs) 191 PARAMS ((bfd *, asection *, PTR data, bfd_vma offset, bfd_size_type count)); 192 192 /* Read an import record from abfd. It would be nice if this 193 193 were in a machine-dependent format, but it doesn't seem to be. */ 194 b oolean (*nlm_read_import) PARAMS ((bfd *, nlmNAME(symbol_type) *));194 bfd_boolean (*nlm_read_import) PARAMS ((bfd *, nlmNAME(symbol_type) *)); 195 195 /* Write an import record to abfd. */ 196 b oolean (*nlm_write_import) PARAMS ((bfd *, asection *, arelent *));196 bfd_boolean (*nlm_write_import) PARAMS ((bfd *, asection *, arelent *)); 197 197 /* Set the section for a public symbol. This may be NULL, in which 198 198 case a default method will be used. */ 199 boolean (*nlm_set_public_section) PARAMS ((bfd *, nlmNAME(symbol_type) *)); 199 bfd_boolean (*nlm_set_public_section) 200 PARAMS ((bfd *, nlmNAME(symbol_type) *)); 200 201 /* Get the offset to write out for a public symbol. This may be 201 202 NULL, in which case a default method will be used. */ 202 203 bfd_vma (*nlm_get_public_offset) PARAMS ((bfd *, asymbol *)); 203 204 /* Swap the fixed header in and out */ 204 void (*nlm_swap_fhdr_in) PARAMS ((bfd *, 205 PTR, 206 Nlm_Internal_Fixed_Header *)); 207 void (*nlm_swap_fhdr_out) PARAMS ((bfd *, 208 struct nlm_internal_fixed_header *, 209 PTR)); 205 void (*nlm_swap_fhdr_in) 206 PARAMS ((bfd *, PTR, Nlm_Internal_Fixed_Header *)); 207 void (*nlm_swap_fhdr_out) 208 PARAMS ((bfd *, struct nlm_internal_fixed_header *, PTR)); 210 209 /* Write out an external reference. */ 211 boolean (*nlm_write_external) PARAMS ((bfd *, bfd_size_type, 212 asymbol *, 213 struct reloc_and_sec *)); 214 boolean (*nlm_write_export) PARAMS ((bfd *, asymbol *, bfd_vma)); 210 bfd_boolean (*nlm_write_external) 211 PARAMS ((bfd *, bfd_size_type, asymbol *, struct reloc_and_sec *)); 212 bfd_boolean (*nlm_write_export) PARAMS ((bfd *, asymbol *, bfd_vma)); 215 213 }; 216 214 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.