gold-no-keep-files-mapped
authorMatthias Klose <doko@debian.org>
Sat, 10 Dec 2022 10:57:23 +0000 (10:57 +0000)
committerMatthias Klose <doko@debian.org>
Sat, 10 Dec 2022 10:57:23 +0000 (10:57 +0000)
# DP: gold on 32bit archs: Release mapped files after each pass.

# DP: gold on 32bit archs: Release mapped files after each pass.

Gbp-Pq: Name gold-no-keep-files-mapped.diff

gold/options.h

index 13418f839705a994ea70ddc8171e0c48eb7fca1c..b08a276e3610beec1d538b2cc3a92c558464d8cb 100644 (file)
@@ -1012,7 +1012,8 @@ class General_options
 
   // k
 
-  DEFINE_bool(keep_files_mapped, options::TWO_DASHES, '\0', true,
+  DEFINE_bool(keep_files_mapped, options::TWO_DASHES, '\0',
+             sizeof(void*) >= 8,
              N_("Keep files mapped across passes"),
              N_("Release mapped files after each pass"));