10.4. Linker Options¶
Linker options control linking operations. They can be placed on the command line or in a command file. Linker options must be preceded by a hyphen (-). Options can be separated from arguments (if they have them) by an optional space.
Contents:
- 10.4.1. Basic Options
- 10.4.2. File Search Path Options
- 10.4.3. Command File Preprocessing Options
- 10.4.4. Diagnostic Options
- 10.4.5. Linker Output Options
- 10.4.5.1. Option Summary
- 10.4.5.2. Relocation Capabilities (--absolute_exe and --relocatable Options)
- 10.4.5.3. Error Correcting Code Testing (--ecc Options)
- 10.4.5.4. Managing Map File Contents (--mapfile_contents Option)
- 10.4.5.5. Generate XML Link Information File (--xml_link_info Option)
- 10.4.5.6. Generate XML Function Hash Table (--gen_xml_func_hash)
- 10.4.6. Symbol Management Options
- 10.4.6.1. Option Summary
- 10.4.6.2. Define an Entry Point (--entry_point Option)
- 10.4.6.3. Change Symbol Localization (--globalize and --localize options)
- 10.4.6.4. Make All Global Symbols Static (--make_static Option)
- 10.4.6.5. Hiding Symbols (--hide and --unhide options)
- 10.4.6.6. Disable Merging of Symbolic Debugging Information (--no_sym_merge Option)
- 10.4.6.7. Strip Symbolic Information (--no_symtable Option)
- 10.4.6.8. Retain Discarded Sections (--retain Option)
- 10.4.6.9. Scan All Libraries for Duplicate Symbol Definitions (--scan_libraries Option)
- 10.4.6.10. Mapping of Symbols (--symbol_map Option)
- 10.4.6.11. Introduce an Unresolved Symbol (--undef_sym Option)
- 10.4.7. Run-Time Environment Options
- 10.4.8. Link-Time Compression and Specialization Options
- 10.4.8.1. Option Summary
- 10.4.8.2. Compression (--cinit_compression and --copy_compression Option)
- 10.4.8.3. Compress DWARF Information (--compress_dwarf Option)
- 10.4.8.4. RTS Optimization (--use_memcpy and --use_memset Options)
- 10.4.8.5. Printf Support Optimization (no option)
- 10.4.8.6. Do Not Remove Unused Sections (--unused_section_elimination Option)
- 10.4.9. Miscellaneous Options