📄 binutils.html
字号:
method it uses:<DL COMPACT><DT><CODE>gnu</CODE><DD>the one used by the GNU compiler (the default method)<DT><CODE>lucid</CODE><DD>the one used by the Lucid compiler<DT><CODE>arm</CODE><DD>the one specified by the C++ Annotated Reference Manual</DL><DT><CODE>--help</CODE><DD>Print a summary of the options to <CODE>c++filt</CODE> and exit.<DT><CODE>--version</CODE><DD>Print the version number of <CODE>c++filt</CODE> and exit.</DL><BLOCKQUOTE><P><EM>Warning:</EM> <CODE>c++filt</CODE> is a new utility, and the details of itsuser interface are subject to change in future releases. In particular,a command-line option may be required in the the future to decode a namepassed as an argument on the command line; in other words, </P><PRE>c++filt <VAR>symbol</VAR></PRE><P>may in a future release become</P><PRE>c++filt <VAR>option</VAR> <VAR>symbol</VAR></PRE></BLOCKQUOTE><H1><A NAME="SEC12" HREF="binutils_toc.html#TOC12">Selecting the target system</A></H1><P>You can specify three aspects of the target system to the GNUbinary file utilities, each in several ways:</P><UL><LI>the target<LI>the architecture<LI>the linker emulation (which applies to the linker only)</UL><P>In the following summaries, the lists of ways to specify values are inorder of decreasing precedence. The ways listed first override thoselisted later.</P><P>The commands to list valid values only list the values for which theprograms you are running were configured. If they were configured with<SAMP>`--enable-targets=all'</SAMP>, the commands list most of the availablevalues, but a few are left out; not all targets can be configured in atonce because some of them can only be configured <EM>native</EM> (on hostswith the same type as the target system).</P><H2><A NAME="SEC13" HREF="binutils_toc.html#TOC13">Target Selection</A></H2><P>A <EM>target</EM> is an object file format. A given target may besupported for multiple architectures (see section <A HREF="binutils.html#SEC14">Architecture selection</A>).A target selection may also have variations for different operatingsystems or architectures.</P><P>The command to list valid target values is <SAMP>`objdump -i'</SAMP>(the first column of output contains the relevant information).</P><P>Some sample values are: <SAMP>`a.out-hp300bsd'</SAMP>, <SAMP>`ecoff-littlemips'</SAMP>,<SAMP>`a.out-sunos-big'</SAMP>.</P><H3><CODE>objdump</CODE> Target</H3><P>Ways to specify:</P><OL><LI>command line option: <SAMP>`-b'</SAMP> or <SAMP>`--target'</SAMP><LI>environment variable <CODE>GNUTARGET</CODE><LI>deduced from the input file</OL><H3><CODE>objcopy</CODE> and <CODE>strip</CODE> Input Target</H3><P>Ways to specify:</P><OL><LI>command line options: <SAMP>`-I'</SAMP> or <SAMP>`--input-target'</SAMP>, or <SAMP>`-F'</SAMP> or <SAMP>`--target'</SAMP><LI>environment variable <CODE>GNUTARGET</CODE><LI>deduced from the input file</OL><H3><CODE>objcopy</CODE> and <CODE>strip</CODE> Output Target</H3><P>Ways to specify:</P><OL><LI>command line options: <SAMP>`-O'</SAMP> or <SAMP>`--output-target'</SAMP>, or <SAMP>`-F'</SAMP> or <SAMP>`--target'</SAMP><LI>the input target (see "<CODE>objcopy</CODE> and <CODE>strip</CODE> Input Target" above)<LI>environment variable <CODE>GNUTARGET</CODE><LI>deduced from the input file</OL><H3><CODE>nm</CODE>, <CODE>size</CODE>, and <CODE>strings</CODE> Target</H3><P>Ways to specify:</P><OL><LI>command line option: <SAMP>`--target'</SAMP><LI>environment variable <CODE>GNUTARGET</CODE><LI>deduced from the input file</OL><H3>Linker Input Target</H3><P>Ways to specify:</P><OL><LI>command line option: <SAMP>`-b'</SAMP> or <SAMP>`--format'</SAMP>(see section `Options' in <CITE>Using LD</CITE>)<LI>script command <CODE>TARGET</CODE>(see section `Option Commands' in <CITE>Using LD</CITE>)<LI>environment variable <CODE>GNUTARGET</CODE>(see section `Environment' in <CITE>Using LD</CITE>)<LI>the default target of the selected linker emulation(see section <A HREF="binutils.html#SEC15">Linker emulation selection</A>)</OL><H3>Linker Output Target</H3><P>Ways to specify:</P><OL><LI>command line option: <SAMP>`-oformat'</SAMP>(see section `Options' in <CITE>Using LD</CITE>)<LI>script command <CODE>OUTPUT_FORMAT</CODE>(see section `Option Commands' in <CITE>Using LD</CITE>)<LI>the linker input target (see "Linker Input Target" above)</OL><H2><A NAME="SEC14" HREF="binutils_toc.html#TOC14">Architecture selection</A></H2><P>An <EM>architecture</EM> is a type of CPU on which an object file isto run. Its name may contain a colon, separating the name of theprocessor family from the name of the particular CPU.</P><P>The command to list valid architecture values is <SAMP>`objdump -i'</SAMP> (thesecond column contains the relevant information).</P><P>Sample values: <SAMP>`m68k:68020'</SAMP>, <SAMP>`mips:3000'</SAMP>, <SAMP>`sparc'</SAMP>.</P><H3><CODE>objdump</CODE> Architecture</H3><P>Ways to specify:</P><OL><LI>command line option: <SAMP>`-m'</SAMP> or <SAMP>`--architecture'</SAMP><LI>deduced from the input file</OL><H3><CODE>objcopy</CODE>, <CODE>nm</CODE>, <CODE>size</CODE>, <CODE>strings</CODE> Architecture</H3><P>Ways to specify:</P><OL><LI>deduced from the input file</OL><H3>Linker Input Architecture</H3><P>Ways to specify:</P><OL><LI>deduced from the input file</OL><H3>Linker Output Architecture</H3><P>Ways to specify:</P><OL><LI>script command <CODE>OUTPUT_ARCH</CODE>(see section `Option Commands' in <CITE>Using LD</CITE>)<LI>the default architecture from the linker output target(see section <A HREF="binutils.html#SEC13">Target Selection</A>)</OL><H2><A NAME="SEC15" HREF="binutils_toc.html#TOC15">Linker emulation selection</A></H2><P>A linker <EM>emulation</EM> is a "personality" of the linker, which givesthe linker default values for the other aspects of the target system.In particular, it consists of</P><UL><LI>the linker script<LI>the target<LI>several "hook" functions that are run at certain stages of the linkingprocess to do special things that some targets require</UL><P>The command to list valid linker emulation values is <SAMP>`ld -V'</SAMP>.</P><P>Sample values: <SAMP>`hp300bsd'</SAMP>, <SAMP>`mipslit'</SAMP>, <SAMP>`sun4'</SAMP>.</P><P>Ways to specify:</P><OL><LI>command line option: <SAMP>`-m'</SAMP>(see section `Options' in <CITE>Using LD</CITE>)<LI>environment variable <CODE>LDEMULATION</CODE><LI>compiled-in <CODE>DEFAULT_EMULATION</CODE> from <TT>`Makefile'</TT>,which comes from <CODE>EMUL</CODE> in <TT>`config/<VAR>target</VAR>.mt'</TT></OL><H1><A NAME="SEC16" HREF="binutils_toc.html#TOC16">Index</A></H1><P>Jump to:<A HREF="#cindex_.">.</A>-<A HREF="#cindex_a">a</A>-<A HREF="#cindex_c">c</A>-<A HREF="#cindex_d">d</A>-<A HREF="#cindex_e">e</A>-<A HREF="#cindex_f">f</A>-<A HREF="#cindex_h">h</A>-<A HREF="#cindex_i">i</A>-<A HREF="#cindex_l">l</A>-<A HREF="#cindex_m">m</A>-<A HREF="#cindex_n">n</A>-<A HREF="#cindex_o">o</A>-<A HREF="#cindex_p">p</A>-<A HREF="#cindex_q">q</A>-<A HREF="#cindex_r">r</A>-<A HREF="#cindex_s">s</A>-<A HREF="#cindex_u">u</A>-<A HREF="#cindex_w">w</A><P><H2><A NAME="cindex_.">.</A></H2><DIR><LI><A HREF="binutils.html#IDX67">.stab</A></DIR><H2><A NAME="cindex_a">a</A></H2><DIR><LI><A HREF="binutils.html#IDX74">all header information, object file</A><LI><A HREF="binutils.html#IDX1">ar</A><LI><A HREF="binutils.html#IDX8"><CODE>ar</CODE> compatibility</A><LI><A HREF="binutils.html#IDX59">architecture</A><LI><A HREF="binutils.html#IDX55">architectures available</A><LI><A HREF="binutils.html#IDX78">archive conte
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -