]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* layout.cc (Layout::set_segment_offsets): Set p_align to
authorAlan Modra <amodra@gmail.com>
Thu, 30 Aug 2012 05:57:05 +0000 (05:57 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 30 Aug 2012 05:57:05 +0000 (05:57 +0000)
abi_pagesize, not common_pagesize.
(Layout::relaxation_loop_body): Similarly use abi_pagesize
to determine whether file header can go in segment.

gold/ChangeLog
gold/layout.cc

index 85d503442f2365f05606de4052c072ea7d05284d..8fa41adb29bd44679a890ef6feaf97ea7713ada3 100644 (file)
@@ -1,3 +1,10 @@
+2012-08-30  Alan Modra  <amodra@gmail.com>
+
+       * layout.cc (Layout::set_segment_offsets): Set p_align to
+       abi_pagesize, not common_pagesize.
+       (Layout::relaxation_loop_body): Similarly use abi_pagesize
+       to determine whether file header can go in segment.
+
 2012-08-30  Alan Modra  <amodra@gmail.com>
 
        * output.h (Output_reloc::Output_reloc <output section>): Add
index cadac877e06b4f4d9c74538de15cf3ebc0b32100..808dd944328196c719cab0e8cb6e69d1cf673b84 100644 (file)
@@ -2318,7 +2318,7 @@ Layout::relaxation_loop_body(
   // compatible with putting the segment headers and file headers into
   // that segment.
   if (parameters->options().user_set_Ttext()
-      && parameters->options().Ttext() % target->common_pagesize() != 0)
+      && parameters->options().Ttext() % target->abi_pagesize() != 0)
     {
       load_seg = NULL;
       phdr_seg = NULL;
@@ -3330,7 +3330,7 @@ Layout::set_segment_offsets(const Target* target, Output_segment* load_seg,
 
          if (!parameters->options().nmagic()
              && !parameters->options().omagic())
-           (*p)->set_minimum_p_align(common_pagesize);
+           (*p)->set_minimum_p_align(abi_pagesize);
 
          if (!are_addresses_set)
            {