]> Git Repo - binutils.git/blob - bfd/nlm32-gen.c
new for esix
[binutils.git] / bfd / nlm32-gen.c
1 /* Generic support for 32-bit NLM (NetWare Loadable Module)
2    Copyright (C) 1993 Free Software Foundation, Inc.
3
4 This file is part of BFD, the Binary File Descriptor library.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
19
20 #include "bfd.h"
21 #include "sysdep.h"
22 #include "libbfd.h"
23
24 #define ARCH_SIZE 32
25 #include "libnlm.h"
26
27 /* This does not include any relocations, but should be good enough
28    for GDB to read the file.  */
29
30 #define TARGET_LITTLE_NAME              "nlm32-little"
31 #define TARGET_LITTLE_SYM               nlmNAME(little_generic_vec)
32 #define TARGET_BIG_NAME                 "nlm32-big"
33 #define TARGET_BIG_SYM                  nlmNAME(big_generic_vec)
34 #define JUMP_TABLE_PREFIX               nlm32
35
36 /* We don't have core files.  */
37
38 #define nlm32_core_file_p \
39   ((bfd_target *(*) PARAMS ((bfd *))) bfd_nullvoidptr)
40 #define nlm32_core_file_failing_command \
41   _bfd_dummy_core_file_failing_command
42 #define nlm32_core_file_failing_signal \
43   _bfd_dummy_core_file_failing_signal
44 #define nlm32_core_file_matches_executable_p \
45   _bfd_dummy_core_file_matches_executable_p
46
47 /* Archives are generic or unimplemented.  */
48
49 #define nlm32_slurp_armap \
50   bfd_slurp_coff_armap
51 #define nlm32_slurp_extended_name_table \
52   _bfd_slurp_extended_name_table
53 #define nlm32_truncate_arname \
54   bfd_dont_truncate_arname
55 #define nlm32_openr_next_archived_file \
56   bfd_generic_openr_next_archived_file
57 #define nlm32_generic_stat_arch_elt \
58   bfd_generic_stat_arch_elt
59 #define nlm32_write_armap \
60   coff_write_armap
61
62 /* Ordinary section reading and writing */
63 #define nlm32_get_section_contents \
64   bfd_generic_get_section_contents
65 #define nlm32_close_and_cleanup \
66   bfd_generic_close_and_cleanup
67
68 #define nlm32_bfd_debug_info_start \
69   bfd_void
70 #define nlm32_bfd_debug_info_end \
71   bfd_void
72 #define nlm32_bfd_debug_info_accumulate \
73   (PROTO(void,(*),(bfd*, struct sec *))) bfd_void
74 #define nlm32_bfd_get_relocated_section_contents \
75   bfd_generic_get_relocated_section_contents
76 #define nlm32_bfd_relax_section \
77   bfd_generic_relax_section
78 #define nlm32_bfd_seclet_link \
79   bfd_generic_seclet_link
80 #define nlm32_bfd_make_debug_symbol \
81   ((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
82
83 #define nlm32_set_section_contents \
84   bfd_generic_set_section_contents
85 #define nlm32_new_section_hook \
86   _bfd_dummy_new_section_hook
87
88 #define nlm32_get_reloc_upper_bound \
89   ((unsigned int (*) PARAMS ((bfd *, sec_ptr))) bfd_0u)
90
91 #define nlm32_canonicalize_reloc \
92   ((unsigned int (*) PARAMS ((bfd *, sec_ptr, arelent **, asymbol **))) bfd_0u)
93
94 #define nlm32_print_symbol \
95   ((void (*) PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type))) bfd_false)
96
97 #define nlm32_get_lineno \
98   ((alent * (*) PARAMS ((bfd *, asymbol *))) bfd_false)
99
100 #define nlm32_find_nearest_line \
101   ((boolean (*) PARAMS ((bfd *, asection *, asymbol **, bfd_vma, \
102                          CONST char **, CONST char **, unsigned int *))) \
103    bfd_false)
104
105 #define nlm32_sizeof_headers \
106   ((int (*) PARAMS ((bfd *, boolean))) bfd_0u)
107
108 #define nlm32_write_object_contents \
109   ((boolean (*) PARAMS ((bfd *))) bfd_false)
110
111 #define nlm32_bfd_reloc_type_lookup \
112   bfd_default_reloc_type_lookup
113
114 #include "nlm-target.h"
This page took 0.028475 seconds and 4 git commands to generate.