Polecenie ld
Opcje wykonania ld
w konsoli
If ld is configured to accept more than one kind of object file, this option can be used to specify the input format. format should be a GNU Binary File Descriptor (BFD), as described in the BFD library. Use objdump -i to list available formats.
Link with dynamic libraries.
Force the assignment of space to common symbols.
Create the global symbol with the value expression.
Force demangling of symbol names. Optionally set the demangling style. Turn off demangling with -nodemangle.
Set symbol as the address of the output file's entry point.
Set the DT_AUXILIARY field of ELF shared object to name.
Set the DT_FINI field of ELF shared object to the address of function name. The default function is _fini.
Set the DT_SONAME field of ELF shared object to name.
Print help message, then exit.
Produce a linkable output file; attempt to set its magic number to OMAGIC.
Set the DT_INIT field of ELF shared object to the address of function name. The default function is _init.
Include the archive file arch in the list of files to link.
Emulate linker. List supported emulations with the -V option.
Make text read-only; attempt to set NMAGIC.
Place output in output, instead of in a.out.
Specify output format.
Retain relocation sections and contents in linked executables.
Produce a linkable output file; attempt to set its magic number to OMAGIC.
Add directory dir to the runtime library search path. Ignore additional paths normally read from the LD_RUN_PATH environment variable.
Specify path to search for shared libraries required by another shared library. The dirs argument can be a single directory, or multiple directories separated by colons. This overrides search paths specified in shared libraries themselves.
Do not include any symbol information in output.
Create a shared library.
Do not link with shared libraries.
Do not sort global common symbols by size.
Print each input file's name as it is processed.
Print target-specific options, then exit.
Force symbol to be undefined.
Show version number.
Print information about ld; print the names of input files while attempting to open them.
Warn when encountering common symbols combined with other constructs.
Provide only one warning per undefined symbol.
With -s or -S, delete all local symbols. These generally begin with L.
Mark the object for special behavior specified by keyword. ld recognizes the following keywords:
combreloc Object combines and sorts multiple relocation sections for dynamic symbol lookup caching.
defs Disallow undefined symbols.
initfirst Initialize object first at runtime.
interpose Interpose object's symbol table before all but the primary executable's symbol table.
loadfltr Process object's filter immediately at runtime.
multidefs Allow multiple definitions of a single symbol. Use the first definition.
nocombreloc Disable combining multiple relocation sections.
nocopyreloc Disable copy relocation.
nodefaultlib Ignore default library search path when seeking dependencies for object.
nodelete Do not unload object at runtime.
nodlopen Object is not available to dlopen.
nodump Object cannot be dumped by dldump.
now Non-lazy runtime binding.
origin Object may contain $ORIGIN.
Add all symbols to dynamic symbol table, not just those referenced by linked objects.
Link big-endian objects.
Link little-endian objects.
Set DT_FILTER field of ELF shared object to name.
Search directory dir before standard search directories (this option must precede the -l option that searches that directory).
Display a link map on standard output.
Print a link map to file.
Allow reading of and writing to both data and text. Mark ouput if it supports Unix magic numbers. Do not page-align data.
Optimize. level should be 1, 2, 3, or 0. The default is 1. 0 turns off optimization; 3 optimizes the most.
Obtain symbol names and addresses from file, but suppress relocation of file and its inclusion in output.
Do not include debugger symbol information in output.
Execute script file instead of the default linker script.
Begin bss segment of output at address.
Begin data segment of output at address.
Begin text segment of output at address.
Synonymous with -r except when linking C++ programs, where it resolves constructor references.
With -s or -S, delete local symbols beginning with L.
Show version number and emulation linkers for -m option.
Przykłady ld działanie w Słownik polecenie L
- Przykład LD użycie :
- Jak użyć of filenames and print matches. Matches include all files that contain pattern unless pattern includes metacharacters, in which case locate requires an exact match. *, ?, [, and ] are treated co znaczy.
- Przykład LD użycie :
- Jak użyć administration command. Configure CUPS printer queues. The command requires one of the following options: -d , -p , or -x . When a queue is configured to require a password, the lpadmin command will krzyżówka.
- Przykład LD użycie :
- Jak użyć administration command. Examine the libraries in the given directories , /etc/ld.so.conf , /usr/lib , and /lib ; update links and cache where necessary. Usually run in startup files or after the co to jest.
- Przykład LD użycie :
- Jak użyć Display a list of recent bad login attempts (from the /var/log/btmp file). Accepts the same option flags and arguments as last słownik.
- Przykład LD użycie :
- Jak użyć login asks for a username (name can be supplied on the command line) and password (if appropriate). If successful, login updates accounting files, sets various environment variables, notifies users czym jest.