View of xos/usr/lib/ld-so/auxv.h


XOS | Parent Directory | View | Download

/* Copyright (C) 2008  Emmanuel Varoquaux
 
   This file is part of XOS.
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
 
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
 
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
#ifndef AUXV_H
#define AUXV_H
 
#include <elf.h>
 
#include <stddef.h>
 
struct auxiliary_vector_data_struct {
  struct {
    unsigned program_header_table : 1;
    unsigned program_header_entry_size : 1;
    unsigned program_header_entry_number : 1;
    unsigned page_size : 1;
    unsigned interpreter_base_address : 1;
    unsigned program_entry_point : 1;
    unsigned not_elf : 1;
    unsigned vdso_entry_point : 1;
    unsigned vdso_elf_header : 1;
  } contents;
  Elf32_Phdr *program_header_table;
  size_t program_header_entry_size;
  int program_header_entry_number;
  unsigned long page_size;
  void *interpreter_base_address;
  void *program_entry_point;
  void *vdso_entry_point;
  Elf32_Ehdr *vdso_elf_header;
};
 
void read_auxiliary_vector(unsigned long *auxv, struct auxiliary_vector_data_struct *auxiliary_vector_data);
 
#endif