using ld-symbols - the "official" way

Ian Lance Taylor
Sat Jul 30 00:20:00 GMT 2005

Josef Angermeier <> writes:

> Im defining in my ld linker script some symbols (end of sections,
> beginning, etc...) and use those in my C code. 
> To prevent gcc complaining about some undeclared symbols i use
> extern char ld_symbol[];
> This seems to work, but i wonder about the advised way to get this done
> ?

That is the right way to do it.


More information about the Gcc-help mailing list