+ GENERAL_NOARG('\0', "allow-shlib-undefined",
+ N_("Allow unresolved references in shared libraries"),
+ NULL, TWO_DASHES,
+ &General_options::set_allow_shlib_undefined),
+ GENERAL_NOARG('\0', "no-allow-shlib-undefined",
+ N_("Do not allow unresolved references in shared libraries"),
+ NULL, TWO_DASHES,
+ &General_options::set_no_allow_shlib_undefined),
+ POSDEP_NOARG('\0', "as-needed",
+ N_("Only set DT_NEEDED for dynamic libs if used"),
+ NULL, TWO_DASHES, &Position_dependent_options::set_as_needed),
+ POSDEP_NOARG('\0', "no-as-needed",
+ N_("Always DT_NEEDED for dynamic libs (default)"),
+ NULL, TWO_DASHES, &Position_dependent_options::set_no_as_needed),
+ POSDEP_NOARG('\0', "Bdynamic",
+ N_("-l searches for shared libraries"),
+ NULL, ONE_DASH,
+ &Position_dependent_options::set_Bdynamic),
+ POSDEP_NOARG('\0', "Bstatic",
+ N_("-l does not search for shared libraries"),
+ NULL, ONE_DASH,
+ &Position_dependent_options::set_Bstatic),
+ GENERAL_NOARG('\0', "Bsymbolic", N_("Bind defined symbols locally"),
+ NULL, ONE_DASH, &General_options::set_Bsymbolic),
+ POSDEP_ARG('b', "format", N_("Set input format (elf, binary)"),
+ N_("-b FORMAT, --format FORMAT"), TWO_DASHES,
+ &Position_dependent_options::set_format),
+#ifdef HAVE_ZLIB_H
+# define ZLIB_STR ",zlib"
+#else
+# define ZLIB_STR ""
+#endif
+ GENERAL_ARG('\0', "compress-debug-sections",
+ N_("Compress .debug_* sections in the output file "
+ "(default is none)"),
+ N_("--compress-debug-sections=[none" ZLIB_STR "]"),
+ TWO_DASHES,
+ &General_options::set_compress_debug_sections),
+ GENERAL_NOARG('d', "define-common", N_("Define common symbols"),
+ NULL, TWO_DASHES, &General_options::set_define_common),
+ GENERAL_NOARG('\0', "dc", NULL, NULL, ONE_DASH,
+ &General_options::set_define_common),
+ GENERAL_NOARG('\0', "dp", NULL, NULL, ONE_DASH,
+ &General_options::set_define_common),
+ GENERAL_NOARG('\0', "no-define-common", N_("Do not define common symbols"),
+ NULL, TWO_DASHES, &General_options::set_no_define_common),
+ SPECIAL('\0', "defsym", N_("Define a symbol"),
+ N_("--defsym SYMBOL=EXPRESSION"), TWO_DASHES,
+ &add_to_defsym),
+ GENERAL_NOARG('\0', "demangle", N_("Demangle C++ symbols in log messages"),
+ NULL, TWO_DASHES, &General_options::set_demangle),
+ GENERAL_NOARG('\0', "no-demangle",
+ N_("Do not demangle C++ symbols in log messages"),
+ NULL, TWO_DASHES, &General_options::set_no_demangle),
+ GENERAL_NOARG('\0', "detect-odr-violations",
+ N_("Try to detect violations of the One Definition Rule"),
+ NULL, TWO_DASHES, &General_options::set_detect_odr_violations),
+ GENERAL_ARG('e', "entry", N_("Set program start address"),
+ N_("-e ADDRESS, --entry ADDRESS"), TWO_DASHES,
+ &General_options::set_entry),