_libelf.h (302408) | _libelf.h (340309) |
---|---|
1/*- 2 * Copyright (c) 2006,2008-2011 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 202 unchanged lines hidden (view full) --- 211size_t _libelf_fsize(Elf_Type _t, int _elfclass, unsigned int _version, 212 size_t count); 213int (*_libelf_get_translator(Elf_Type _t, int _direction, int _elfclass)) 214 (unsigned char *_dst, size_t dsz, unsigned char *_src, 215 size_t _cnt, int _byteswap); 216void *_libelf_getphdr(Elf *_e, int _elfclass); 217void *_libelf_getshdr(Elf_Scn *_scn, int _elfclass); 218void _libelf_init_elf(Elf *_e, Elf_Kind _kind); | 1/*- 2 * Copyright (c) 2006,2008-2011 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 202 unchanged lines hidden (view full) --- 211size_t _libelf_fsize(Elf_Type _t, int _elfclass, unsigned int _version, 212 size_t count); 213int (*_libelf_get_translator(Elf_Type _t, int _direction, int _elfclass)) 214 (unsigned char *_dst, size_t dsz, unsigned char *_src, 215 size_t _cnt, int _byteswap); 216void *_libelf_getphdr(Elf *_e, int _elfclass); 217void *_libelf_getshdr(Elf_Scn *_scn, int _elfclass); 218void _libelf_init_elf(Elf *_e, Elf_Kind _kind); |
219int _libelf_is_mips64el(Elf *e); |
|
219int _libelf_load_section_headers(Elf *e, void *ehdr); 220unsigned int _libelf_malign(Elf_Type _t, int _elfclass); 221Elf *_libelf_memory(unsigned char *_image, size_t _sz, int _reporterror); 222size_t _libelf_msize(Elf_Type _t, int _elfclass, unsigned int _version); 223void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count); 224Elf *_libelf_open_object(int _fd, Elf_Cmd _c, int _reporterror); | 220int _libelf_load_section_headers(Elf *e, void *ehdr); 221unsigned int _libelf_malign(Elf_Type _t, int _elfclass); 222Elf *_libelf_memory(unsigned char *_image, size_t _sz, int _reporterror); 223size_t _libelf_msize(Elf_Type _t, int _elfclass, unsigned int _version); 224void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count); 225Elf *_libelf_open_object(int _fd, Elf_Cmd _c, int _reporterror); |
226Elf64_Xword _libelf_mips64el_r_info_tof(Elf64_Xword r_info); 227Elf64_Xword _libelf_mips64el_r_info_tom(Elf64_Xword r_info); |
|
225struct _Libelf_Data *_libelf_release_data(struct _Libelf_Data *_d); 226Elf *_libelf_release_elf(Elf *_e); 227Elf_Scn *_libelf_release_scn(Elf_Scn *_s); 228int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); 229int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); 230int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, 231 size_t _shstrndx); 232Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, 233 unsigned int _encoding, int _elfclass, int _direction); 234int _libelf_xlate_shtype(uint32_t _sht); 235#ifdef __cplusplus 236} 237#endif 238 239#endif /* __LIBELF_H_ */ | 228struct _Libelf_Data *_libelf_release_data(struct _Libelf_Data *_d); 229Elf *_libelf_release_elf(Elf *_e); 230Elf_Scn *_libelf_release_scn(Elf_Scn *_s); 231int _libelf_setphnum(Elf *_e, void *_eh, int _elfclass, size_t _phnum); 232int _libelf_setshnum(Elf *_e, void *_eh, int _elfclass, size_t _shnum); 233int _libelf_setshstrndx(Elf *_e, void *_eh, int _elfclass, 234 size_t _shstrndx); 235Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s, 236 unsigned int _encoding, int _elfclass, int _direction); 237int _libelf_xlate_shtype(uint32_t _sht); 238#ifdef __cplusplus 239} 240#endif 241 242#endif /* __LIBELF_H_ */ |