Raymond Toy pushed to branch master at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • src/lisp/elf.c
    ... ... @@ -132,8 +132,15 @@ write_elf_header(int fd)
    132 132
         eh.e_ident[EI_VERSION]	= EV_CURRENT;
    
    133 133
     #ifdef SOLARIS
    
    134 134
         eh.e_ident[EI_OSABI]	= ELFOSABI_SOLARIS;
    
    135
    -#else
    
    135
    +#elif defined(__FREEBSD__)
    
    136 136
         eh.e_ident[EI_OSABI]	= ELFOSABI_FREEBSD;
    
    137
    +#elif defined(__NetBSD__)
    
    138
    +    eh.e_ident[EI_OSABI]	= ELFOSABI_NETBSD;
    
    139
    +#elif defined(__linux__)
    
    140
    +    eh.e_ident[EI_OSABI]	= ELFOSABI_LINUX;
    
    141
    +#else
    
    142
    +    /* Default to NONE */
    
    143
    +    eh.e_ident[EI_OSABI]	= ELFOSABI_NONE;
    
    137 144
     #endif
    
    138 145
     
    
    139 146
     #ifdef SOLARIS