diff options
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r-- | gas/config/tc-hppa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 7bac1ea..57cc427 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -5951,6 +5951,12 @@ pa_block (z) temp_size = get_absolute_expression (); + if (temp_size > 0x3FFFFFFF) + { + as_bad (_("Argument to .BLOCK/.BLOCKZ must be between 0 and 0x3fffffff")); + temp_size = 0; + } + /* Always fill with zeros, that's what the HP assembler does. */ temp_fill = 0; |