summaryrefslogtreecommitdiff
path: root/libdwarf/dwarf_get_relocation_info.3
diff options
context:
space:
mode:
Diffstat (limited to 'libdwarf/dwarf_get_relocation_info.3')
-rw-r--r--libdwarf/dwarf_get_relocation_info.358
1 files changed, 29 insertions, 29 deletions
diff --git a/libdwarf/dwarf_get_relocation_info.3 b/libdwarf/dwarf_get_relocation_info.3
index 96166cfa9ce9..04fb460f8c8b 100644
--- a/libdwarf/dwarf_get_relocation_info.3
+++ b/libdwarf/dwarf_get_relocation_info.3
@@ -22,11 +22,11 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: dwarf_get_relocation_info.3 2071 2011-10-27 03:20:00Z jkoshy $
+.\" $Id: dwarf_get_relocation_info.3 3644 2018-10-15 19:55:01Z jkoshy $
.\"
.Dd September 3, 2011
-.Os
.Dt DWARF_GET_RELOCATION_INFO 3
+.Os
.Sh NAME
.Nm dwarf_get_relocation_info
.Nd retrieve generated relocation arrays
@@ -147,32 +147,6 @@ returns
.Dv DW_DLV_ERROR
and sets the argument
.Ar err .
-.Sh ERRORS
-Function
-.Fn dwarf_get_relocation_info
-can fail with:
-.Bl -tag -width ".Bq Er DW_DLE_NO_ENTRY"
-.It Bq Er DW_DLE_ARGUMENT
-One of the arguments
-.Ar dbg ,
-.Ar elf_section_index ,
-.Ar elf_section_link ,
-.Ar reloc_entry_count
-or
-.Ar reloc_buf
-was NULL.
-.It Bq Er DW_DLE_NO_ENTRY
-There were no more ELF relocation arrays to retrieve.
-.It Bq Er DW_DLE_NO_ENTRY
-The flag
-.Dv DW_DLC_SYMBOLIC_RELOCATIONS
-was not set on the producer instance.
-.It Bq Er DW_DLE_NO_ENTRY
-Function
-.Xr dwarf_transform_to_disk_form 3
-was not called prior to calling function
-.Fn dwarf_get_relocation_info .
-.El
.Sh EXAMPLES
To generate relocation entries and retrieve them, use:
.Bd -literal -offset indent
@@ -218,11 +192,37 @@ for (i = 0; (Dwarf_Unsigned) i < reloc_cnt; i++) {
dwarf_producer_finish(dbg, &de);
.Ed
+.Sh ERRORS
+Function
+.Fn dwarf_get_relocation_info
+can fail with:
+.Bl -tag -width ".Bq Er DW_DLE_NO_ENTRY"
+.It Bq Er DW_DLE_ARGUMENT
+One of the arguments
+.Ar dbg ,
+.Ar elf_section_index ,
+.Ar elf_section_link ,
+.Ar reloc_entry_count
+or
+.Ar reloc_buf
+was NULL.
+.It Bq Er DW_DLE_NO_ENTRY
+There were no more ELF relocation arrays to retrieve.
+.It Bq Er DW_DLE_NO_ENTRY
+The flag
+.Dv DW_DLC_SYMBOLIC_RELOCATIONS
+was not set on the producer instance.
+.It Bq Er DW_DLE_NO_ENTRY
+Function
+.Xr dwarf_transform_to_disk_form 3
+was not called prior to calling function
+.Fn dwarf_get_relocation_info .
+.El
.Sh SEE ALSO
.Xr dwarf 3 ,
.Xr dwarf_get_relocation_info_count 3 ,
-.Xr dwarf_reset_section_bytes 3 ,
.Xr dwarf_producer_finish 3 ,
.Xr dwarf_producer_init 3 ,
.Xr dwarf_producer_init_b 3 ,
+.Xr dwarf_reset_section_bytes 3 ,
.Xr dwarf_transform_to_disk_form 3