Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame^] | 1 | /* Interface for libebl_PPC64 module. |
| 2 | Copyright (C) 2004, 2005 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_PPC64_H |
| 15 | #define _LIBEBL_PPC64_H 1 |
| 16 | |
| 17 | #include <libeblP.h> |
| 18 | |
| 19 | |
| 20 | /* Constructor. */ |
| 21 | extern const char *ppc64_init (Elf *elf, GElf_Half machine, Ebl *eh, |
| 22 | size_t ehlen); |
| 23 | |
| 24 | /* Destructor. */ |
| 25 | extern void ppc64_destr (Ebl *bh); |
| 26 | |
| 27 | |
| 28 | /* Function to get relocation type name. */ |
| 29 | extern const char *ppc64_reloc_type_name (int type, char *buf, size_t len); |
| 30 | |
| 31 | /* Check relocation type. */ |
| 32 | extern bool ppc64_reloc_type_check (int type); |
| 33 | |
| 34 | /* Check relocation type use. */ |
| 35 | extern bool ppc64_reloc_valid_use (Elf *elf, int type); |
| 36 | |
| 37 | /* Check for the simple reloc types. */ |
| 38 | extern Elf_Type ppc64_reloc_simple_type (Elf *elf, int type); |
| 39 | |
| 40 | /* Code note handling. */ |
| 41 | extern bool ppc64_core_note (const char *name, uint32_t type, uint32_t descsz, |
| 42 | const char *desc); |
| 43 | |
| 44 | /* Name of dynamic tag. */ |
| 45 | extern const char *ppc64_dynamic_tag_name (int64_t tag, char *buf, size_t len); |
| 46 | |
| 47 | /* Check whether given relocation is a copy relocation. */ |
| 48 | extern bool ppc64_copy_reloc_p (int reloc); |
| 49 | |
| 50 | #endif /* libebl_ppc.h */ |