Re: [Tinycc-devel] TCC linker symbols for section start and end

2009-02-21 Thread Joshua Phillips
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

Re: [Tinycc-devel] TCC linker symbols for section start and end

2009-02-21 Thread grischka
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

[Tinycc-devel] TCC linker symbols for section start and end

2009-02-20 Thread Simon Lehmayr
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 ___