summaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-07-22 23:01:20 +0000
committerIan Lance Taylor <ian@airs.com>2008-07-22 23:01:20 +0000
commitaf6156ef8ded31c7b8e19fa7995e4de14a5b9639 (patch)
treeb6f76e21579975faa46d823307fa81ae589c5b0d /gold/options.h
parent92de84a60cbdb80b808c8571e709c1384c6ee6fc (diff)
downloadbinutils-gdb-af6156ef8ded31c7b8e19fa7995e4de14a5b9639.tar.gz
* options.h (class General_options): Define -n/--nmagic and
-N/--omagic. * options.cc (General_options::finalize): For -n/--nmagic or -N/--omagic, set -static. * layout.cc (Layout::attach_allocated_section_to_segment): If -N/--omagic, don't put read-only and read-write sections in different segments. (Layout::find_first_load_seg): If -N/--omagic, don't insist on finding a read-only segment. (Layout::set_segment_offsets): If -N/--omagic or -n/--nmagic, don't set the minimum segment alignment to the common page size, and don't set the file offset to the address modulo the page size. * script-sections.cc (Script_sections::create_segments): If -n/--omagic, don't put read-only and read-write sections in different segments.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 2641d986ef4..91f9552b92c 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -659,6 +659,12 @@ class General_options
DEFINE_string(Map, options::ONE_DASH, '\0', NULL, N_("Write map file"),
N_("MAPFILENAME"));
+ DEFINE_bool(nmagic, options::TWO_DASHES, 'n', false,
+ N_("Do not page align data"), NULL);
+ DEFINE_bool(omagic, options::EXACTLY_TWO_DASHES, 'N', false,
+ N_("Do not page align data, do not make text readonly"),
+ N_("Page align data, make text readonly"));
+
DEFINE_enable(new_dtags, options::EXACTLY_TWO_DASHES, '\0', false,
N_("Enable use of DT_RUNPATH and DT_FLAGS"),
N_("Disable use of DT_RUNPATH and DT_FLAGS"));