aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-06-06 22:12:47 +0000
committerCary Coutant <ccoutant@google.com>2012-06-06 22:12:47 +0000
commit7c0640fa36c37d0e17b1db3ab9b1c66792f8a5fb (patch)
tree2bad952e9bfe9eda450d7e2082215e2c62fd5c5a /gold/options.h
parent8fe6640e153236e68f3531b8d8151be2f8c61193 (diff)
downloadfsf-binutils-gdb-7c0640fa36c37d0e17b1db3ab9b1c66792f8a5fb.zip
fsf-binutils-gdb-7c0640fa36c37d0e17b1db3ab9b1c66792f8a5fb.tar.gz
fsf-binutils-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.h9
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);