📄 xscale_be-objcopy.1
字号:
.\" Automatically generated by Pod::Man v1.3, Pod::Parser v1.13.\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings. \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote. | will give a.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'.\" expand to `' in nroff, nothing in troff, for use with C<>..tr \(*W-|\(bv\*(Tr.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\. ds -- \(*W-. ds PI pi. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch. ds L" "". ds R" "". ds C` "". ds C' ""'br\}.el\{\. ds -- \|\(em\|. ds PI \(*p. ds L" ``. ds R" '''br\}.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD. Of course, you'll have to process the.\" output yourself in some meaningful fashion..if \nF \{\. de IX. tm Index:\\$1\t\\n%\t"\\$2"... nr % 0. rr F.\}.\".\" For nroff, turn off justification. Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..hy 0.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear. Run. Save yourself. No user-serviceable parts.. \" fudge factors for nroff and troff.if n \{\. ds #H 0. ds #V .8m. ds #F .3m. ds #[ \f1. ds #] \fP.\}.if t \{\. ds #H ((1u-(\\\\n(.fu%2u))*.13m). ds #V .6m. ds #F 0. ds #[ \&. ds #] \&.\}. \" simple accents for nroff and troff.if n \{\. ds ' \&. ds ` \&. ds ^ \&. ds , \&. ds ~ ~. ds /.\}.if t \{\. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u". ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}. \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E. \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'. \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\. ds : e. ds 8 ss. ds o a. ds d- d\h'-1'\(ga. ds D- D\h'-1'\(hy. ds th \o'bp'. ds Th \o'LP'. ds ae ae. ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "OBJCOPY 1".TH OBJCOPY 1 "2002-05-14" "binutils-2.12.1" "GNU Development Tools".UC.SH "NAME"objcopy \- copy and translate object files.SH "SYNOPSIS".IX Header "SYNOPSIS"objcopy [\fB\-F\fR \fIbfdname\fR|\fB\-\-target=\fR\fIbfdname\fR] [\fB\-I\fR \fIbfdname\fR|\fB\-\-input\-target=\fR\fIbfdname\fR] [\fB\-O\fR \fIbfdname\fR|\fB\-\-output\-target=\fR\fIbfdname\fR] [\fB\-B\fR \fIbfdarch\fR|\fB\-\-binary\-architecture=\fR\fIbfdarch\fR] [\fB\-S\fR|\fB\-\-strip\-all\fR] [\fB\-g\fR|\fB\-\-strip\-debug\fR] [\fB\-K\fR \fIsymbolname\fR|\fB\-\-keep\-symbol=\fR\fIsymbolname\fR] [\fB\-N\fR \fIsymbolname\fR|\fB\-\-strip\-symbol=\fR\fIsymbolname\fR] [\fB\-G\fR \fIsymbolname\fR|\fB\-\-keep\-global\-symbol=\fR\fIsymbolname\fR] [\fB\-L\fR \fIsymbolname\fR|\fB\-\-localize\-symbol=\fR\fIsymbolname\fR] [\fB\-W\fR \fIsymbolname\fR|\fB\-\-weaken\-symbol=\fR\fIsymbolname\fR] [\fB\-x\fR|\fB\-\-discard\-all\fR] [\fB\-X\fR|\fB\-\-discard\-locals\fR] [\fB\-b\fR \fIbyte\fR|\fB\-\-byte=\fR\fIbyte\fR] [\fB\-i\fR \fIinterleave\fR|\fB\-\-interleave=\fR\fIinterleave\fR] [\fB\-j\fR \fIsectionname\fR|\fB\-\-only\-section=\fR\fIsectionname\fR] [\fB\-R\fR \fIsectionname\fR|\fB\-\-remove\-section=\fR\fIsectionname\fR] [\fB\-p\fR|\fB\-\-preserve\-dates\fR] [\fB\-\-debugging\fR] [\fB\-\-gap\-fill=\fR\fIval\fR] [\fB\-\-pad\-to=\fR\fIaddress\fR] [\fB\-\-set\-start=\fR\fIval\fR] [\fB\-\-adjust\-start=\fR\fIincr\fR] [\fB\-\-change\-addresses=\fR\fIincr\fR] [\fB\-\-change\-section\-address\fR \fIsection\fR{=,+,\-}\fIval\fR] [\fB\-\-change\-section\-lma\fR \fIsection\fR{=,+,\-}\fIval\fR] [\fB\-\-change\-section\-vma\fR \fIsection\fR{=,+,\-}\fIval\fR] [\fB\-\-change\-warnings\fR] [\fB\-\-no\-change\-warnings\fR] [\fB\-\-set\-section\-flags\fR \fIsection\fR=\fIflags\fR] [\fB\-\-add\-section\fR \fIsectionname\fR=\fIfilename\fR] [\fB\-\-rename\-section\fR \fIoldname\fR=\fInewname\fR[,\fIflags\fR]] [\fB\-\-change\-leading\-char\fR ] [\fB\-\-remove\-leading\-char\fR] [\fB\-\-srec\-len=\fR\fIival\fR ] [\fB\-\-srec\-forceS3\fR] [\fB\-\-redefine\-sym\fR \fIold\fR=\fInew\fR ] [\fB\-\-weaken\fR] [\fB\-\-keep\-symbols=\fR\fIfilename\fR] [\fB\-\-strip\-symbols=\fR\fIfilename\fR] [\fB\-\-keep\-global\-symbols=\fR\fIfilename\fR] [\fB\-\-localize\-symbols=\fR\fIfilename\fR] [\fB\-\-weaken\-symbols=\fR\fIfilename\fR] [\fB\-\-alt\-machine\-code=\fR\fIindex\fR] [\fB\-v\fR|\fB\-\-verbose\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fB\-\-help\fR] \fIinfile\fR [\fIoutfile\fR].SH "DESCRIPTION".IX Header "DESCRIPTION"The \s-1GNU\s0 \fBobjcopy\fR utility copies the contents of an objectfile to another. \fBobjcopy\fR uses the \s-1GNU\s0 \s-1BFD\s0 Library toread and write the object files. It can write the destination objectfile in a format different from that of the source object file. Theexact behavior of \fBobjcopy\fR is controlled by command-line options.Note that \fBobjcopy\fR should be able to copy a fully linked filebetween any two formats. However, copying a relocatable object filebetween any two formats may not work as expected..PP\&\fBobjcopy\fR creates temporary files to do its translations anddeletes them afterward. \fBobjcopy\fR uses \s-1BFD\s0 to do all itstranslation work; it has access to all the formats described in \s-1BFD\s0and thus is able to recognize most formats without being toldexplicitly. .PP\&\fBobjcopy\fR can be used to generate S\-records by using an outputtarget of \fBsrec\fR (e.g., use \fB\-O srec\fR)..PP\&\fBobjcopy\fR can be used to generate a raw binary file by using anoutput target of \fBbinary\fR (e.g., use \fB\-O binary\fR). When\&\fBobjcopy\fR generates a raw binary file, it will essentially producea memory dump of the contents of the input object file. All symbols andrelocation information will be discarded. The memory dump will start atthe load address of the lowest section copied into the output file..PPWhen generating an S\-record or a raw binary file, it may be helpful touse \fB\-S\fR to remove sections containing debugging information. Insome cases \fB\-R\fR will be useful to remove sections which containinformation that is not needed by the binary file..PPNote \- \fBobjcopy\fR is not able to change the endianness of its inputfiles. If the input format has an endianness, (some formats do not),\&\fBobjcopy\fR can only copy the inputs into file formats that have thesame endianness or which have no endianness (eg \fBsrec\fR)..SH "OPTIONS".IX Header "OPTIONS".IP "\fIinfile\fR" 4.IX Item "infile".PD 0.IP "\fIoutfile\fR" 4.IX Item "outfile".PDThe input and output files, respectively.If you do not specify \fIoutfile\fR, \fBobjcopy\fR creates atemporary file and destructively renames the result withthe name of \fIinfile\fR..IP "\fB\-I\fR \fIbfdname\fR" 4.IX Item "-I bfdname".PD 0.IP "\fB\-\-input\-target=\fR\fIbfdname\fR" 4.IX Item "--input-target=bfdname".PDConsider the source file's object format to be \fIbfdname\fR, rather thanattempting to deduce it. .IP "\fB\-O\fR \fIbfdname\fR" 4.IX Item "-O bfdname".PD 0.IP "\fB\-\-output\-target=\fR\fIbfdname\fR" 4.IX Item "--output-target=bfdname".PDWrite the output file using the object format \fIbfdname\fR..IP "\fB\-F\fR \fIbfdname\fR" 4.IX Item "-F bfdname".PD 0.IP "\fB\-\-target=\fR\fIbfdname\fR" 4.IX Item "--target=bfdname".PDUse \fIbfdname\fR as the object format for both the input and the outputfile; i.e., simply transfer data from source to destination with notranslation. .IP "\fB\-B\fR \fIbfdarch\fR" 4.IX Item "-B bfdarch".PD 0.IP "\fB\-\-binary\-architecture=\fR\fIbfdarch\fR" 4.IX Item "--binary-architecture=bfdarch".PDUseful when transforming a raw binary input file into an object file.In this case the output architecture can be set to \fIbfdarch\fR. Thisoption will be ignored if the input file has a known \fIbfdarch\fR. Youcan access this binary data inside a program by referencing the specialsymbols that are created by the conversion process. These symbols arecalled _binary_\fIobjfile\fR_start, _binary_\fIobjfile\fR_end and_binary_\fIobjfile\fR_size. e.g. you can transform a picture file intoan object file and then access it in your code using these symbols. .IP "\fB\-j\fR \fIsectionname\fR" 4.IX Item "-j sectionname".PD 0.IP "\fB\-\-only\-section=\fR\fIsectionname\fR" 4.IX Item "--only-section=sectionname".PDCopy only the named section from the input file to the output file.This option may be given more than once. Note that using this optioninappropriately may make the output file unusable..IP "\fB\-R\fR \fIsectionname\fR" 4.IX Item "-R sectionname".PD 0.IP "\fB\-\-remove\-section=\fR\fIsectionname\fR" 4.IX Item "--remove-section=sectionname".PDRemove any section named \fIsectionname\fR from the output file. Thisoption may be given more than once. Note that using this optioninappropriately may make the output file unusable..IP "\fB\-S\fR" 4.IX Item "-S".PD 0.IP "\fB\-\-strip\-all\fR" 4.IX Item "--strip-all".PDDo not copy relocation and symbol information from the source file..IP "\fB\-g\fR" 4.IX Item "-g".PD 0.IP "\fB\-\-strip\-debug\fR" 4.IX Item "--strip-debug".PDDo not copy debugging symbols from the source file..IP "\fB\-\-strip\-unneeded\fR" 4.IX Item "--strip-unneeded"Strip all symbols that are not needed for relocation processing..IP "\fB\-K\fR \fIsymbolname\fR" 4.IX Item "-K symbolname".PD 0.IP "\fB\-\-keep\-symbol=\fR\fIsymbolname\fR" 4.IX Item "--keep-symbol=symbolname".PDCopy only symbol \fIsymbolname\fR from the source file. This option maybe given more than once..IP "\fB\-N\fR \fIsymbolname\fR" 4.IX Item "-N symbolname".PD 0.IP "\fB\-\-strip\-symbol=\fR\fIsymbolname\fR" 4.IX Item "--strip-symbol=symbolname"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -