Changeset 7f1c620 in mainline for generic/include/elf.h


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/elf.h

    r991779c5 r7f1c620  
    194194 * in ELF header.
    195195 */
    196 typedef __u64 elf_xword;
    197 typedef __s64 elf_sxword;
    198 typedef __u32 elf_word;
    199 typedef __s32 elf_sword;
    200 typedef __u16 elf_half;
     196typedef uint64_t elf_xword;
     197typedef int64_t elf_sxword;
     198typedef uint32_t elf_word;
     199typedef int32_t elf_sword;
     200typedef uint16_t elf_half;
    201201
    202202/**
     
    205205 * These types are specific for 32-bit format.
    206206 */
    207 typedef __u32 elf32_addr;
    208 typedef __u32 elf32_off;
     207typedef uint32_t elf32_addr;
     208typedef uint32_t elf32_off;
    209209
    210210/**
     
    213213 * These types are specific for 64-bit format.
    214214 */
    215 typedef __u64 elf64_addr;
    216 typedef __u64 elf64_off;
     215typedef uint64_t elf64_addr;
     216typedef uint64_t elf64_off;
    217217
    218218/** ELF header */
    219219struct elf32_header {
    220         __u8 e_ident[EI_NIDENT];
     220        uint8_t e_ident[EI_NIDENT];
    221221        elf_half e_type;
    222222        elf_half e_machine;
     
    234234};
    235235struct elf64_header {
    236         __u8 e_ident[EI_NIDENT];
     236        uint8_t e_ident[EI_NIDENT];
    237237        elf_half e_type;
    238238        elf_half e_machine;
     
    310310        elf32_addr st_value;
    311311        elf_word st_size;
    312         __u8 st_info;
    313         __u8 st_other;
     312        uint8_t st_info;
     313        uint8_t st_other;
    314314        elf_half st_shndx;
    315315};
    316316struct elf64_symbol {
    317317        elf_word st_name;
    318         __u8 st_info;
    319         __u8 st_other;
     318        uint8_t st_info;
     319        uint8_t st_other;
    320320        elf_half st_shndx;
    321321        elf64_addr st_value;
Note: See TracChangeset for help on using the changeset viewer.