libebl_i386.h revision 441f72d43a9b550baa779fc82f70816da5f74f0e
1/* Interface for libebl_i386 module. 2 Copyright (C) 2000, 2001, 2002, 2003 Red Hat, Inc. 3 4 This program is Open Source software; you can redistribute it and/or 5 modify it under the terms of the Open Software License version 1.0 as 6 published by the Open Source Initiative. 7 8 You should have received a copy of the Open Software License along 9 with this program; if not, you may obtain a copy of the Open Software 10 License version 1.0 from http://www.opensource.org/licenses/osl.php or 11 by writing the Open Source Initiative c/o Lawrence Rosen, Esq., 12 3001 King Ranch Road, Ukiah, CA 95482. */ 13 14#ifndef _LIBEBL_I386_H 15#define _LIBEBL_I386_H 1 16 17#include <libeblP.h> 18 19 20/* Constructor. */ 21extern int i386_init (Elf *elf, GElf_Half machine, Ebl *eh, size_t ehlen); 22 23/* Destructor. */ 24extern void i386_destr (Ebl *bh); 25 26 27/* Function to get relocation type name. */ 28extern const char *i386_reloc_type_name (int type, char *buf, size_t len); 29 30/* Check relocation type. */ 31extern bool i386_reloc_type_check (int type); 32 33/* Check relocation type use. */ 34extern bool i386_reloc_valid_use (Elf *elf, int type); 35 36/* Check relocation type use. */ 37extern bool i386_gotpc_reloc_check (Elf *elf, int type); 38 39/* Code note handling. */ 40extern bool i386_core_note (const char *name, uint32_t type, uint32_t descsz, 41 const char *desc); 42 43#endif /* libebl_i386.h */ 44