VladisM/m2tools

Linker script eval symbols

Closed this issue · 1 comments

Symbols from linker script, computed one, will get evaluated in order as they appear in linker script file. But when symbol that is not evaluated yet is used in another, zero value is used and no warning or error is emitted.

Expected behaviour: Error will be emitted.

Following sequence in linker script will cause this behaviour.

SET FOO 1
SET VAR_A EVAL VAR_B ENDEVAL
SET VAR_B EVAL FOO ENDEVAL

Fixed in commit 9b53269.