This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
using ld-symbols - the "official" way
- From: Josef Angermeier <sijoange at cip dot informatik dot uni-erlangen dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 29 Jul 2005 11:18:18 +0200
- Subject: using ld-symbols - the "official" way
Hello
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
?
Thanks in advance
josef