You copied the Doc URL to your clipboard.

Linker command-line options listed by group

Groupings of the linker command-line options.

Options that control library files and paths
  • --add_needed, --no_add_needed.
  • --libpath=pathlist.
  • --library=name.
  • --library_type=lib.
  • --reduce_paths, --no_reduce_paths.
  • --scanlib, --no_scanlib.
  • --search_dynamic_libraries, --no_search_dynamic_libraries.
  • --thumb2_library, --no_thumb2_library.
  • --userlibpath=pathlist.
Options that control the linking of object files
  • --add_shared_references, --no_add_shared_references.
  • --match=crossmangled.
  • --strict.
  • --strict_ph, --no_strict_ph.
  • --strict_relocations, --no_strict_relocations.
  • --sysroot=path.
  • --unresolved=symbol.
Options that control the output
  • --base_platform.
  • --bpabi.
  • --combreloc, --no_combreloc.
  • --dll.
  • --ldpartial.
  • --output=filename.
  • --partial.
  • --prelink_support, --no_prelink_support.
  • --reloc.
  • --runpath=pathlist.
  • --shared.
  • --sysv.
Options to specify the image memory map
  • --fpic.
  • --linker_script=ld_script.
  • --predefine="string".
  • --ro_base=address.
  • --ropi.
  • --rosplit.
  • --rw_base=address.
  • --rwpi.
  • --scatter=filename.
  • --split.
  • --use_sysv_default_script, --no_use_sysv_default_script.
  • --xo_base=address.
  • --zi_base=address.
Options that control debug information in an image
  • --bestdebug, --no_bestdebug.
  • --compress_debug, --no_compress_debug.
  • --debug, --no_debug.
  • --dynamic_debug.
  • --eager_load_debug, --no_eager_load_debug.
  • --emit_debug_overlay_relocs.
  • --emit_debug_overlay_section.
  • --emit_non_debug_relocs.
Options that control the content of an image
  • --any_contingency.
  • --any_placement=algorithm.
  • --any_sort_order=order.
  • --api, --no_api.
  • --arm_linux.
  • --arm_only.
  • --as_needed, --no_as_needed.
  • --autoat, --no_autoat.
  • --blx_arm_thumb, --no_blx_arm_thumb.
  • --blx_thumb_arm, --no_blx_thumb_arm.
  • --branchnop, --no_branchnop.
  • --comment_section, --no_comment_section.
  • --cpp_compat.
  • --cppinit, --no_cppinit.
  • --cpu=name.
  • --datacompressor=opt.
  • --dynamic_linker=name.
  • --edit=file_list.
  • --emit_relocs.
  • --entry=location.
  • --exceptions, --no_exceptions.
  • --exceptions_tables=action.
  • --execstack, --no_execstack.
  • --export_all, --no_export_all.
  • --export_dynamic, --no_export_dynamic.
  • --filtercomment, --no_filtercomment.
  • --fini=symbol.
  • --first=section_id.
  • --force_explicit_attr.
  • --force_so_throw, --no_force_so_throw.
  • --fpu=name.
  • --gnu_linker_defined_syms.
  • --import_unresolved, --no_import_unresolved.
  • --init=symbol.
  • --inline, --no_inline.
  • --inline_type=type.
  • --keep=section_id.
  • --largeregions, --no_largeregions.
  • --last=section_id.
  • --linux_abitag=version_id.
  • --locals, --no_locals.
  • --max_er_extension=size.
  • --max_visibility=type.
  • --merge, --no_merge.
  • --muldefweak, --no_muldefweak.
  • --override_visibility.
  • --pad=num.
  • --paged.
  • --pagesize=pagesize.
  • --pltgot=type.
  • --pltgot_opts=mode.
  • --privacy.
  • --ref_cpp_init, --no_ref_cpp_init.
  • --remove, --no_remove.
  • --soname=name.
  • --sort=algorithm.
  • --startup=symbol, --no_startup.
  • --strict_flags, --no_strict_flags.
  • --symbolic.
  • --symver_script=filename.
  • --symver_soname.
  • --tailreorder, --no_tailreorder.
  • --tiebreaker=option.
  • --undefined=symbol.
  • --undefined_and_export=symbol.
  • --use_definition_visibility.
  • --vfemode=mode.
Options that control veneer generation
  • --crosser_veneershare, --no_crosser_veneershare.
  • --inlineveneer, --no_inlineveneer.
  • --max_veneer_passes=value.
  • --piveneer, --no_piveneer.
  • --veneerinject,--no_veneerinject.
  • --veneer_inject_type=type.
  • --veneer_pool_size=size.
  • --veneershare, --no_veneershare.
Options that control byte addressing mode
  • --be8.
  • --be32.
Options that control the extraction and presentation of image information
  • --callgraph, --no_callgraph.
  • --callgraph_file=filename.
  • --callgraph_output=fmt.
  • --callgraph_subset=symbol[,symbol,…].
  • --cgfile=type.
  • --cgsymbol=type.
  • --cgundefined=type.
  • --feedback=filename.
  • --feedback_image=option.
  • --feedback_type=type.
  • --info=topic[,topic,...].
  • --info_lib_prefix=opt.
  • --list_mapping_symbols, --no_list_mapping_symbols.
  • --load_addr_map_info, --no_load_addr_map_info.
  • --mangled, --unmangled.
  • --map, --no_map.
  • --section_index_display=type.
  • --symbols, --no_symbols.
  • --symdefs=filename.
  • --xref, --no_xref.
  • --xrefdbg, --no_xrefdbg.
  • --xref{from|to}=object(section).

Note

With the exception of --callgraph and --callgraph_subset, the linker prints the information you request on the standard output stream, stdout, by default. You can redirect the information to a text file using the --list command-line option.
Options that control diagnostic messages
  • --diag_error=tag[,tag,…].
  • --diag_remark=tag[,tag,…].
  • --diag_style=arm|ide|gnu.
  • --diag_suppress=tag[,tag,…].
  • --diag_warning=tag[,tag,…].
  • --errors=filename.
  • --list=filename.
  • --remarks.
  • --show_full_path.
  • --show_parent_lib.
  • --show_sec_idx.
  • --strict_enum_size, --no_strict_enum_size.
  • --strict_symbols, --no_strict_symbols.
  • --strict_visibility, --no_strict_visibility.
  • --strict_wchar_size, --no_strict_wchar_size.
  • --verbose.
Options that control alignment in legacy images
  • --legacyalign, --no_legacyalign.
License related options
  • --licretry.
Miscellaneous options
  • --cpu=list.
  • --fpu=list.
  • --help.
  • input-file-list.
  • --show_cmdline.
  • --version_number.
  • --via=filename.
  • --vsn.