9.6.7.2 Addr Built-in Function
The
ADDR(section)
built-in function
returns the absolute address (a VMA) of the named section. Your script must previously have
defined the location of that section. In the following example, symbol_1
and symbol_2
are assigned identical
values:SECTIONS { ...
.output1 :
{
start_of_output_1 = ABSOLUTE(.);
...
}
.output :
{
symbol_1 = ADDR(.output1);
symbol_2 = start_of_output_1;
}
...
}