⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xscale_be-ld.1

📁 Intel ixp425 toolchain
💻 1
📖 第 1 页 / 共 5 页
字号:
Generate relocatable output\-\-\-i.e., generate an output file that can inturn serve as input to \fBld\fR.  This is often called \fIpartiallinking\fR.  As a side effect, in environments that support standard Unixmagic numbers, this option also sets the output file's magic number to\&\f(CW\*(C`OMAGIC\*(C'\fR.If this option is not specified, an absolute file is produced.  Whenlinking \*(C+ programs, this option \fIwill not\fR resolve references toconstructors; to do that, use \fB\-Ur\fR..SpWhen an input file does not have the same format as the output file,partial linking is only supported if that input file does not contain anyrelocations.  Different output formats can have further restrictions; forexample some \f(CW\*(C`a.out\*(C'\fR\-based formats do not support partial linkingwith input files in other formats at all..SpThis option does the same thing as \fB\-i\fR..IP "\fB\-R\fR \fIfilename\fR" 4.IX Item "-R filename".PD 0.IP "\fB\-\-just\-symbols=\fR\fIfilename\fR" 4.IX Item "--just-symbols=filename".PDRead symbol names and their addresses from \fIfilename\fR, but do notrelocate it or include it in the output.  This allows your output fileto refer symbolically to absolute locations of memory defined in otherprograms.  You may use this option more than once..SpFor compatibility with other \s-1ELF\s0 linkers, if the \fB\-R\fR option isfollowed by a directory name, rather than a file name, it is treated asthe \fB\-rpath\fR option..IP "\fB\-s\fR" 4.IX Item "-s".PD 0.IP "\fB\-\-strip\-all\fR" 4.IX Item "--strip-all".PDOmit all symbol information from the output file..IP "\fB\-S\fR" 4.IX Item "-S".PD 0.IP "\fB\-\-strip\-debug\fR" 4.IX Item "--strip-debug".PDOmit debugger symbol information (but not all symbols) from the output file..IP "\fB\-t\fR" 4.IX Item "-t".PD 0.IP "\fB\-\-trace\fR" 4.IX Item "--trace".PDPrint the names of the input files as \fBld\fR processes them..IP "\fB\-T\fR \fIscriptfile\fR" 4.IX Item "-T scriptfile".PD 0.IP "\fB\-\-script=\fR\fIscriptfile\fR" 4.IX Item "--script=scriptfile".PDUse \fIscriptfile\fR as the linker script.  This script replaces\&\fBld\fR's default linker script (rather than adding to it), so\&\fIcommandfile\fR must specify everything necessary to describe theoutput file.    If \fIscriptfile\fR does not exist inthe current directory, \f(CW\*(C`ld\*(C'\fR looks for it in the directoriesspecified by any preceding \fB\-L\fR options.  Multiple \fB\-T\fRoptions accumulate..IP "\fB\-u\fR \fIsymbol\fR" 4.IX Item "-u symbol".PD 0.IP "\fB\-\-undefined=\fR\fIsymbol\fR" 4.IX Item "--undefined=symbol".PDForce \fIsymbol\fR to be entered in the output file as an undefinedsymbol.  Doing this may, for example, trigger linking of additionalmodules from standard libraries.  \fB\-u\fR may be repeated withdifferent option arguments to enter additional undefined symbols.  Thisoption is equivalent to the \f(CW\*(C`EXTERN\*(C'\fR linker script command..IP "\fB\-Ur\fR" 4.IX Item "-Ur"For anything other than \*(C+ programs, this option is equivalent to\&\fB\-r\fR: it generates relocatable output\-\-\-i.e., an output file that can inturn serve as input to \fBld\fR.  When linking \*(C+ programs, \fB\-Ur\fR\&\fIdoes\fR resolve references to constructors, unlike \fB\-r\fR.It does not work to use \fB\-Ur\fR on files that were themselves linkedwith \fB\-Ur\fR; once the constructor table has been built, it cannotbe added to.  Use \fB\-Ur\fR only for the last partial link, and\&\fB\-r\fR for the others..IP "\fB\-\-unique[=\fR\fI\s-1SECTION\s0\fR\fB]\fR" 4.IX Item "--unique[=SECTION]"Creates a separate output section for every input section matching\&\fI\s-1SECTION\s0\fR, or if the optional wildcard \fI\s-1SECTION\s0\fR argument ismissing, for every orphan input section.  An orphan section is one notspecifically mentioned in a linker script.  You may use this optionmultiple times on the command line;  It prevents the normal merging ofinput sections with the same name, overriding output section assignmentsin a linker script..IP "\fB\-v\fR" 4.IX Item "-v".PD 0.IP "\fB\-\-version\fR" 4.IX Item "--version".IP "\fB\-V\fR" 4.IX Item "-V".PDDisplay the version number for \fBld\fR.  The \fB\-V\fR option alsolists the supported emulations..IP "\fB\-x\fR" 4.IX Item "-x".PD 0.IP "\fB\-\-discard\-all\fR" 4.IX Item "--discard-all".PDDelete all local symbols..IP "\fB\-X\fR" 4.IX Item "-X".PD 0.IP "\fB\-\-discard\-locals\fR" 4.IX Item "--discard-locals".PDDelete all temporary local symbols.  For most targets, this is all localsymbols whose names begin with \fBL\fR..IP "\fB\-y\fR \fIsymbol\fR" 4.IX Item "-y symbol".PD 0.IP "\fB\-\-trace\-symbol=\fR\fIsymbol\fR" 4.IX Item "--trace-symbol=symbol".PDPrint the name of each linked file in which \fIsymbol\fR appears.  Thisoption may be given any number of times.  On many systems it is necessaryto prepend an underscore..SpThis option is useful when you have an undefined symbol in your link butdon't know where the reference is coming from..IP "\fB\-Y\fR \fIpath\fR" 4.IX Item "-Y path"Add \fIpath\fR to the default library search path.  This option existsfor Solaris compatibility..IP "\fB\-z\fR \fIkeyword\fR" 4.IX Item "-z keyword"The recognized keywords are \f(CW\*(C`initfirst\*(C'\fR, \f(CW\*(C`interpose\*(C'\fR,\&\f(CW\*(C`loadfltr\*(C'\fR, \f(CW\*(C`nodefaultlib\*(C'\fR, \f(CW\*(C`nodelete\*(C'\fR, \f(CW\*(C`nodlopen\*(C'\fR,\&\f(CW\*(C`nodump\*(C'\fR, \f(CW\*(C`now\*(C'\fR, \f(CW\*(C`origin\*(C'\fR, \f(CW\*(C`combreloc\*(C'\fR, \f(CW\*(C`nocombreloc\*(C'\fR and \f(CW\*(C`nocopyreloc\*(C'\fR.The other keywords areignored for Solaris compatibility. \f(CW\*(C`initfirst\*(C'\fR marks the objectto be initialized first at runtime before any other objects.\&\f(CW\*(C`interpose\*(C'\fR marks the object that its symbol table interposesbefore all symbols but the primary executable. \f(CW\*(C`loadfltr\*(C'\fR marksthe object that its filtees be processed immediately at runtime.\&\f(CW\*(C`nodefaultlib\*(C'\fR marks the object that the search for dependenciesof this object will ignore any default library search paths.\&\f(CW\*(C`nodelete\*(C'\fR marks the object shouldn't be unloaded at runtime.\&\f(CW\*(C`nodlopen\*(C'\fR marks the object not available to \f(CW\*(C`dlopen\*(C'\fR.\&\f(CW\*(C`nodump\*(C'\fR marks the object can not be dumped by \f(CW\*(C`dldump\*(C'\fR.\&\f(CW\*(C`now\*(C'\fR marks the object with the non-lazy runtime binding.\&\f(CW\*(C`origin\*(C'\fR marks the object may contain \f(CW$ORIGIN\fR.\&\f(CW\*(C`defs\*(C'\fR disallows undefined symbols.\&\f(CW\*(C`combreloc\*(C'\fR combines multiple reloc sections and sorts themto make dynamic symbol lookup caching possible.\&\f(CW\*(C`nocombreloc\*(C'\fR disables multiple reloc sections combining.\&\f(CW\*(C`nocopyreloc\*(C'\fR disables production of copy relocs..IP "\fB\-(\fR \fIarchives\fR \fB\-)\fR" 4.IX Item "-( archives -)".PD 0.IP "\fB\-\-start\-group\fR \fIarchives\fR \fB\-\-end\-group\fR" 4.IX Item "--start-group archives --end-group".PDThe \fIarchives\fR should be a list of archive files.  They may beeither explicit file names, or \fB\-l\fR options..SpThe specified archives are searched repeatedly until no new undefinedreferences are created.  Normally, an archive is searched only once inthe order that it is specified on the command line.  If a symbol in thatarchive is needed to resolve an undefined symbol referred to by anobject in an archive that appears later on the command line, the linkerwould not be able to resolve that reference.  By grouping the archives,they all be searched repeatedly until all possible references areresolved..SpUsing this option has a significant performance cost.  It is best to useit only when there are unavoidable circular references between two ormore archives..IP "\fB\-assert\fR \fIkeyword\fR" 4.IX Item "-assert keyword"This option is ignored for SunOS compatibility..IP "\fB\-Bdynamic\fR" 4.IX Item "-Bdynamic".PD 0.IP "\fB\-dy\fR" 4.IX Item "-dy".IP "\fB\-call_shared\fR" 4.IX Item "-call_shared".PDLink against dynamic libraries.  This is only meaningful on platformsfor which shared libraries are supported.  This option is normally thedefault on such platforms.  The different variants of this option arefor compatibility with various systems.  You may use this optionmultiple times on the command line: it affects library searching for\&\fB\-l\fR options which follow it..IP "\fB\-Bgroup\fR" 4.IX Item "-Bgroup"Set the \f(CW\*(C`DF_1_GROUP\*(C'\fR flag in the \f(CW\*(C`DT_FLAGS_1\*(C'\fR entry in the dynamicsection.  This causes the runtime linker to handle lookups in thisobject and its dependencies to be performed only inside the group.\&\fB\-\-no\-undefined\fR is implied.  This option is only meaningful on \s-1ELF\s0platforms which support shared libraries..IP "\fB\-Bstatic\fR" 4.IX Item "-Bstatic".PD 0.IP "\fB\-dn\fR" 4.IX Item "-dn".IP "\fB\-non_shared\fR" 4.IX Item "-non_shared".IP "\fB\-static\fR" 4.IX Item "-static".PDDo not link against shared libraries.  This is only meaningful onplatforms for which shared libraries are supported.  The differentvariants of this option are for compatibility with various systems.  Youmay use this option multiple times on the command line: it affectslibrary searching for \fB\-l\fR options which follow it..IP "\fB\-Bsymbolic\fR" 4.IX Item "-Bsymbolic"When creating a shared library, bind references to global symbols to thedefinition within the shared library, if any.  Normally, it is possiblefor a program linked against a shared library to override the definitionwithin the shared library.  This option is only meaningful on \s-1ELF\s0platforms which support shared libraries..IP "\fB\-\-check\-sections\fR" 4.IX Item "--check-sections".PD 0.IP "\fB\-\-no\-check\-sections\fR" 4.IX Item "--no-check-sections".PDAsks the linker \fInot\fR to check section addresses after they havebeen assigned to see if there any overlaps.  Normally the linker willperform this check, and if it finds any overlaps it will producesuitable error messages.  The linker does know about, and does makeallowances for sections in overlays.  The default behaviour can berestored by using the command line switch \fB\-\-check\-sections\fR..IP "\fB\-\-cref\fR" 4.IX Item "--cref"Output a cross reference table.  If a linker map file is beinggenerated, the cross reference table is printed to the map file.Otherwise, it is printed on the standard output..SpThe format of the table is intentionally simple, so that it may beeasily processed by a script if necessary.  The symbols are printed out,sorted by name.  For each symbol, a list of file names is given.  If thesymbol is defined, the first file listed is the location of thedefinition.  The remaining files contain references to the symbol..IP "\fB\-\-no\-define\-common\fR" 4.IX Item "--no-define-common"This option inhibits the assignment of addresses to common symbols.The script command \f(CW\*(C`INHIBIT_COMMON_ALLOCATION\*(C'\fR has the same effect..SpThe \fB\-\-no\-define\-common\fR option allows decouplingthe decision to assign addresses to Common symbols from the choiceof the output file type; otherwise a non-Relocatable output typeforces assigning addresses to Common symbols.Using \fB\-\-no\-define\-common\fR allows Common symbols that are referencedfrom a shared library to be assigned addresses only in the main program.This eliminates the unused duplicate space in the shared library,and also prevents any possible confusion over resolving to the wrongduplicate when there are many dynamic modules with specialized searchpaths for runtime symbol resolution..IP "\fB\-\-defsym\fR \fIsymbol\fR\fB=\fR\fIexpression\fR" 4.IX Item "--defsym symbol=expression"Create a global symbol in the output file, containing the absoluteaddress given by \fIexpression\fR.  You may use this option as manytimes as necessary to define multiple symbols in the command line.  Alimited form of arithmetic is supported for the \fIexpression\fR in thiscontext: you may give a hexadecimal constant or the name of an existingsymbol, or use \f(CW\*(C`+\*(C'\fR and \f(CW\*(C`\-\*(C'\fR to add or subtract hexadecimalconstants or symbols.  If you need more elaborate expressions, considerusing the linker command language from a script.  \fINote:\fR there should be no whitespace between \fIsymbol\fR, the equals sign (``\fB=\fR''), and\&\fIexpression\fR..IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4.IX Item "--demangle[=style]".PD 0.IP "\fB\-\-no\-demangle\fR" 4.IX Item "--no-demangle".PDThese options control whether to demangle symbol names in error messagesand other output.  When the linker is told to demangle, it tries topresent symbol names in a readable fashion: it strips leadingunderscores if they are used by the object file format, and converts \*(C+mangled symbol names into user readable names.  Different compilers havedifferent mangling styles.  The optional demangling style argument can be usedto choose an appropriate demangling style for your compiler.  The linker willdemangle by default unless the environment variable \fB\s-1COLLECT_NO_DEMANGLE\s0\fRis set.  These options may be used to override the default..IP "\fB\-\-dynamic\-linker\fR \fIfile\fR" 4

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -