This allows doing 2 things:
- Correctly handle symbol assignments containing other symbols and ADDR() function when there is no SECTION block. So one can have script containing just these lines:
PROVIDE_HIDDEN(_begin_text = _start); PROVIDE_HIDDEN(_end_text = ADDR(.text) + SIZEOF(.text));
- Make symbols containing ADDR() function synthetic.
Both _begin_text and _end_text from example above will be relative to .text section