1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.39.3.
2 .TH GOLD "1" "May 2011" "gold (GNU Binutils for Debian 2.21.51.20110421) 1.11" "User Commands"
4 gold \- manual page for gold (GNU Binutils for Debian 2.21.51.20110421) 1.11
7 [\fIoptions\fR] \fIfile\fR...
11 Report usage information
13 \fB\-v\fR, \fB\-\-version\fR
14 Report version information
17 Report version and target information
22 \fB\-\-no\-add\-needed\fR
23 Do not copy DT_NEEDED tags from shared libraries
25 \fB\-\-allow\-multiple\-definition\fR Allow multiple definitions of symbols
27 \fB\-\-no\-allow\-multiple\-definition\fR
28 Do not allow multiple definitions
30 \fB\-\-allow\-shlib\-undefined\fR
31 Allow unresolved references in shared libraries
33 \fB\-\-no\-allow\-shlib\-undefined\fR
34 Do not allow unresolved references in shared libraries
37 Only set DT_NEEDED for shared libraries if used
39 \fB\-\-no\-as\-needed\fR
40 Always DT_NEEDED for shared libraries
42 \fB\-assert\fR [ignored]
45 \fB\-b\fR [elf,binary], \fB\-\-format\fR [elf,binary]
48 \fB\-Bdynamic\fR \fB\-l\fR searches for shared libraries
50 \fB\-Bstatic\fR \fB\-l\fR does not search for shared libraries
53 alias for \fB\-Bdynamic\fR
56 alias for \fB\-Bstatic\fR
59 Bind defined symbols locally
61 \fB\-Bsymbolic\-functions\fR
62 Bind defined function symbols locally
64 \fB\-\-build\-id\fR [=STYLE]
65 Generate build ID note
67 \fB\-\-check\-sections\fR
68 Check segment addresses for overlaps (default)
70 \fB\-\-no\-check\-sections\fR
71 Do not check segment addresses for overlaps
73 \fB\-\-compress\-debug\-sections\fR [none,zlib]
74 Compress .debug_* sections in the output file
76 \fB\-\-copy\-dt\-needed\-entries\fR
79 \fB\-\-no\-copy\-dt\-needed\-entries\fR Do not copy DT_NEEDED tags from shared libraries
82 Output cross reference table
85 Do not output cross reference table
87 \fB\-d\fR, \fB\-\-define\-common\fR
90 \fB\-\-no\-define\-common\fR
91 Do not define common symbols
99 \fB\-\-debug\fR [all,files,script,task][,...]
102 \fB\-\-defsym\fR SYMBOL=EXPRESSION
105 \fB\-\-demangle\fR [=STYLE]
106 Demangle C++ symbols in log messages
108 \fB\-\-no\-demangle\fR
109 Do not demangle C++ symbols in log messages
111 \fB\-\-detect\-odr\-violations\fR
112 Look for violations of the C++ One Definition Rule
114 \fB\-\-no\-detect\-odr\-violations\fR
115 Do not look for violations of the C++ One Definition Rule
117 \fB\-x\fR, \fB\-\-discard\-all\fR
118 Delete all local symbols
120 \fB\-X\fR, \fB\-\-discard\-locals\fR
121 Delete all temporary local symbols
123 \fB\-\-dynamic\-list\-data\fR
124 Add data symbols to dynamic symbols
126 \fB\-\-dynamic\-list\-cpp\-new\fR
127 Add C++ operator new/delete to dynamic symbols
129 \fB\-\-dynamic\-list\-cpp\-typeinfo\fR Add C++ typeinfo to dynamic symbols
131 \fB\-\-dynamic\-list\fR FILE
132 Read a list of dynamic symbols
134 \fB\-e\fR ADDRESS, \fB\-\-entry\fR ADDRESS Set program start address
136 \fB\-\-exclude\-libs\fR lib,lib ...
137 Exclude libraries from automatic export
139 \fB\-E\fR, \fB\-\-export\-dynamic\fR
140 Export all dynamic symbols
142 \fB\-\-no\-export\-dynamic\fR
143 Do not export all dynamic symbols (default)
146 Link big\-endian objects.
148 \fB\-\-eh\-frame\-hdr\fR
149 Create exception frame header
152 Link little\-endian objects.
154 \fB\-\-no\-enum\-size\-warning\fR
155 (ARM only) Do not warn about objects with incompatible enum sizes
157 \fB\-\-fatal\-warnings\fR
158 Treat warnings as errors
160 \fB\-\-no\-fatal\-warnings\fR
161 Do not treat warnings as errors
164 Call SYMBOL at unload\-time
166 \fB\-\-fix\-cortex\-a8\fR
167 (ARM only) Fix binaries for Cortex\-A8 erratum.
169 \fB\-\-no\-fix\-cortex\-a8\fR
170 (ARM only) Do not fix binaries for Cortex\-A8 erratum.
172 \fB\-\-merge\-exidx\-entries\fR
173 (ARM only) Merge exidx entries in debuginfo.
175 \fB\-\-no\-merge\-exidx\-entries\fR
176 (ARM only) Do not merge exidx entries in debuginfo.
179 (ARM only) Rewrite BX rn as MOV pc, rn for ARMv4
181 \fB\-\-fix\-v4bx\-interworking\fR
182 (ARM only) Rewrite BX rn branch to ARMv4 interworking veneer
187 \fB\-h\fR FILENAME, \fB\-soname\fR FILENAME
188 Set shared library name
193 \fB\-\-hash\-bucket\-empty\-fraction\fR FRACTION
194 Min fraction of empty buckets in dynamic hash
196 \fB\-\-hash\-style\fR [sysv,gnu,both]
199 \fB\-I\fR PROGRAM, \fB\-\-dynamic\-linker\fR PROGRAM
200 Set dynamic linker path
202 \fB\-\-incremental\fR
203 Do an incremental link if possible; otherwise, do a full link and prepare output for incremental linking
205 \fB\-\-no\-incremental\fR
206 Do a full link (default)
208 \fB\-\-incremental\-full\fR
209 Do a full link and prepare output for incremental linking
211 \fB\-\-incremental\-update\fR
212 Do an incremental link; exit if not possible
214 \fB\-\-incremental\-changed\fR
217 \fB\-\-incremental\-unchanged\fR
218 Assume files didn't change
220 \fB\-\-incremental\-unknown\fR
221 Use timestamps to check files (default)
224 Call SYMBOL at load\-time
226 \fB\-\-just\-symbols\fR FILE
227 Read only symbol values from FILE
229 \fB\-\-map\-whole\-files\fR
230 Map whole files to memory (default on 64\-bit hosts)
232 \fB\-\-no\-map\-whole\-files\fR
233 Map relevant file parts to memory (default on 32\-bit hosts)
235 \fB\-\-keep\-files\-mapped\fR
236 Keep files mapped across passes (default)
238 \fB\-\-no\-keep\-files\-mapped\fR
239 Release mapped files after each pass
241 \fB\-l\fR LIBNAME, \fB\-\-library\fR LIBNAME
242 Search for library LIBNAME
244 \fB\-L\fR DIR, \fB\-\-library\-path\fR DIR
245 Add directory to search path
248 Only search directories specified on the command line.
251 Put read\-only non\-executable sections in their own segment
254 Ignored for compatibility
256 \fB\-M\fR, \fB\-\-print\-map\fR
257 Write map file on standard output
259 \fB\-Map\fR MAPFILENAME
262 \fB\-n\fR, \fB\-\-nmagic\fR
263 Do not page align data
265 \fB\-N\fR, \fB\-\-omagic\fR
266 Do not page align data, do not make text readonly
269 Page align data, make text readonly
271 \fB\-\-enable\-new\-dtags\fR
272 Enable use of DT_RUNPATH and DT_FLAGS
274 \fB\-\-disable\-new\-dtags\fR
275 Disable use of DT_RUNPATH and DT_FLAGS
277 \fB\-\-noinhibit\-exec\fR
278 Create an output file even if errors occur
280 \fB\-\-no\-undefined\fR
281 Report undefined symbols (even with \fB\-\-shared\fR)
283 \fB\-o\fR FILE, \fB\-\-output\fR FILE
286 \fB\-O\fR LEVEL, \fB\-optimize\fR LEVEL
287 Optimize output file size
289 \fB\-\-oformat\fR [binary]
293 (ARM only) Ignore for backward compatibility
296 Create a position independent executable
298 \fB\-\-pic\-executable\fR
299 Create a position independent executable
301 \fB\-no\-pipeline\-knowledge\fR
302 (ARM only) Ignore for backward compatibility
304 \fB\-\-plugin\fR PLUGIN
305 Load a plugin library
307 \fB\-\-plugin\-opt\fR OPTION
308 Pass an option to the plugin
310 \fB\-\-preread\-archive\-symbols\fR
311 Preread archive symbols when multi\-threaded
313 \fB\-\-print\-symbol\-counts\fR FILENAME
314 Print symbols defined and used for each input
317 Ignored for SVR4 compatibility
319 \fB\-q\fR, \fB\-\-emit\-relocs\fR
320 Generate relocations in output
322 \fB\-r\fR, \fB\-relocatable\fR
323 Generate relocatable output
326 Relax branches on certain targets
328 \fB\-\-retain\-symbols\-file\fR FILE
329 keep only symbols listed in this file
332 Add DIR to runtime search path
335 Add DIR to runtime search path
337 \fB\-\-rpath\-link\fR DIR
338 Add DIR to link time shared library search path
340 \fB\-\-section\-ordering\-file\fR FILENAME
341 Layout sections in the order specified.
343 \fB\-\-section\-start\fR SECTION=ADDRESS
344 Set address of section
346 \fB\-\-sort\-common\fR [={ascending,descending}]
347 Sort common symbols by alignment
349 \fB\-\-spare\-dynamic\-tags\fR COUNT
350 Dynamic tag slots to reserve (default 5)
352 \fB\-s\fR, \fB\-\-strip\-all\fR
355 \fB\-S\fR, \fB\-\-strip\-debug\fR
356 Strip debugging information
358 \fB\-\-strip\-debug\-non\-line\fR
359 Emit only debug line number information
361 \fB\-\-strip\-debug\-gdb\fR
362 Strip debug symbols that are unused by gdb (at least versions <= 6.7)
364 \fB\-\-strip\-lto\-sections\fR
365 Strip LTO intermediate code sections
367 \fB\-\-stub\-group\-size\fR SIZE
368 (ARM only) The maximum distance from instructions in a group of sections to their stubs. Negative values mean stubs are always after the group. 1 means using default size.
370 \fB\-\-no\-keep\-memory\fR
371 Use less memory and more disk I/O (included only for compatibility with GNU ld)
373 \fB\-G\fR, \fB\-shared\fR
374 Generate shared library
377 Generate shared library
379 \fB\-\-split\-stack\-adjust\-size\fR SIZE
380 Stack size when \fB\-fsplit\-stack\fR function calls non\-split
383 Do not link against shared libraries
385 \fB\-\-icf\fR [none,all,safe]
386 Identical Code Folding. '\-\-icf=safe' Folds ctors, dtors and functions whose pointers are definitely not taken.
388 \fB\-\-icf\-iterations\fR COUNT
389 Number of iterations of ICF (default 2)
391 \fB\-\-print\-icf\-sections\fR
392 List folded identical sections on stderr
394 \fB\-\-no\-print\-icf\-sections\fR
395 Do not list folded identical sections
397 \fB\-\-keep\-unique\fR SYMBOL
398 Do not fold this symbol during ICF
400 \fB\-\-gc\-sections\fR
401 Remove unused sections
403 \fB\-\-no\-gc\-sections\fR
404 Don't remove unused sections (default)
406 \fB\-\-print\-gc\-sections\fR
407 List removed unused sections on stderr
409 \fB\-\-no\-print\-gc\-sections\fR
410 Do not list removed unused sections
413 Print resource usage statistics
415 \fB\-\-sysroot\fR DIR
416 Set target system root directory
418 \fB\-t\fR, \fB\-\-trace\fR
419 Print the name of each input file
421 \fB\-T\fR FILE, \fB\-\-script\fR FILE
425 Run the linker multi\-threaded
427 \fB\-\-no\-threads\fR
428 Do not run the linker multi\-threaded
430 \fB\-\-thread\-count\fR COUNT
431 Number of threads to use
433 \fB\-\-thread\-count\-initial\fR COUNT
434 Number of threads to use in initial pass
436 \fB\-\-thread\-count\-middle\fR COUNT Number of threads to use in middle pass
438 \fB\-\-thread\-count\-final\fR COUNT
439 Number of threads to use in final pass
442 Set the address of the bss segment
444 \fB\-Tdata\fR ADDRESS
445 Set the address of the data segment
447 \fB\-Ttext\fR ADDRESS
448 Set the address of the text segment
450 \fB\-u\fR SYMBOL, \fB\-\-undefined\fR SYMBOL
451 Create undefined reference to SYMBOL
454 Synonym for \fB\-\-debug\fR=\fIfiles\fR
456 \fB\-\-version\-script\fR FILE
459 \fB\-\-warn\-common\fR
460 Warn about duplicate common symbols
462 \fB\-\-no\-warn\-common\fR
463 Do not warn about duplicate common symbols (default)
465 \fB\-\-warn\-constructors\fR
468 \fB\-\-no\-warn\-constructors\fR
471 \fB\-\-warn\-execstack\fR
472 Warn if the stack is executable
474 \fB\-\-no\-warn\-execstack\fR
475 Do not warn if the stack is executable (default)
477 \fB\-\-no\-warn\-mismatch\fR
478 Don't warn about mismatched input files
480 \fB\-\-warn\-multiple\-gp\fR
483 \fB\-\-warn\-search\-mismatch\fR
484 Warn when skipping an incompatible library
486 \fB\-\-no\-warn\-search\-mismatch\fR
487 Don't warn when skipping an incompatible library
489 \fB\-\-warn\-shared\-textrel\fR
490 Warn if text segment is not shareable
492 \fB\-\-no\-warn\-shared\-textrel\fR
493 Do not warn if text segment is not shareable (default)
495 \fB\-\-warn\-unresolved\-symbols\fR
496 Report unresolved symbols as warnings
498 \fB\-\-error\-unresolved\-symbols\fR
499 Report unresolved symbols as errors
501 \fB\-\-no\-wchar\-size\-warning\fR
502 (ARM only) Do not warn about objects with incompatible wchar_t sizes
504 \fB\-\-whole\-archive\fR
505 Include all archive contents
507 \fB\-\-no\-whole\-archive\fR
508 Include only needed archive contents
510 \fB\-\-wrap\fR SYMBOL
511 Use wrapper functions for SYMBOL
513 \fB\-y\fR SYMBOL, \fB\-\-trace\-symbol\fR SYMBOL
514 Trace references to symbol
516 \fB\-\-undefined\-version\fR
517 Allow unused version in script (default)
519 \fB\-\-no\-undefined\-version\fR
520 Do not allow unused version in script
523 Default search path for Solaris compatibility
525 \-(, \fB\-\-start\-group\fR
526 Start a library search group
528 \-), \fB\-\-end\-group\fR
529 End a library search group
540 \fB\-z\fR nocombreloc
541 Do not sort dynamic relocs
543 \fB\-z\fR common\-page\-size=SIZE
544 Set common page size to SIZE
547 Report undefined symbols (even with \fB\-\-shared\fR)
550 Mark output as requiring executable stack
553 Mark DSO to be initialized first at runtime
556 Mark object to interpose all DSOs but executable
559 Mark object for lazy runtime binding (default)
562 Mark object requiring immediate process
564 \fB\-z\fR max\-page\-size=SIZE
565 Set maximum page size to SIZE
568 Allow multiple definitions of symbols
570 \fB\-z\fR nocopyreloc
571 Do not create copy relocs
573 \fB\-z\fR nodefaultlib
574 Mark object not to use default search paths
577 Mark DSO non\-deletable at runtime
580 Mark DSO not available to dlopen
583 Mark DSO not available to dldump
585 \fB\-z\fR noexecstack
586 Mark output as not requiring executable stack
589 Mark object for immediate function binding
592 Mark DSO to indicate that needs immediate $ORIGIN processing at runtime
595 Where possible mark variables read\-only after relocation
598 Don't mark variables read\-only after relocation
601 Do not permit relocations in read\-only segments
604 Permit relocations in read\-only segments (default)
606 debian/tmp/usr/bin/ld.gold: supported targets: elf32\-bigarm elf32\-littlearm elf64\-powerpcle elf64\-powerpc elf32\-powerpcle elf32\-powerpc elf64\-sparc elf32\-sparc elf64\-x86\-64 elf64\-x86\-64\-freebsd elf32\-i386 elf32\-i386\-freebsd
608 Report bugs to <http://www.sourceware.org/bugzilla/>
610 Copyright 2011 Free Software Foundation, Inc.
611 This program is free software; you may redistribute it under the terms of
612 the GNU General Public License version 3 or (at your option) a later version.
613 This program has absolutely no warranty.
615 The full documentation for
617 is maintained as a Texinfo manual. If the
621 programs are properly installed at your site, the command
625 should give you access to the complete manual.