mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
Allow the use of the ORIGIN and LENGTH attributes in expressions inside MEMORY regions.
PR 24289 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN attributes during the first phase.
This commit is contained in:

committed by
Nick Clifton

parent
67a3048c0f
commit
912ebfa0d7
@ -1,3 +1,9 @@
|
||||
2019-03-06 Nick Bowler <nbowler@draconx.ca>
|
||||
|
||||
PR 24289
|
||||
* ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
|
||||
attributes during the first phase.
|
||||
|
||||
2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
|
||||
|
||||
This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
|
||||
|
@ -863,8 +863,6 @@ fold_name (etree_type *tree)
|
||||
break;
|
||||
|
||||
case LENGTH:
|
||||
{
|
||||
if (expld.phase != lang_first_phase_enum)
|
||||
{
|
||||
lang_memory_region_type *mem;
|
||||
|
||||
@ -876,11 +874,9 @@ fold_name (etree_type *tree)
|
||||
" referenced in expression\n"),
|
||||
tree, tree->name.name);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ORIGIN:
|
||||
if (expld.phase != lang_first_phase_enum)
|
||||
{
|
||||
lang_memory_region_type *mem;
|
||||
|
||||
|
Reference in New Issue
Block a user