summaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c
index 5a487ce6c6..c7a02d729f 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -631,6 +631,8 @@ CODE_FRAGMENT
.static inline bool
.bfd_set_section_alignment (asection *sec, unsigned int val)
.{
+. if (val >= sizeof (bfd_vma) * 8 - 1)
+. return false;
. sec->alignment_power = val;
. return true;
.}