📄 xscale_be-objcopy.1
字号:
.PDDo not copy symbol \fIsymbolname\fR from the source file. This optionmay be given more than once..IP "\fB\-G\fR \fIsymbolname\fR" 4.IX Item "-G symbolname".PD 0.IP "\fB\-\-keep\-global\-symbol=\fR\fIsymbolname\fR" 4.IX Item "--keep-global-symbol=symbolname".PDKeep only symbol \fIsymbolname\fR global. Make all other symbols localto the file, so that they are not visible externally. This option maybe given more than once..IP "\fB\-L\fR \fIsymbolname\fR" 4.IX Item "-L symbolname".PD 0.IP "\fB\-\-localize\-symbol=\fR\fIsymbolname\fR" 4.IX Item "--localize-symbol=symbolname".PDMake symbol \fIsymbolname\fR local to the file, so that it is notvisible externally. This option may be given more than once..IP "\fB\-W\fR \fIsymbolname\fR" 4.IX Item "-W symbolname".PD 0.IP "\fB\-\-weaken\-symbol=\fR\fIsymbolname\fR" 4.IX Item "--weaken-symbol=symbolname".PDMake symbol \fIsymbolname\fR weak. This option may be given more than once..IP "\fB\-x\fR" 4.IX Item "-x".PD 0.IP "\fB\-\-discard\-all\fR" 4.IX Item "--discard-all".PDDo not copy non-global symbols from the source file..IP "\fB\-X\fR" 4.IX Item "-X".PD 0.IP "\fB\-\-discard\-locals\fR" 4.IX Item "--discard-locals".PDDo not copy compiler-generated local symbols.(These usually start with \fBL\fR or \fB.\fR.).IP "\fB\-b\fR \fIbyte\fR" 4.IX Item "-b byte".PD 0.IP "\fB\-\-byte=\fR\fIbyte\fR" 4.IX Item "--byte=byte".PDKeep only every \fIbyte\fRth byte of the input file (header data is notaffected). \fIbyte\fR can be in the range from 0 to \fIinterleave\fR\-1,where \fIinterleave\fR is given by the \fB\-i\fR or \fB\-\-interleave\fRoption, or the default of 4. This option is useful for creating filesto program \s-1ROM\s0. It is typically used with an \f(CW\*(C`srec\*(C'\fR outputtarget..IP "\fB\-i\fR \fIinterleave\fR" 4.IX Item "-i interleave".PD 0.IP "\fB\-\-interleave=\fR\fIinterleave\fR" 4.IX Item "--interleave=interleave".PDOnly copy one out of every \fIinterleave\fR bytes. Select which byte tocopy with the \fB\-b\fR or \fB\-\-byte\fR option. The default is 4.\&\fBobjcopy\fR ignores this option if you do not specify either \fB\-b\fR or\&\fB\-\-byte\fR..IP "\fB\-p\fR" 4.IX Item "-p".PD 0.IP "\fB\-\-preserve\-dates\fR" 4.IX Item "--preserve-dates".PDSet the access and modification dates of the output file to be the sameas those of the input file..IP "\fB\-\-debugging\fR" 4.IX Item "--debugging"Convert debugging information, if possible. This is not the defaultbecause only certain debugging formats are supported, and theconversion process can be time consuming..IP "\fB\-\-gap\-fill\fR \fIval\fR" 4.IX Item "--gap-fill val"Fill gaps between sections with \fIval\fR. This operation applies tothe \fIload address\fR (\s-1LMA\s0) of the sections. It is done by increasingthe size of the section with the lower address, and filling in the extraspace created with \fIval\fR..IP "\fB\-\-pad\-to\fR \fIaddress\fR" 4.IX Item "--pad-to address"Pad the output file up to the load address \fIaddress\fR. This isdone by increasing the size of the last section. The extra space isfilled in with the value specified by \fB\-\-gap\-fill\fR (default zero)..IP "\fB\-\-set\-start\fR \fIval\fR" 4.IX Item "--set-start val"Set the start address of the new file to \fIval\fR. Not all object fileformats support setting the start address..IP "\fB\-\-change\-start\fR \fIincr\fR" 4.IX Item "--change-start incr".PD 0.IP "\fB\-\-adjust\-start\fR \fIincr\fR" 4.IX Item "--adjust-start incr".PDChange the start address by adding \fIincr\fR. Not all object fileformats support setting the start address..IP "\fB\-\-change\-addresses\fR \fIincr\fR" 4.IX Item "--change-addresses incr".PD 0.IP "\fB\-\-adjust\-vma\fR \fIincr\fR" 4.IX Item "--adjust-vma incr".PDChange the \s-1VMA\s0 and \s-1LMA\s0 addresses of all sections, as well as the startaddress, by adding \fIincr\fR. Some object file formats do not permitsection addresses to be changed arbitrarily. Note that this does notrelocate the sections; if the program expects sections to be loaded at acertain address, and this option is used to change the sections suchthat they are loaded at a different address, the program may fail. .IP "\fB\-\-change\-section\-address\fR \fIsection\fR\fB{=,+,\-}\fR\fIval\fR" 4.IX Item "--change-section-address section{=,+,-}val".PD 0.IP "\fB\-\-adjust\-section\-vma\fR \fIsection\fR\fB{=,+,\-}\fR\fIval\fR" 4.IX Item "--adjust-section-vma section{=,+,-}val".PDSet or change both the \s-1VMA\s0 address and the \s-1LMA\s0 address of the named\&\fIsection\fR. If \fB=\fR is used, the section address is set to\&\fIval\fR. Otherwise, \fIval\fR is added to or subtracted from thesection address. See the comments under \fB\-\-change\-addresses\fR,above. If \fIsection\fR does not exist in the input file, a warning willbe issued, unless \fB\-\-no\-change\-warnings\fR is used..IP "\fB\-\-change\-section\-lma\fR \fIsection\fR\fB{=,+,\-}\fR\fIval\fR" 4.IX Item "--change-section-lma section{=,+,-}val"Set or change the \s-1LMA\s0 address of the named \fIsection\fR. The \s-1LMA\s0address is the address where the section will be loaded into memory atprogram load time. Normally this is the same as the \s-1VMA\s0 address, whichis the address of the section at program run time, but on some systems,especially those where a program is held in \s-1ROM\s0, the two can bedifferent. If \fB=\fR is used, the section address is set to\&\fIval\fR. Otherwise, \fIval\fR is added to or subtracted from thesection address. See the comments under \fB\-\-change\-addresses\fR,above. If \fIsection\fR does not exist in the input file, a warningwill be issued, unless \fB\-\-no\-change\-warnings\fR is used. .IP "\fB\-\-change\-section\-vma\fR \fIsection\fR\fB{=,+,\-}\fR\fIval\fR" 4.IX Item "--change-section-vma section{=,+,-}val"Set or change the \s-1VMA\s0 address of the named \fIsection\fR. The \s-1VMA\s0address is the address where the section will be located once theprogram has started executing. Normally this is the same as the \s-1LMA\s0address, which is the address where the section will be loaded intomemory, but on some systems, especially those where a program is held in\&\s-1ROM\s0, the two can be different. If \fB=\fR is used, the section addressis set to \fIval\fR. Otherwise, \fIval\fR is added to or subtractedfrom the section address. See the comments under\&\fB\-\-change\-addresses\fR, above. If \fIsection\fR does not exist inthe input file, a warning will be issued, unless\&\fB\-\-no\-change\-warnings\fR is used. .IP "\fB\-\-change\-warnings\fR" 4.IX Item "--change-warnings".PD 0.IP "\fB\-\-adjust\-warnings\fR" 4.IX Item "--adjust-warnings".PDIf \fB\-\-change\-section\-address\fR or \fB\-\-change\-section\-lma\fR or\&\fB\-\-change\-section\-vma\fR is used, and the named section does notexist, issue a warning. This is the default. .IP "\fB\-\-no\-change\-warnings\fR" 4.IX Item "--no-change-warnings".PD 0.IP "\fB\-\-no\-adjust\-warnings\fR" 4.IX Item "--no-adjust-warnings".PDDo not issue a warning if \fB\-\-change\-section\-address\fR or\&\fB\-\-adjust\-section\-lma\fR or \fB\-\-adjust\-section\-vma\fR is used, evenif the named section does not exist. .IP "\fB\-\-set\-section\-flags\fR \fIsection\fR\fB=\fR\fIflags\fR" 4.IX Item "--set-section-flags section=flags"Set the flags for the named section. The \fIflags\fR argument is acomma separated string of flag names. The recognized names are\&\fBalloc\fR, \fBcontents\fR, \fBload\fR, \fBnoload\fR,\&\fBreadonly\fR, \fBcode\fR, \fBdata\fR, \fBrom\fR, \fBshare\fR, and\&\fBdebug\fR. You can set the \fBcontents\fR flag for a section whichdoes not have contents, but it is not meaningful to clear the\&\fBcontents\fR flag of a section which does have contents\*(--just removethe section instead. Not all flags are meaningful for all object fileformats..IP "\fB\-\-add\-section\fR \fIsectionname\fR\fB=\fR\fIfilename\fR" 4.IX Item "--add-section sectionname=filename"Add a new section named \fIsectionname\fR while copying the file. Thecontents of the new section are taken from the file \fIfilename\fR. Thesize of the section will be the size of the file. This option onlyworks on file formats which can support sections with arbitrary names..IP "\fB\-\-rename\-section\fR \fIoldname\fR\fB=\fR\fInewname\fR\fB[,\fR\fIflags\fR\fB]\fR" 4.IX Item "--rename-section oldname=newname[,flags]"Rename a section from \fIoldname\fR to \fInewname\fR, optionallychanging the section's flags to \fIflags\fR in the process. This hasthe advantage over usng a linker script to perform the rename in thatthe output stays as an object file and does not become a linkedexecutable..SpThis option is particularly helpful when the input format is binary,since this will always create a section called .data. If for example,you wanted instead to create a section called .rodata containing binarydata you could use the following command line to achieve it:.Sp.Vb 3\& objcopy -I binary -O <output_format> -B <architecture> \e\& --rename-section .data=.rodata,alloc,load,readonly,data,contents \e\& <input_binary_file> <output_object_file>.Ve.IP "\fB\-\-change\-leading\-char\fR" 4.IX Item "--change-leading-char"Some object file formats use special characters at the start ofsymbols. The most common such character is underscore, which compilersoften add before every symbol. This option tells \fBobjcopy\fR tochange the leading character of every symbol when it converts betweenobject file formats. If the object file formats use the same leadingcharacter, this option has no effect. Otherwise, it will add acharacter, or remove a character, or change a character, asappropriate..IP "\fB\-\-remove\-leading\-char\fR" 4.IX Item "--remove-leading-char"If the first character of a global symbol is a special symbol leadingcharacter used by the object file format, remove the character. Themost common symbol leading character is underscore. This option willremove a leading underscore from all global symbols. This can be usefulif you want to link together objects of different file formats withdifferent conventions for symbol names. This is different from\&\fB\-\-change\-leading\-char\fR because it always changes the symbol namewhen appropriate, regardless of the object file format of the outputfile..IP "\fB\-\-srec\-len=\fR\fIival\fR" 4.IX Item "--srec-len=ival"Meaningful only for srec output. Set the maximum length of the Srecordsbeing produced to \fIival\fR. This length covers both address, data andcrc fields..IP "\fB\-\-srec\-forceS3\fR" 4.IX Item "--srec-forceS3"Meaningful only for srec output. Avoid generation of S1/S2 records, creating S3\-only record format..IP "\fB\-\-redefine\-sym\fR \fIold\fR\fB=\fR\fInew\fR" 4.IX Item "--redefine-sym old=new"Change the name of a symbol \fIold\fR, to \fInew\fR. This can be usefulwhen one is trying link two things together for which you have nosource, and there are name collisions..IP "\fB\-\-weaken\fR" 4.IX Item "--weaken"Change all global symbols in the file to be weak. This can be usefulwhen building an object which will be linked against other objects usingthe \fB\-R\fR option to the linker. This option is only effective whenusing an object file format which supports weak symbols..IP "\fB\-\-keep\-symbols=\fR\fIfilename\fR" 4.IX Item "--keep-symbols=filename"Apply \fB\-\-keep\-symbol\fR option to each symbol listed in the file\&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbolname per line. Line comments may be introduced by the hash character.This option may be given more than once..IP "\fB\-\-strip\-symbols=\fR\fIfilename\fR" 4.IX Item "--strip-symbols=filename"Apply \fB\-\-strip\-symbol\fR option to each symbol listed in the file\&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbolname per line. Line comments may be introduced by the hash character.This option may be given more than once..IP "\fB\-\-keep\-global\-symbols=\fR\fIfilename\fR" 4.IX Item "--keep-global-symbols=filename"Apply \fB\-\-keep\-global\-symbol\fR option to each symbol listed in thefile \fIfilename\fR. \fIfilename\fR is simply a flat file, with onesymbol name per line. Line comments may be introduced by the hashcharacter. This option may be given more than once..IP "\fB\-\-localize\-symbols=\fR\fIfilename\fR" 4.IX Item "--localize-symbols=filename"Apply \fB\-\-localize\-symbol\fR option to each symbol listed in the file\&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbolname per line. Line comments may be introduced by the hash character.This option may be given more than once..IP "\fB\-\-weaken\-symbols=\fR\fIfilename\fR" 4.IX Item "--weaken-symbols=filename"Apply \fB\-\-weaken\-symbol\fR option to each symbol listed in the file\&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbolname per line. Line comments may be introduced by the hash character.This option may be given more than once..IP "\fB\-\-alt\-machine\-code=\fR\fIindex\fR" 4.IX Item "--alt-machine-code=index"If the output architecture has alternate machine codes, use the\&\fIindex\fRth code instead of the default one. This is useful in casea machine is assigned an official code and the tool-chain adopts the new code, but other applications still depend on the original codebeing used..IP "\fB\-V\fR" 4.IX Item "-V".PD 0.IP "\fB\-\-version\fR" 4.IX Item "--version".PDShow the version number of \fBobjcopy\fR..IP "\fB\-v\fR" 4.IX Item "-v".PD 0.IP "\fB\-\-verbose\fR" 4.IX Item "--verbose".PDVerbose output: list all object files modified. In the case ofarchives, \fBobjcopy \-V\fR lists all members of the archive..IP "\fB\-\-help\fR" 4.IX Item "--help"Show a summary of the options to \fBobjcopy\fR..SH "SEE ALSO".IX Header "SEE ALSO"\&\fIld\fR\|(1), \fIobjdump\fR\|(1), and the Info entries for \fIbinutils\fR..SH "COPYRIGHT".IX Header "COPYRIGHT"Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002 Free Software Foundation, Inc..PPPermission is granted to copy, distribute and/or modify this documentunder the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1or any later version published by the Free Software Foundation;with no Invariant Sections, with no Front-Cover Texts, and with noBack-Cover Texts. A copy of the license is included in thesection entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -