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