Ignore:
Timestamp:
Jul 21, 2017, 3:56:36 PM (4 years ago)
Author:
max@…
Message:

Comment out EI_OSABI, and use ELFCLASS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/elf.h

    r227 r270  
    104104#define ELFCLASSNONE    0               /* Invalid class */
    105105#define ELFCLASS32      1               /* 32-bit objects */
     106#define ELFCLASS64      2       /* 64-bit objects */
     107
    106108#define ELFCLASSNUM     3
    107109
     
    209211#define Elf_Ehdr  Elf32_Ehdr
    210212#define Elf_Phdr  Elf32_Phdr
     213#define ELFCLASS  ELFCLASS32
    211214#elif defined (HAL_64BIT)
    212215#define Elf_Half  Elf64_Half
     
    217220#define Elf_Ehdr  Elf64_Ehdr
    218221#define Elf_Phdr  Elf64_Phdr
     222#define ELFCLASS  ELFCLASS64
    219223#else
    220224#error "Must define HAL_64BIT/HAL_32BIT"
Note: See TracChangeset for help on using the changeset viewer.