Changeset 5baf209 in mainline for uspace/lib/c/include/elf/elf.h
- Timestamp:
- 2011-07-23T12:37:16Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 90b8d58
- Parents:
- a701812
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/elf/elf.h
ra701812 r5baf209 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef ELF_H_36 #define ELF_H_35 #ifndef LIBC_ELF_H_ 36 #define LIBC_ELF_H_ 37 37 38 38 #include <arch/elf.h> … … 44 44 #define EV_CURRENT 1 45 45 46 /** 47 * ELF types 46 /** 47 * ELF types 48 48 */ 49 49 #define ET_NONE 0 /* No type */ … … 329 329 }; 330 330 331 #ifdef __32_BITS__ 331 /* 332 * ELF note segment entry 333 */ 334 struct elf32_note { 335 elf_word namesz; 336 elf_word descsz; 337 elf_word type; 338 }; 339 struct elf64_note { 340 elf_xword namesz; 341 elf_xword descsz; 342 elf_xword type; 343 }; 344 345 #ifdef __32_BITS__ 332 346 typedef struct elf32_header elf_header_t; 333 347 typedef struct elf32_segment_header elf_segment_header_t; 334 348 typedef struct elf32_section_header elf_section_header_t; 335 349 typedef struct elf32_symbol elf_symbol_t; 350 typedef struct elf32_note elf_note_t; 336 351 #endif 337 352 #ifdef __64_BITS__ … … 340 355 typedef struct elf64_section_header elf_section_header_t; 341 356 typedef struct elf64_symbol elf_symbol_t; 357 typedef struct elf64_note elf_note_t; 342 358 #endif 343 359 360 /* 361 * Note types are not defined by the standard. These are the ones used 362 * by SVr4 derivatives. 363 */ 364 #define NT_PRSTATUS 1 365 344 366 extern char *elf_error(unsigned int rc); 345 367
Note:
See TracChangeset
for help on using the changeset viewer.