1bc1f688bSRobert Mustacchi #ifndef _DWARF_ELF_PORT_H 2bc1f688bSRobert Mustacchi #define _DWARF_ELF_PORT_H 3bc1f688bSRobert Mustacchi /* 4bc1f688bSRobert Mustacchi 5*4d9fdb46SRobert Mustacchi Copyright (C) 2008-2011 David Anderson. All rights reserved. 6bc1f688bSRobert Mustacchi Portions Copyright 2008-2010 Arxan Technologies, Inc. All rights reserved. 7bc1f688bSRobert Mustacchi 8bc1f688bSRobert Mustacchi This program is free software; you can redistribute it and/or modify it 9bc1f688bSRobert Mustacchi under the terms of version 2.1 of the GNU Lesser General Public License 10bc1f688bSRobert Mustacchi as published by the Free Software Foundation. 11bc1f688bSRobert Mustacchi 12bc1f688bSRobert Mustacchi This program is distributed in the hope that it would be useful, but 13bc1f688bSRobert Mustacchi WITHOUT ANY WARRANTY; without even the implied warranty of 14bc1f688bSRobert Mustacchi MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15bc1f688bSRobert Mustacchi 16bc1f688bSRobert Mustacchi Further, this software is distributed without any warranty that it is 17bc1f688bSRobert Mustacchi free of the rightful claim of any third person regarding infringement 18bc1f688bSRobert Mustacchi or the like. Any license provided herein, whether implied or 19bc1f688bSRobert Mustacchi otherwise, applies only to this software file. Patent licenses, if 20bc1f688bSRobert Mustacchi any, provided herein do not apply to combinations of this program with 21bc1f688bSRobert Mustacchi other software, or any other product whatsoever. 22bc1f688bSRobert Mustacchi 23bc1f688bSRobert Mustacchi You should have received a copy of the GNU Lesser General Public 24bc1f688bSRobert Mustacchi License along with this program; if not, write the Free Software 25bc1f688bSRobert Mustacchi Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, 26bc1f688bSRobert Mustacchi USA. 27bc1f688bSRobert Mustacchi 28bc1f688bSRobert Mustacchi */ 29bc1f688bSRobert Mustacchi 30bc1f688bSRobert Mustacchi 31bc1f688bSRobert Mustacchi 32bc1f688bSRobert Mustacchi /* ELF (usually libelf) object access for the generic object file interface */ 33bc1f688bSRobert Mustacchi 34bc1f688bSRobert Mustacchi int 35bc1f688bSRobert Mustacchi dwarf_elf_object_access_init(dwarf_elf_handle elf , 36bc1f688bSRobert Mustacchi int libdwarf_owns_elf, 37bc1f688bSRobert Mustacchi Dwarf_Obj_Access_Interface** ret_obj, 38bc1f688bSRobert Mustacchi int *err ); 39bc1f688bSRobert Mustacchi 40bc1f688bSRobert Mustacchi void 41bc1f688bSRobert Mustacchi dwarf_elf_object_access_finish(Dwarf_Obj_Access_Interface* obj ); 42bc1f688bSRobert Mustacchi 43bc1f688bSRobert Mustacchi /* End ELF object access for the generic object file interface */ 44bc1f688bSRobert Mustacchi 45bc1f688bSRobert Mustacchi 46bc1f688bSRobert Mustacchi #endif 47