• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Interface for libebl_mips module.
2    Copyright (C) 2000, 2001, 2002 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_MIPS_H
15 #define _LIBEBL_MIPS_H 1
16 
17 #include <libeblP.h>
18 
19 
20 /* Constructor.  */
21 extern int mips_init (Elf *elf, GElf_Half machine, Ebl *eh, size_t ehlen);
22 
23 /* Destructor.  */
24 extern void mips_destr (Ebl *bh);
25 
26 
27 /* Function to get relocation type name.  */
28 extern const char *mips_reloc_type_name (int type, char *buf, size_t len);
29 
30 /* Function to get segment type name.  */
31 extern const char *mips_segment_type_name (int type, char *buf, size_t len);
32 
33 /* Function to get setion type name.  */
34 extern const char *mips_section_type_name (int type, char *buf, size_t len);
35 
36 /* Function to get machine flag name.  */
37 extern const char *mips_machine_flag_name (Elf64_Word *flags);
38 
39 /* Function to get dynamic tag name.  */
40 extern const char *mips_dynamic_tag_name (int64_t tag, char *buf, size_t len);
41 
42 #endif	/* libebl_mips.h */
43