diff options
author | Michael Matz <matz@suse.de> | 2005-05-10 15:10:08 +0000 |
---|---|---|
committer | Michael Matz <matz@suse.de> | 2005-05-10 15:10:08 +0000 |
commit | ee1923668e008fbe81cd81b3213f81eb097cfccf (patch) | |
tree | d3f196451c3374ac19e8ff3b0b1e578152c97558 /gas/config/tc-hppa.c | |
parent | b0ded00b3ffade930e4617b01d5c8241e3f404da (diff) | |
download | gdb-ee1923668e008fbe81cd81b3213f81eb097cfccf.zip gdb-ee1923668e008fbe81cd81b3213f81eb097cfccf.tar.gz gdb-ee1923668e008fbe81cd81b3213f81eb097cfccf.tar.bz2 |
gas/
* frags.c (frag_grow): Don't be too greedy in allocating memory.
* config/tc-hppa.c (pa_block): Check arguments to .block[z].
gas/testsuite/
* gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for
.block.
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; |