Generally, one defines such symbols in the linker script, for example:
SECTIONS {
...
mysection : {
_mysection_start = . ;
*(mysection)
_mysection_end = . ;
}
}
tcc only supports a very limited subset of the GNU ld linker
Simon Lehmayr wrote:
Hello,
I again need your help:
How can I determine the start and end addresses of sections in my c
program?
I tried extern int mysection_start, _mysection_start and
__mysection_start but it never linked.
Might be __start/stop_mysection. See
Hello,
I again need your help:
How can I determine the start and end addresses of sections in my c program?
I tried extern int mysection_start, _mysection_start and __mysection_start
but it never linked.
Thank you very much in advance,
Simon
___