13fe401a5SEd Maste.\" Copyright (c) 2003 David O'Brien 23fe401a5SEd Maste.\" All rights reserved. 33fe401a5SEd Maste.\" 43fe401a5SEd Maste.\" Redistribution and use in source and binary forms, with or without 53fe401a5SEd Maste.\" modification, are permitted provided that the following conditions 63fe401a5SEd Maste.\" are met: 73fe401a5SEd Maste.\" 1. Redistributions of source code must retain the above copyright 83fe401a5SEd Maste.\" notice, this list of conditions and the following disclaimer. 93fe401a5SEd Maste.\" 2. Redistributions in binary form must reproduce the above copyright 103fe401a5SEd Maste.\" notice, this list of conditions and the following disclaimer in the 113fe401a5SEd Maste.\" documentation and/or other materials provided with the distribution. 123fe401a5SEd Maste.\" 133fe401a5SEd Maste.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 143fe401a5SEd Maste.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 153fe401a5SEd Maste.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 163fe401a5SEd Maste.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 173fe401a5SEd Maste.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 183fe401a5SEd Maste.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 193fe401a5SEd Maste.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 203fe401a5SEd Maste.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 213fe401a5SEd Maste.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 223fe401a5SEd Maste.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 233fe401a5SEd Maste.\" SUCH DAMAGE. 243fe401a5SEd Maste.\" 253fe401a5SEd Maste.\" $FreeBSD: src/usr.bin/elfdump/elfdump.1,v 1.6 2005/01/18 13:43:48 ru Exp $ 26*656f49f8SEd Maste.\" $Id: elfdump.1 3231 2015-07-30 13:47:56Z emaste $ 273fe401a5SEd Maste.\" 283fe401a5SEd Maste.Dd August 25, 2011 293fe401a5SEd Maste.Dt ELFDUMP 1 303fe401a5SEd Maste.Os 313fe401a5SEd Maste.Sh NAME 323fe401a5SEd Maste.Nm elfdump 333fe401a5SEd Maste.Nd "display information about" 343fe401a5SEd Maste.Tn ELF 353fe401a5SEd Mastefiles 363fe401a5SEd Maste.Sh SYNOPSIS 373fe401a5SEd Maste.Nm 383fe401a5SEd Maste.Fl a | cdeGhiknprsv 393fe401a5SEd Maste.Op Fl S 403fe401a5SEd Maste.Op Fl V 413fe401a5SEd Maste.Op Fl N Ar name 423fe401a5SEd Maste.Op Fl w Ar file 433fe401a5SEd Maste.Ar file ... 443fe401a5SEd Maste.Sh DESCRIPTION 453fe401a5SEd MasteThe 463fe401a5SEd Maste.Nm 473fe401a5SEd Masteutility 483fe401a5SEd Mastedumps various information about the specified 493fe401a5SEd Maste.Tn ELF 503fe401a5SEd Maste.Ar file . 513fe401a5SEd Maste.Pp 523fe401a5SEd MasteThe options are as follows: 533fe401a5SEd Maste.Bl -tag -width ".Fl w Ar file" 543fe401a5SEd Maste.It Fl a 553fe401a5SEd MasteDump all information. 563fe401a5SEd Maste.It Fl c 57*656f49f8SEd MasteDump section headers. 583fe401a5SEd Maste.It Fl d 593fe401a5SEd MasteDump dynamic symbols. 603fe401a5SEd Maste.It Fl e 613fe401a5SEd MasteDump ELF header. 623fe401a5SEd Maste.It Fl G 633fe401a5SEd MasteDump the GOT. 643fe401a5SEd Maste.It Fl h 653fe401a5SEd MasteDump the hash values. 663fe401a5SEd Maste.It Fl i 673fe401a5SEd MasteDump the dynamic interpreter. 683fe401a5SEd Maste.It Fl k 693fe401a5SEd MasteDump the ELF checksum. 703fe401a5SEd Maste.It Fl n 713fe401a5SEd MasteDump note sections. 723fe401a5SEd Maste.It Fl N Ar name 733fe401a5SEd MasteOnly dump the section with the specific 743fe401a5SEd Maste.Ar name . 753fe401a5SEd MasteArchive symbol table can be specified with 763fe401a5SEd Mastethe special section name ARSYM. 773fe401a5SEd MasteMore than one 783fe401a5SEd Maste.Fl N 793fe401a5SEd Masteoption may appear. 803fe401a5SEd Maste.It Fl p 813fe401a5SEd MasteDump the program header. 823fe401a5SEd Maste.It Fl r 833fe401a5SEd MasteDump relocations. 843fe401a5SEd Maste.It Fl s 853fe401a5SEd MasteDump the symbol table. 863fe401a5SEd Maste.It Fl S 873fe401a5SEd MasteOutput in the Solaris 883fe401a5SEd Maste.Nm 893fe401a5SEd Masteformat. 903fe401a5SEd Maste.It Fl v 913fe401a5SEd MasteDump the symbol-versioning sections. 923fe401a5SEd Maste.It Fl V 933fe401a5SEd MastePrint a version identifier and exit. 943fe401a5SEd Maste.It Fl w Ar file 953fe401a5SEd MasteWrite output to a 963fe401a5SEd Maste.Ar file 973fe401a5SEd Masteinstead of the standard output. 983fe401a5SEd Maste.El 993fe401a5SEd Maste.Sh EXIT STATUS 1003fe401a5SEd Maste.Ex -std 1013fe401a5SEd Maste.Sh EXAMPLES 1023fe401a5SEd MasteThe following is an example of a typical usage 1033fe401a5SEd Masteof the 1043fe401a5SEd Maste.Nm 1053fe401a5SEd Mastecommand: 1063fe401a5SEd Maste.Pp 1073fe401a5SEd Maste.Dl "elfdump -a -w output /bin/ls" 1083fe401a5SEd Maste.Pp 1093fe401a5SEd MasteTo dump the content of '.dynsym' symbol table: 1103fe401a5SEd Maste.Pp 1113fe401a5SEd Maste.Dl "elfdump -s -N .dynsym /bin/ls" 1123fe401a5SEd Maste.Pp 1133fe401a5SEd MasteTo dump the archive symbol table, 1143fe401a5SEd Mastebut not the symbol tables of archive members: 1153fe401a5SEd Maste.Pp 1163fe401a5SEd Maste.Dl "elfdump -s -N ARSYM /usr/lib/libelf.a" 1173fe401a5SEd Maste.Pp 1183fe401a5SEd MasteTo dump the content of .got section and 1193fe401a5SEd Mastethe symbol-versioning sections in Solaris 1203fe401a5SEd Maste.Nm 1213fe401a5SEd Masteformat: 1223fe401a5SEd Maste.Pp 1233fe401a5SEd Maste.Dl "elfdump -S -Gv /bin/ls" 1243fe401a5SEd Maste.Sh SEE ALSO 1253fe401a5SEd Maste.Xr objdump 1 , 1263fe401a5SEd Maste.Xr readelf 1 , 1273fe401a5SEd Maste.Xr elf 3 1283fe401a5SEd Maste.Rs 1293fe401a5SEd Maste.%A "AT&T Unix Systems Labs" 1303fe401a5SEd Maste.%T "System V Application Binary Interface" 1313fe401a5SEd Maste.%O http://www.sco.com/developers/gabi/ 1323fe401a5SEd Maste.Re 1333fe401a5SEd Maste.Sh HISTORY 1343fe401a5SEd MasteThe 1353fe401a5SEd Maste.Nm 1363fe401a5SEd Masteutility first appeared in 1373fe401a5SEd Maste.Fx 5.0 . 1383fe401a5SEd Maste.Sh AUTHORS 1393fe401a5SEd Maste.An -nosplit 1403fe401a5SEd MasteThe 1413fe401a5SEd Maste.Nm 1423fe401a5SEd Masteutility 1433fe401a5SEd Mastewas written by 1443fe401a5SEd Maste.An Jake Burkholder Aq Mt jake@FreeBSD.org . 1453fe401a5SEd MasteLater it was rewritten based on the 1463fe401a5SEd Mastelibelf library. 1473fe401a5SEd MasteThis 1483fe401a5SEd Mastemanual page was written by 1493fe401a5SEd Maste.An David O'Brien Aq Mt obrien@FreeBSD.org . 1503fe401a5SEd Maste.Pp 1513fe401a5SEd Maste.An Kai Wang Aq Mt kaiw@FreeBSD.org 1523fe401a5SEd Masterewrote it using the 1533fe401a5SEd Maste.Lb libelf 1543fe401a5SEd Masteand implemented additional functionality. 1553fe401a5SEd Maste.Sh BUGS 1563fe401a5SEd MasteDoes not fully implement the 1573fe401a5SEd Maste.Tn ELF 1583fe401a5SEd MastegABI. 159