diff options
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c index 5a487ce..c7a02d7 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; .} |