libelftc.h (295577) | libelftc.h (300311) |
---|---|
1/*- 2 * Copyright (c) 2009 Kai Wang 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 --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * $FreeBSD: users/kaiwang27/elftc/libelftc.h 392 2009-05-31 19:17:46Z kaiwang27 $ | 1/*- 2 * Copyright (c) 2009 Kai Wang 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 --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * $FreeBSD: users/kaiwang27/elftc/libelftc.h 392 2009-05-31 19:17:46Z kaiwang27 $ |
27 * $Id: libelftc.h 3309 2016-01-10 09:10:51Z kaiwang27 $ | 27 * $Id: libelftc.h 3418 2016-02-19 20:04:42Z emaste $ |
28 */ 29 30#ifndef _LIBELFTC_H_ 31#define _LIBELFTC_H_ 32 33#include <sys/stat.h> 34 35#include <libelf.h> --- 34 unchanged lines hidden (view full) --- 70Elftc_Bfd_Target *elftc_bfd_find_target(const char *_tgt_name); 71Elftc_Bfd_Target_Flavor elftc_bfd_target_flavor(Elftc_Bfd_Target *_tgt); 72unsigned int elftc_bfd_target_byteorder(Elftc_Bfd_Target *_tgt); 73unsigned int elftc_bfd_target_class(Elftc_Bfd_Target *_tgt); 74unsigned int elftc_bfd_target_machine(Elftc_Bfd_Target *_tgt); 75int elftc_copyfile(int _srcfd, int _dstfd); 76int elftc_demangle(const char *_mangledname, char *_buffer, 77 size_t _bufsize, unsigned int _flags); | 28 */ 29 30#ifndef _LIBELFTC_H_ 31#define _LIBELFTC_H_ 32 33#include <sys/stat.h> 34 35#include <libelf.h> --- 34 unchanged lines hidden (view full) --- 70Elftc_Bfd_Target *elftc_bfd_find_target(const char *_tgt_name); 71Elftc_Bfd_Target_Flavor elftc_bfd_target_flavor(Elftc_Bfd_Target *_tgt); 72unsigned int elftc_bfd_target_byteorder(Elftc_Bfd_Target *_tgt); 73unsigned int elftc_bfd_target_class(Elftc_Bfd_Target *_tgt); 74unsigned int elftc_bfd_target_machine(Elftc_Bfd_Target *_tgt); 75int elftc_copyfile(int _srcfd, int _dstfd); 76int elftc_demangle(const char *_mangledname, char *_buffer, 77 size_t _bufsize, unsigned int _flags); |
78const char *elftc_reloc_type_str(unsigned int mach, unsigned int type); |
|
78int elftc_set_timestamps(const char *_filename, struct stat *_sb); 79Elftc_String_Table *elftc_string_table_create(int _hint); 80void elftc_string_table_destroy(Elftc_String_Table *_table); 81Elftc_String_Table *elftc_string_table_from_section(Elf_Scn *_scn, 82 int _hint); 83const char *elftc_string_table_image(Elftc_String_Table *_table, 84 size_t *_sz); 85size_t elftc_string_table_insert(Elftc_String_Table *_table, --- 13 unchanged lines hidden --- | 79int elftc_set_timestamps(const char *_filename, struct stat *_sb); 80Elftc_String_Table *elftc_string_table_create(int _hint); 81void elftc_string_table_destroy(Elftc_String_Table *_table); 82Elftc_String_Table *elftc_string_table_from_section(Elf_Scn *_scn, 83 int _hint); 84const char *elftc_string_table_image(Elftc_String_Table *_table, 85 size_t *_sz); 86size_t elftc_string_table_insert(Elftc_String_Table *_table, --- 13 unchanged lines hidden --- |