mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
Prevent the ASCII linker script directive from generating huge amounts of padding if the size expression is not a constant.
PR 30193 * ldgram.y (ASCII): Fail if the size is not a constant.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2023-03-03 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 30193
|
||||
* ldgram.y (ASCII): Fail if the size is not a constant.
|
||||
|
||||
2023-02-23 Fangrui Song <i@maskray.me>
|
||||
|
||||
* emultempl/riscvelf.em: Add option parsing.
|
||||
|
||||
@@ -672,7 +672,10 @@ statement:
|
||||
{
|
||||
/* 'value' is a memory leak, do we care? */
|
||||
etree_type *value = $3;
|
||||
lang_add_string (value->value.value, $5);
|
||||
if (value->type.node_code == INT)
|
||||
lang_add_string (value->value.value, $5);
|
||||
else
|
||||
einfo (_("%X%P:%pS: ASCII expression must be an integer\n"), NULL);
|
||||
}
|
||||
| ASCIZ NAME
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user