Logo Search packages:      
Sourcecode: paxtest version File versions  Download package

elf64.c

/*
** elf64.c for chpax
**
** The PaX project : http://pageexec.virtualave.net/
**
*/
#include "chpax.h"

unsigned long    get_flags_elf64()
{
  u_long              flags;

  flags = ((u_long) header_elf64.e_ident[EI_PAX + 1] << 8) + (u_long) header_elf.e_ident[EI_PAX];
  return (flags);
}

void             put_flags_elf64(unsigned long flags)
{
  header_elf64.e_ident[EI_PAX]     = (flags & 0xFF);
  header_elf64.e_ident[EI_PAX + 1] = ((flags >> 8) & 0xFF);
}


Generated by  Doxygen 1.6.0   Back to index