Changeset 5baf209 in mainline for uspace/lib/c/include/elf/elf.h


Ignore:
Timestamp:
2011-07-23T12:37:16Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
90b8d58
Parents:
a701812
Message:

Write register state to core files (only ia32).

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/elf/elf.h

    ra701812 r5baf209  
    2727 */
    2828
    29 /** @addtogroup generic 
     29/** @addtogroup generic
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef ELF_H_
    36 #define ELF_H_
     35#ifndef LIBC_ELF_H_
     36#define LIBC_ELF_H_
    3737
    3838#include <arch/elf.h>
     
    4444#define EV_CURRENT      1
    4545
    46 /** 
    47  * ELF types 
     46/**
     47 * ELF types
    4848 */
    4949#define ET_NONE         0       /* No type */
     
    329329};
    330330
    331 #ifdef __32_BITS__
     331/*
     332 * ELF note segment entry
     333 */
     334struct elf32_note {
     335        elf_word namesz;
     336        elf_word descsz;
     337        elf_word type;
     338};
     339struct elf64_note {
     340        elf_xword namesz;
     341        elf_xword descsz;
     342        elf_xword type;
     343};
     344
     345#ifdef __32_BITS__
    332346typedef struct elf32_header elf_header_t;
    333347typedef struct elf32_segment_header elf_segment_header_t;
    334348typedef struct elf32_section_header elf_section_header_t;
    335349typedef struct elf32_symbol elf_symbol_t;
     350typedef struct elf32_note elf_note_t;
    336351#endif
    337352#ifdef __64_BITS__
     
    340355typedef struct elf64_section_header elf_section_header_t;
    341356typedef struct elf64_symbol elf_symbol_t;
     357typedef struct elf64_note elf_note_t;
    342358#endif
    343359
     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
    344366extern char *elf_error(unsigned int rc);
    345367
Note: See TracChangeset for help on using the changeset viewer.