summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-03-22 22:48:37 +1030
committerAlan Modra <amodra@gmail.com>2016-03-22 22:48:37 +1030
commit49636823b07446b61ef8cdc17898bef3c8202325 (patch)
treedd416ccf756ac0fc308fffaf46f084dafa3007fa
parent39a0d071ae10ab953d6bb986ec40996c771db78f (diff)
downloadbinutils-gdb-49636823b07446b61ef8cdc17898bef3c8202325.tar.gz
Fix tic54x regression
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.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/write.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9c2b9ecc7fd..24cf393f946 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
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.
(emit_jsrjmp, tc_gen_reloc): Likewise.
* config/tc-i370.c (i370_macro): Likewise.
diff --git a/gas/write.c b/gas/write.c
index 24cd6ca4037..15330cfc334 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -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);
}