File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 13211321\item The following examples \emsl {are from Solaris}. Finding equivalent
13221322commands 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
13291328own dynamic linker and set it via the \texttt {-I } option for \texttt {ld } to your
Original file line number Diff line number Diff line change 760760or more segments, each of which contains between 0 and 255 sections.
761761\item On Solaris, the \texttt {elfdump } command allows listing sections of the
762762ELF 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
You can’t perform that action at this time.
0 commit comments