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 script syntax, though. See the GNU Binutils documentation for GNU ld's linker script syntax. On Friday 20 February 2009 23:44:10 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. > > Thank you very much in advance, > Simon > > > > _______________________________________________ > Tinycc-devel mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/tinycc-devel
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
