Deleted Added
full compact
elf_types.m4 (164190) elf_types.m4 (165317)
1/*-
2 * Copyright (c) 2006 Joseph Koshy
3 * 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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2006 Joseph Koshy
3 * 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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libelf/elf_types.m4 164190 2006-11-11 17:16:35Z jkoshy $
26 * $FreeBSD: head/lib/libelf/elf_types.m4 165317 2006-12-18 05:40:01Z jkoshy $
27 */
28
29/*
30 * ELF types, defined in the "enum Elf_Type" API.
27 */
28
29/*
30 * ELF types, defined in the "enum Elf_Type" API.
31 *
32 * The members of the list form a 3-tuple: (name, C-type-suffix, OSversion).
33 * + `name' is an Elf_Type symbol without the `ELF_T_' prefix.
34 * + `C-type-suffix' is the suffix for Elf32_ and Elf64_ type names.
35 * + `version' is the OS version the symbol first appeared in.
36 *
37 * OS revisions of note are:
38 * 600102 - The earliest (6.0-STABLE) version supported by this code.
39 * 700009 - Symbol versioning and ELF64 type changes.
40 * 700025 - More ELF types and the introduction of libelf.
31 */
32
33define(`ELF_TYPE_LIST',
41 */
42
43define(`ELF_TYPE_LIST',
34 ``ADDR, Addr',
35 `BYTE, Byte',
36 `CAP, Cap',
37 `DYN, Dyn',
38 `EHDR, Ehdr',
39 `HALF, Half',
40 `LWORD, Lword',
41 `MOVE, Move',
42 `MOVEP, MoveP',
43 `NOTE, Note',
44 `OFF, Off',
45 `PHDR, Phdr',
46 `REL, Rel',
47 `RELA, Rela',
48 `SHDR, Shdr',
49 `SWORD, Sword',
50 `SXWORD, Sxword',
51 `SYMINFO, Syminfo',
52 `SYM, Sym',
53 `VDEF, Verdef',
54 `VNEED, Verneed',
55 `WORD, Word',
56 `XWORD, Xword',
57 `NUM, _'')
44 ``ADDR, Addr, 600102',
45 `BYTE, Byte, 600102',
46 `CAP, Cap, 700025',
47 `DYN, Dyn, 600102',
48 `EHDR, Ehdr, 600102',
49 `HALF, Half, 600102',
50 `LWORD, Lword, 700025',
51 `MOVE, Move, 700025',
52 `MOVEP, MoveP, 700025',
53 `NOTE, Note, 600102',
54 `OFF, Off, 600102',
55 `PHDR, Phdr, 600102',
56 `REL, Rel, 600102',
57 `RELA, Rela, 600102',
58 `SHDR, Shdr, 600102',
59 `SWORD, Sword, 600102',
60 `SXWORD, Sxword, 700009',
61 `SYMINFO, Syminfo, 700025',
62 `SYM, Sym, 600102',
63 `VDEF, Verdef, 700009',
64 `VNEED, Verneed, 700009',
65 `WORD, Word, 600102',
66 `XWORD, Xword, 700009',
67 `NUM, _, _'')
58
59/*
60 * DEFINE_STRUCT(NAME,MEMBERLIST...)
61 *
62 * Map a type name to its members.
63 *
64 * Each member-list element comprises of pairs of (field name, type),
65 * in the sequence used in the file representation of `NAME'.

--- 239 unchanged lines hidden ---
68
69/*
70 * DEFINE_STRUCT(NAME,MEMBERLIST...)
71 *
72 * Map a type name to its members.
73 *
74 * Each member-list element comprises of pairs of (field name, type),
75 * in the sequence used in the file representation of `NAME'.

--- 239 unchanged lines hidden ---