xref: /illumos-gate/usr/src/lib/libdwarf/common/pro_reloc_stream.h (revision 4d9fdb46b215739778ebc12079842c9905586999)
1bc1f688bSRobert Mustacchi /*
2bc1f688bSRobert Mustacchi 
3bc1f688bSRobert Mustacchi   Copyright (C) 2000,2004 Silicon Graphics, Inc.  All Rights Reserved.
4bc1f688bSRobert Mustacchi 
5bc1f688bSRobert Mustacchi   This program is free software; you can redistribute it and/or modify it
6bc1f688bSRobert Mustacchi   under the terms of version 2.1 of the GNU Lesser General Public License
7bc1f688bSRobert Mustacchi   as published by the Free Software Foundation.
8bc1f688bSRobert Mustacchi 
9bc1f688bSRobert Mustacchi   This program is distributed in the hope that it would be useful, but
10bc1f688bSRobert Mustacchi   WITHOUT ANY WARRANTY; without even the implied warranty of
11bc1f688bSRobert Mustacchi   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12bc1f688bSRobert Mustacchi 
13bc1f688bSRobert Mustacchi   Further, this software is distributed without any warranty that it is
14bc1f688bSRobert Mustacchi   free of the rightful claim of any third person regarding infringement
15bc1f688bSRobert Mustacchi   or the like.  Any license provided herein, whether implied or
16bc1f688bSRobert Mustacchi   otherwise, applies only to this software file.  Patent licenses, if
17bc1f688bSRobert Mustacchi   any, provided herein do not apply to combinations of this program with
18bc1f688bSRobert Mustacchi   other software, or any other product whatsoever.
19bc1f688bSRobert Mustacchi 
20bc1f688bSRobert Mustacchi   You should have received a copy of the GNU Lesser General Public
21bc1f688bSRobert Mustacchi   License along with this program; if not, write the Free Software
22bc1f688bSRobert Mustacchi   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
23bc1f688bSRobert Mustacchi   USA.
24bc1f688bSRobert Mustacchi 
25bc1f688bSRobert Mustacchi */
26bc1f688bSRobert Mustacchi 
27bc1f688bSRobert Mustacchi 
28*4d9fdb46SRobert Mustacchi int _dwarf_pro_reloc_name_stream64(Dwarf_P_Debug dbg,
29*4d9fdb46SRobert Mustacchi     int base_sec_index,
30*4d9fdb46SRobert Mustacchi     Dwarf_Unsigned offset,/* r_offset of reloc */
31bc1f688bSRobert Mustacchi     Dwarf_Unsigned symidx,
32bc1f688bSRobert Mustacchi     enum Dwarf_Rel_Type,
33bc1f688bSRobert Mustacchi     int reltarget_length);
34*4d9fdb46SRobert Mustacchi int _dwarf_pro_reloc_name_stream32(Dwarf_P_Debug dbg,
35*4d9fdb46SRobert Mustacchi     int base_sec_index,
36*4d9fdb46SRobert Mustacchi     Dwarf_Unsigned offset,/* r_offset of reloc */
37bc1f688bSRobert Mustacchi     Dwarf_Unsigned symidx,
38bc1f688bSRobert Mustacchi     enum Dwarf_Rel_Type,
39bc1f688bSRobert Mustacchi     int reltarget_length);
40*4d9fdb46SRobert Mustacchi 
41*4d9fdb46SRobert Mustacchi int _dwarf_pro_reloc_length_stream(Dwarf_P_Debug dbg,
42*4d9fdb46SRobert Mustacchi     int base_sec_index,
43*4d9fdb46SRobert Mustacchi     Dwarf_Unsigned offset,	/* r_offset of reloc */
44bc1f688bSRobert Mustacchi     Dwarf_Unsigned start_symidx,
45bc1f688bSRobert Mustacchi     Dwarf_Unsigned end_symidx,
46bc1f688bSRobert Mustacchi     enum Dwarf_Rel_Type,
47bc1f688bSRobert Mustacchi     int reltarget_length);
48bc1f688bSRobert Mustacchi 
49bc1f688bSRobert Mustacchi int _dwarf_stream_relocs_to_disk(Dwarf_P_Debug dbg,
50bc1f688bSRobert Mustacchi     Dwarf_Signed * new_sec_count);
51