PR gold/12957

* options.h (class General_options): Add -f and -F.
	* options.cc (General_options::finalize): Fatal error if -f/-F
	are used without -shared.
	* layout.cc (Layout::finish_dynamic_section): Implement -f/-F.
This commit is contained in:
Ian Lance Taylor
2011-07-03 04:46:56 +00:00
parent ae3a6d4fa3
commit 886288f10b
4 changed files with 36 additions and 2 deletions

View File

@@ -735,6 +735,14 @@ class General_options
N_("(ARM only) Do not warn about objects with incompatible "
"enum sizes"));
DEFINE_set(auxiliary, options::TWO_DASHES, 'f',
N_("Auxiliary filter for shared object symbol table"),
N_("SHLIB"));
DEFINE_string(filter, options::TWO_DASHES, 'F', NULL,
N_("Filter for shared object symbol table"),
N_("SHLIB"));
DEFINE_bool(fatal_warnings, options::TWO_DASHES, '\0', false,
N_("Treat warnings as errors"),
N_("Do not treat warnings as errors"));