Skip to content

Commit 0fc102e

Browse files
author
Vladimir Kotal
committed
mention objdump
1 parent 837c177 commit 0fc102e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

intro.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,9 +1321,8 @@
13211321
\item The following examples \emsl{are from Solaris}. Finding equivalent
13221322
commands and/or options on Linux is left as an exercise to the reader.
13231323
\begin{itemize}
1324-
\item ELF sections are listed via \texttt{elfdump -c} (GNU has
1325-
\texttt{objdump} and \texttt{readelf}). More on program sections on page
1326-
\pageref{ELF}.
1324+
\item ELF sections are listed via \texttt{elfdump -c} (GNU has \texttt{readelf},
1325+
macOS has \texttt{objdump}). More on program sections on page \pageref{ELF}.
13271326
\item What a dynamic linker is used is in section \texttt{.interp}, see
13281327
''\texttt{elf\-dump -i}'' and ``\texttt{ld -I}''. It means you could write your
13291328
own dynamic linker and set it via the \texttt{-I} option for \texttt{ld} to your

proc.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@
760760
or more segments, each of which contains between 0 and 255 sections.
761761
\item On Solaris, the \texttt{elfdump} command allows listing sections of the
762762
ELF file in a human readable form. On Linux distributions, use \texttt{readelf}.
763+
macOS (which does not use ELF but the Mach-O format), use \texttt{objdump}.
763764
\item The \emph{ELF header} contains basic information about the file. Try
764765
``\texttt{readelf -h /bin/ls}'' on any Linux distribution.
765766
\item The \emph{program header table} is only present in files that are

0 commit comments

Comments
 (0)