This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: using ld-symbols - the "official" way
- From: Ian Lance Taylor <ian at airs dot com>
- To: Josef Angermeier <sijoange at cip dot informatik dot uni-erlangen dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 29 Jul 2005 17:19:50 -0700
- Subject: Re: using ld-symbols - the "official" way
- References: <20050729091818.GL32506@faui00i.informatik.uni-erlangen.de>
Josef Angermeier <sijoange@cip.informatik.uni-erlangen.de> 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.
Ian