1.TH SCC-OBJDUMP 1 scc\-VERSION2.SH NAME3scc-objdump \- display information from object files4.SH SYNOPSIS5.B scc-objdump6.RB [ \-afhps ]7.RB [ \-t ]8.RB [ \-j9.IR section ]10.RI [ file ...]11.SH DESCRIPTION12.B scc-objdump13displays information about one or more object files.14The options control what information is displayed.15.PP16If no17.I file18arguments are given,19.B scc-objdump20reads from21.B a.out22by default.23.PP24At least one of the25.BR \-a ,26.BR \-f ,27.BR \-h ,28.BR \-t ,29or30.B \-s31options must be specified.32.PP33Archive libraries are also accepted, in which case34.B scc-objdump35processes each object file member within the archive.36.SH OPTIONS37.TP38.B \-a39If any of the40.I files41are archives, display the archive header information for each member42(file permissions, owner, group, size, and date) in a format similar to43.BR ls (1)44.BR \-l .45.TP46.B \-f47Display summary information from the file header of each48.IR file .49This includes the architecture name, the file flags in hexadecimal,50and the start address.51.PP52.RS53The file flags field is followed by a comma-separated list of the54flag names that are set, which may include:55.PP56.RS57.PD 058.TP59.B HAS_RELOC60The file contains relocation entries.61.TP62.B EXEC_P63The file is an executable.64.TP65.B HAS_LINENO66The file contains line number information.67.TP68.B HAS_DEBUG69The file contains debugging information.70.TP71.B HAS_SYMS72The file contains a symbol table.73.TP74.B HAS_LOCALS75The file contains local symbols.76.TP77.B DYNAMIC78The file is a dynamically linked object.79.PD80.RE81.RE82.TP83.B \-h84Display summary information from the section headers of each85.IR file .86For each section, the output includes the section index, name, size,87virtual memory address (VMA), load memory address (LMA), file offset,88alignment (as a power of two), and a set of flags.89.PP90.RS91The section flags that may appear include:92.PP93.RS94.PD 095.TP96.B CONTENTS97The section has contents stored in the file.98.TP99.B ALLOC100The section is allocated in memory at runtime.101.TP102.B LOAD103The section is loaded from the file into memory.104.TP105.B RELOC106The section has relocation entries.107.TP108.B READONLY109The section is not writable.110.TP111.B CODE112The section contains executable code.113.TP114.B DATA115The section contains initialised data.116.TP117.B DEBUGGING118The section contains debugging information.119.PD120.RE121.RE122.TP123.B \-p124When combined with125.BR \-h ,126also display the full contents of each section using the127format-specific representation.128This option has no effect without129.BR \-h .130.TP131.B \-s132Display the full contents of all sections in hex and ASCII.133For each section that is allocated and non-empty, the output includes134the section name followed by rows of 16 bytes.135Each row shows the VMA-relative offset, the bytes in hexadecimal,136and a printable ASCII representation enclosed in137.B |138characters, with non-printable bytes shown as139.BR . .140.TP141.B \-t142Display the symbol table of each143.IR file .144The exact format depends on the object file format.145.TP146.BI \-j " section"147Display information only for the named148.IR section .149This option may be specified multiple times to select more than one section.150When no151.B \-j152option is given, all sections are processed.153.SH OPERANDS154.TP155.I file156A pathname of an object file or archive library to examine.157If no operands are given,158.B scc-objdump159reads from160.BR a.out .161.SH EXAMPLES162Display file header information for an object file:163.IP164.EX165scc-objdump \-f foo.o166.EE167.PP168Display section headers for an object file:169.IP170.EX171scc-objdump \-h foo.o172.EE173.PP174Display symbol table for an object file:175.IP176.EX177scc-objdump \-t foo.o178.EE179.PP180Display hex contents of all sections:181.IP182.EX183scc-objdump \-s foo.o184.EE185.PP186Display file header and section headers together:187.IP188.EX189scc-objdump \-fh foo.o190.EE191.PP192Display section headers and hex contents of a specific section:193.IP194.EX195scc-objdump \-hs \-j .text foo.o196.EE197.PP198Display archive member headers and symbol tables for all members:199.IP200.EX201scc-objdump \-at libfoo.a202.EE203.PP204Display all available information:205.IP206.EX207scc-objdump \-afhst foo.o208.EE209.SH SEE ALSO210.BR scc-nm (1),211.BR scc-size (1),212.BR scc-strip (1),213.BR scc-ar (1),214.BR scc-ranlib (1)