mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
PR24996, Gold fix for ternary operator within linker scripts
PR 24996 * expression.cc (Trinary_expression::arg2_value): Use correct integer expression when calling "eval_maybe_dot" method. (Trinary_expression::arg3_value): Likewise.
This commit is contained in:

committed by
Alan Modra

parent
b7a3015b1a
commit
6f485ad416
@ -596,7 +596,7 @@ class Trinary_expression : public Expression
|
||||
Output_section** section_pointer,
|
||||
uint64_t* alignment_pointer) const
|
||||
{
|
||||
return this->arg1_->eval_maybe_dot(eei->symtab, eei->layout,
|
||||
return this->arg2_->eval_maybe_dot(eei->symtab, eei->layout,
|
||||
eei->check_assertions,
|
||||
eei->is_dot_available,
|
||||
eei->dot_value,
|
||||
@ -615,7 +615,7 @@ class Trinary_expression : public Expression
|
||||
Output_section** section_pointer,
|
||||
uint64_t* alignment_pointer) const
|
||||
{
|
||||
return this->arg1_->eval_maybe_dot(eei->symtab, eei->layout,
|
||||
return this->arg3_->eval_maybe_dot(eei->symtab, eei->layout,
|
||||
eei->check_assertions,
|
||||
eei->is_dot_available,
|
||||
eei->dot_value,
|
||||
|
Reference in New Issue
Block a user