Deleted Added
sdiff udiff text old ( 123474 ) new ( 124165 )
full compact
1/*
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/compat/ndis/pe_var.h 123474 2003-12-11 22:34:37Z wpaul $
33 */
34
35#ifndef _PE_VAR_H_
36#define _PE_VAR_H_
37
38/*
39 * Image Format
40 */

--- 184 unchanged lines hidden (view full) ---

225#define IMAGE_DIRECTORY_ENTRY_GLOBALPTR 8 /* Machine Value (MIPS GP) */
226#define IMAGE_DIRECTORY_ENTRY_TLS 9 /* TLS Directory */
227#define IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG 10 /* Load Configuration Directory */
228#define IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT 11 /* Bound Import Directory in headers */
229#define IMAGE_DIRECTORY_ENTRY_IAT 12 /* Import Address Table */
230#define IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT 13
231#define IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR 14
232
233/*
234 * Section header format.
235 */
236
237#define IMAGE_SHORT_NAME_LEN 8
238
239struct image_section_header {
240 uint8_t ish_name[IMAGE_SHORT_NAME_LEN];

--- 57 unchanged lines hidden (view full) ---

298#define IMAGE_REL_BASED_MIPS_JMPADDR 5
299#define IMAGE_REL_BASED_SECTION 6
300#define IMAGE_REL_BASED_REL 7
301#define IMAGE_REL_BASED_MIPS_JMPADDR16 9
302#define IMAGE_REL_BASED_IA64_IMM64 9 /* yes, 9 too */
303#define IMAGE_REL_BASED_DIR64 10
304#define IMAGE_REL_BASED_HIGH3ADJ 11
305
306
307struct image_patch_table {
308 char *ipt_name;
309 void (*ipt_func)(void);
310};
311
312typedef struct image_patch_table image_patch_table;
313
314__BEGIN_DECLS

--- 5 unchanged lines hidden (view full) ---

320extern int pe_numsections(vm_offset_t);
321extern vm_offset_t pe_imagebase(vm_offset_t);
322extern vm_offset_t pe_directory_offset(vm_offset_t, uint32_t);
323extern vm_offset_t pe_translate_addr (vm_offset_t, uint32_t);
324extern int pe_get_section(vm_offset_t, image_section_header *, const char *);
325extern int pe_relocate(vm_offset_t);
326extern int pe_get_import_descriptor(vm_offset_t, image_import_descriptor *, char *);
327extern int pe_patch_imports(vm_offset_t, char *, image_patch_table *);
328__END_DECLS
329
330#endif /* _PE_VAR_H_ */