[llvm] r339250 - Add a CommandGuide for llvm-objdump
Michael Trent via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 8 07:39:22 PDT 2018
Author: mtrent
Date: Wed Aug 8 07:39:22 2018
New Revision: 339250
URL: http://llvm.org/viewvc/llvm-project?rev=339250&view=rev
Log:
Add a CommandGuide for llvm-objdump
Summary:
Add a CommandGuide for llvm-objdump summarizing its usage along with some
general context.
Reviewers: beanz
Reviewed By: beanz
Subscribers: Eugene.Zelenko, llvm-commits
Differential Revision: https://reviews.llvm.org/D50034
Added:
llvm/trunk/docs/CommandGuide/llvm-objdump.rst
Modified:
llvm/trunk/docs/CommandGuide/index.rst
llvm/trunk/docs/conf.py
Modified: llvm/trunk/docs/CommandGuide/index.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandGuide/index.rst?rev=339250&r1=339249&r2=339250&view=diff
==============================================================================
--- llvm/trunk/docs/CommandGuide/index.rst (original)
+++ llvm/trunk/docs/CommandGuide/index.rst Wed Aug 8 07:39:22 2018
@@ -23,6 +23,7 @@ Basic Commands
llvm-ar
llvm-lib
llvm-nm
+ llvm-objdump
llvm-config
llvm-diff
llvm-cov
Added: llvm/trunk/docs/CommandGuide/llvm-objdump.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandGuide/llvm-objdump.rst?rev=339250&view=auto
==============================================================================
--- llvm/trunk/docs/CommandGuide/llvm-objdump.rst (added)
+++ llvm/trunk/docs/CommandGuide/llvm-objdump.rst Wed Aug 8 07:39:22 2018
@@ -0,0 +1,115 @@
+llvm-objdump - LLVM's object file dumper
+========================================
+
+SYNOPSIS
+--------
+
+:program:`llvm-objdump` [*commands*] [*options*] [*filenames...*]
+
+DESCRIPTION
+-----------
+The :program:`llvm-objdump` utility prints the contents of object files and
+final linked images named on the command line. If no file name is specified,
+:program:`llvm-objdump` will attempt to read from *a.out*. If *-* is used as a
+file name, :program:`llvm-objdump` will process a file on its standard input
+stream.
+
+COMMANDS
+--------
+At least one of the following commands are required, and some commands can be combined with other commands:
+
+.. option:: -disassemble
+
+ Display assembler mnemonics for the machine instructions
+
+.. option:: -help
+
+ Display usage information and exit. Does not stack with other commands.
+
+.. option:: -r
+
+ Display the relocation entries in the file.
+
+.. option:: -s
+
+ Display the content of each section.
+
+.. option:: -section-headers
+
+ Display summaries of the headers for each section.
+
+.. option:: -t
+
+ Display the symbol table.
+
+.. option:: -version
+
+ Display the version of this program. Does not stack with other commands.
+
+OPTIONS
+-------
+:program:`llvm-objdump` supports the following options:
+
+.. option:: -arch=<architecture>
+
+ Specify the architecture to disassemble. see -version for available
+ architectures.
+
+.. option:: -cfg
+
+ Create a CFG for every symbol in the object file and write it to a graphviz
+ file (Mach-O-only).
+
+.. option:: -dsym=<string>
+
+ Use .dSYM file for debug info.
+
+.. option:: -g
+
+ Print line information from debug info if available.
+
+.. option:: -macho
+
+ Use Mach-O specific object file parser.
+
+.. option:: -mattr=<a1,+a2,-a3,...>
+
+ Target specific attributes.
+
+.. option:: -mc-x86-disable-arith-relaxation
+
+ Disable relaxation of arithmetic instruction for X86.
+
+.. option:: -stats
+
+ Enable statistics output from program.
+
+.. option:: -triple=<string>
+
+ Target triple to disassemble for, see -version for available targets.
+
+.. option:: -x86-asm-syntax=<style>
+
+ When used with the ``-disassemble`` option, choose style of code to emit from
+ X86 backend. Supported values are:
+
+ .. option:: att
+
+ AT&T-style assembly
+
+ .. option:: intel
+
+ Intel-style assembly
+
+
+ The default disassembly style is **att**.
+
+BUGS
+----
+
+To report bugs, please visit <http://llvm.org/bugs/>.
+
+SEE ALSO
+--------
+
+:manpage:`llvm-nm(1)`
Modified: llvm/trunk/docs/conf.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/conf.py?rev=339250&r1=339249&r2=339250&view=diff
==============================================================================
--- llvm/trunk/docs/conf.py (original)
+++ llvm/trunk/docs/conf.py Wed Aug 8 07:39:22 2018
@@ -257,3 +257,6 @@ intersphinx_mapping = {}
# Pygment lexer are sometimes out of date (when parsing LLVM for example) or
# wrong. Suppress the warning so the build doesn't abort.
suppress_warnings = [ 'misc.highlighting_failure' ]
+
+# Direct html-ified man pages to llvm.org
+manpages_url = 'https://llvm.org/docs/CommandGuide/{page}.html'
More information about the llvm-commits
mailing list