Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Including a data section in gcc.lcf

46 views
Skip to first unread message

PaowZ

unread,
Oct 13, 2009, 11:54:20 AM10/13/09
to

Hi there!

I'm currently trying to alter a gcc.lcf to change the way my compiled
files are linked. More precisely, I need to add a section containing
binary data that have to be reachable within the app.
Thus, I tried the follwing:

my_section : AT(ADDR(.previous_section) + SIZEOF(.previous_section))
{
var = ADDR(.my_section);
INCLUDE my_data_file
/*or INPUT, maybe ??*/
} > mem_rw

..where 'var' is the variable containing the address of my data file
for accessing within the app and the command to include my file.
But INCLUDE returns a parse error by the linker and the same goes for
INPUT..

Any idea ??

Thanks a lot :)

PaowZ

unread,
Oct 23, 2009, 10:26:36 AM10/23/09
to
Well. I answer to myself, it seems this is not possible with this
linker.
0 new messages