diff options
author | Cary Coutant <ccoutant@google.com> | 2012-06-06 22:12:47 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-06-06 22:12:47 +0000 |
commit | 7c0640fa36c37d0e17b1db3ab9b1c66792f8a5fb (patch) | |
tree | 2bad952e9bfe9eda450d7e2082215e2c62fd5c5a /gold/options.h | |
parent | 8fe6640e153236e68f3531b8d8151be2f8c61193 (diff) | |
download | gdb-7c0640fa36c37d0e17b1db3ab9b1c66792f8a5fb.zip gdb-7c0640fa36c37d0e17b1db3ab9b1c66792f8a5fb.tar.gz gdb-7c0640fa36c37d0e17b1db3ab9b1c66792f8a5fb.tar.bz2 |
gold/
* configure.ac: Add check for fallocate.
* configure: Regenerate.
* config.in: Regenerate.
* options.h (class General_options): Add --mmap-output-file and
--posix-fallocate options.
* output.cc: (posix_fallocate): Remove; replace with...
(gold_fallocate): New function.
(Output_file::map_no_anonymous): Call gold_fallocate.
(Output_file::map): Check --mmap-output-file option.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index b244bd5..6463b80 100644 --- a/gold/options.h +++ b/gold/options.h @@ -889,6 +889,10 @@ class General_options DEFINE_string(m, options::EXACTLY_ONE_DASH, 'm', "", N_("Set GNU linker emulation; obsolete"), N_("EMULATION")); + DEFINE_bool(mmap_output_file, options::TWO_DASHES, '\0', true, + N_("Map the output file for writing (default)."), + N_("Do not map the output file for writing.")); + DEFINE_bool(print_map, options::TWO_DASHES, 'M', false, N_("Write map file on standard output"), NULL); DEFINE_string(Map, options::ONE_DASH, '\0', NULL, N_("Write map file"), @@ -939,6 +943,11 @@ class General_options N_("Pass an option to the plugin"), N_("OPTION")); #endif + DEFINE_bool(posix_fallocate, options::TWO_DASHES, '\0', true, + N_("Use posix_fallocate to reserve space in the output file" + " (default)."), + N_("Use fallocate or ftruncate to reserve space.")); + DEFINE_bool(preread_archive_symbols, options::TWO_DASHES, '\0', false, N_("Preread archive symbols when multi-threaded"), NULL); |