| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* @file | 7 /* @file |
| 8 * | 8 * |
| 9 * Minimal ELF header declaration / constants for Elf32* values. | 9 * Minimal ELF header declaration / constants for Elf32* values. |
| 10 * Constants are defined only for fields that are actualy | 10 * Constants are defined only for fields that are actualy |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 Elf32_Word sh_flags; | 77 Elf32_Word sh_flags; |
| 78 Elf32_Addr sh_addr; | 78 Elf32_Addr sh_addr; |
| 79 Elf32_Off sh_offset; | 79 Elf32_Off sh_offset; |
| 80 Elf32_Word sh_size; | 80 Elf32_Word sh_size; |
| 81 Elf32_Word sh_link; | 81 Elf32_Word sh_link; |
| 82 Elf32_Word sh_info; | 82 Elf32_Word sh_info; |
| 83 Elf32_Word sh_addralign; | 83 Elf32_Word sh_addralign; |
| 84 Elf32_Word sh_entsize; | 84 Elf32_Word sh_entsize; |
| 85 } Elf32_Shdr; | 85 } Elf32_Shdr; |
| 86 | 86 |
| 87 typedef struct { |
| 88 Elf32_Word n_namesz; |
| 89 Elf32_Word n_descsz; |
| 90 Elf32_Word n_type; |
| 91 } Elf32_Nhdr; |
| 92 |
| 87 /* | 93 /* |
| 88 * The auxiliary vector is passed on the stack between ELF loaders, | 94 * The auxiliary vector is passed on the stack between ELF loaders, |
| 89 * dynamic linkers, and program startup code. The gratuitous union | 95 * dynamic linkers, and program startup code. The gratuitous union |
| 90 * is the historical standard API, though it has no purpose today. | 96 * is the historical standard API, though it has no purpose today. |
| 91 */ | 97 */ |
| 92 typedef struct { | 98 typedef struct { |
| 93 Elf32_Word a_type; /* Entry type */ | 99 Elf32_Word a_type; /* Entry type */ |
| 94 union { | 100 union { |
| 95 Elf32_Word a_val; /* Integer value */ | 101 Elf32_Word a_val; /* Integer value */ |
| 96 } a_un; | 102 } a_un; |
| 97 } Elf32_auxv_t; | 103 } Elf32_auxv_t; |
| 98 | 104 |
| 99 | 105 |
| 100 EXTERN_C_END | 106 EXTERN_C_END |
| 101 | 107 |
| 102 #endif /* NATIVE_CLIENT_SRC_INCLUDE_ELF32_H_ */ | 108 #endif /* NATIVE_CLIENT_SRC_INCLUDE_ELF32_H_ */ |
| OLD | NEW |