.\" Man page generated from reStructuredText. . .TH "ABIDW" "1" "Nov 24, 2016" "" "Libabigail" .SH NAME abidw \- serialize the ABI of an ELF file . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .sp abidw reads a shared library in \fI\%ELF\fP format and emits an XML representation of its ABI to standard output. The emitted representation includes all the globally defined functions and variables, along with a complete representation of their types. It also includes a representation of the globally defined ELF symbols of the file. The input shared library must contain associated debug information in \fI\%DWARF\fP format. .SH INVOCATION .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C abidw [options] [] .ft P .fi .UNINDENT .UNINDENT .SH OPTIONS .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 \fB\-\-help | \-h\fP .sp Display a short help about the command and exit. .IP \(bu 2 \fI\-\-version | \-v\fP .sp Display the version of the program and exit. .IP \(bu 2 \fB\-\-debug\-info\-dir | \-d\fP <\fIdir\-path\fP> .sp In cases where the debug info for \fIpath\-to\-elf\-file\fP is in a separate file that is located in a non\-standard place, this tells \fBabidw\fP where to look for that debug info file. .sp Note that \fIdir\-path\fP must point to the root directory under which the debug information is arranged in a tree\-like manner. Under Red Hat based systems, that directory is usually \fB/usr/lib/debug\fP\&. .sp Note that this option is not mandatory for split debug information installed by your system\(aqs package manager because then \fBabidw\fP knows where to find it. .IP \(bu 2 \fB\-\-out\-file\fP <\fIfile\-path\fP> .sp This option instructs \fBabidw\fP to emit the XML representation of \fIpath\-to\-elf\-file\fP into the file \fIfile\-path\fP, rather than emitting it to its standard output. .IP \(bu 2 \fB\-\-noout\fP .sp This option instructs \fBabidw\fP to not emit the XML representation of the ABI. So it only reads the ELF and debug information, builds the internal representation of the ABI and exits. This option is usually useful for debugging purposes. .IP \(bu 2 \fB\-\-suppressions | suppr\fP <\fIpath\-to\-suppression\-specifications\-file\fP> .sp Use a suppression specification file located at \fIpath\-to\-suppression\-specifications\-file\fP\&. Note that this option can appear multiple times on the command line. In that case, all of the provided suppression specification files are taken into account. ABI artifacts matched by the suppression specifications are suppressed from the output of this tool. .IP \(bu 2 \fB\-\-headers\-dir | \-\-hd\fP .sp Specifies where to find the public headers of the first shared library that the tool has to consider. The tool will thus filter out types that are not defined in public headers. .IP \(bu 2 \fB\-\-check\-alternate\-debug\-info\fP <\fIelf\-path\fP> .sp If the debug info for the file \fIelf\-path\fP contains a reference to an \fI\%alternate debug info\fP file, \fBabidw\fP checks that it can find that alternate debug info file. In that case, it emits a meaningful success message mentioning the full path to the alternate debug info file found. Otherwise, it emits an error code. .IP \(bu 2 \fB\-\-no\-show\-locs\fP .UNINDENT .INDENT 0.0 .INDENT 3.5 Do not show information about where in the \fIsecond shared library\fP the respective type was changed. .UNINDENT .UNINDENT .INDENT 0.0 .IP \(bu 2 \fB\-\-check\-alternate\-debug\-info\-base\-name\fP <\fIelf\-path\fP> .sp Like \fB\-\-check\-alternate\-debug\-info\fP, but in the success message, only mention the base name of the debug info file; not its full path. .IP \(bu 2 \fB\-\-load\-all\-types\fP .sp By default, \fBlibabigail\fP (and thus \fBabidw\fP) only loads types that are reachable from functions and variables declarations that are publicly defined and exported by the binary. So only those types are present in the output of \fBabidw\fP\&. This option however makes \fBabidw\fP load \fIall\fP the types defined in the binaries, even those that are not reachable from public declarations. .IP \(bu 2 \fB\-\-abidiff\fP .UNINDENT .INDENT 0.0 .INDENT 3.5 Load the ABI of the ELF binary given in argument, save it in libabigail\(aqs XML format in a temporary file; read the ABI from the temporary XML file and compare the ABI that has been read back against the ABI of the ELF binary given in argument. The ABIs should compare equal. If they don\(aqt, the program emits a diagnostic and exits with a non\-zero code. .sp This is a debugging and sanity check option. .UNINDENT .UNINDENT .INDENT 0.0 .IP \(bu 2 \fB\-\-stats\fP .sp Emit statistics about various internal things. .IP \(bu 2 \fB\-\-verbose\fP .sp Emit verbose logs about the progress of miscellaneous internal things. .UNINDENT .UNINDENT .UNINDENT .SH NOTES .SS Alternate debug info files .sp As of the version 4 of the DWARF specification, \fI\%Alternate debug information\fP is a \fI\%GNU\fP extension to the DWARF specification. It has however been proposed for inclusion into the upcoming version 5 of the DWARF standard. You can read more about the GNU extensions to the DWARF standard \fI\%here\fP\&. .SH AUTHOR Dodji Seketeli .SH COPYRIGHT 2014-2016, Red Hat, Inc. .\" Generated by docutils manpage writer. .