Fix tic54x regression
authorAlan Modra <amodra@gmail.com>
Tue, 22 Mar 2016 12:18:37 +0000 (22:48 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 22 Mar 2016 12:18:37 +0000 (22:48 +1030)
One of the tic54x testcases looks for a section alignment of 1.  After
9136aa49 the alignment became 0.  While it happens that an alignment
of 0 is treated as an alignment of 1, there is no reason to not apply
the explicit alignment.

* write.c (record_alignment): Revert 2016-02-18 change.

gas/ChangeLog
gas/write.c

index 9c2b9ecc7fd0a394bbaf51b271ebada6e70cd8dc..24cf393f946532c094ac66214c2c2dea167be8e9 100644 (file)
@@ -1,3 +1,7 @@
+2016-03-22  Alan Modra  <amodra@gmail.com>
+
+       * write.c (record_alignment): Revert 2016-02-18 change.
+
 2016-03-22  Alan Modra  <amodra@gmail.com>
 
        * config/tc-alpha.c (load_expression): Replace alloca with xmalloc.
index 24cd6ca40377410830a3be05ca09213fccfcb4e7..15330cfc3345a5b14cbb1d87def476f52c4e946b 100644 (file)
@@ -360,9 +360,6 @@ record_alignment (/* Segment to which alignment pertains.  */
   if (seg == absolute_section)
     return;
 
-  if (align <= OCTETS_PER_BYTE_POWER)
-    return;
-
   if (align > bfd_get_section_alignment (stdoutput, seg))
     bfd_set_section_alignment (stdoutput, seg, align);
 }
This page took 0.028654 seconds and 4 git commands to generate.