OSDN Git Service

* options.h (class General_options): Define -n/--nmagic and
authorIan Lance Taylor <ian@airs.com>
Tue, 22 Jul 2008 23:01:20 +0000 (23:01 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 22 Jul 2008 23:01:20 +0000 (23:01 +0000)
commitb390546c63f82dffb452ca25dd10aedecc0626b4
treede568bdfcdb80c1552786005abbcbfd9bc6ef3d5
parentb74e66c7df4db0fccc0326e44c80cf48b99da1b4
* 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.
gold/ChangeLog
gold/layout.cc
gold/options.cc
gold/options.h
gold/script-sections.cc