aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gas/write.c b/gas/write.c
index f9d5da9..46d8d96 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -355,12 +355,15 @@ record_alignment (/* Segment to which alignment pertains. */
segT seg,
/* Alignment, as a power of 2 (e.g., 1 => 2-byte
boundary, 2 => 4-byte boundary, etc.) */
- int align)
+ unsigned int align)
{
if (seg == absolute_section)
return;
- if ((unsigned int) align > bfd_get_section_alignment (stdoutput, seg))
+ if (align <= OCTETS_PER_BYTE_POWER)
+ return;
+
+ if (align > bfd_get_section_alignment (stdoutput, seg))
bfd_set_section_alignment (stdoutput, seg, align);
}