This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
linking & cdl question
- From: "Andy Dyer" <adyer at righthandtech dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Sat, 19 Jul 2003 20:00:01 -0500
- Subject: [ECOS] linking & cdl question
I have some Xilinx fpga configuration data used in my hal startup
that I want to link into my ROM redboot images, but not in the RAM
versions since presumably redboot has already dealt with the
configuration at startup.
I have managed to get the raw binary data file into an
elf .o file with a .rodata section and some symbols defining
the start and end, but I'm not sure how to reference it in
cdl and get it linked.
a couple of questions:
would it make sense to put it into the main library or should
it go into extras (will the rodata section get removed if
there is no reference to the start and end symbols)?
How do i just specify a .o file to link with no build rule?
Would it be easier to have a make rule somewhere to say
how to make the .o file from a raw binary file?
How does one go about this?
--
Andrew Dyer | adyer@righthandtech.com
Sr. Engineer | (630) 238-0789
RightHand Technologies | (630) 238-0469 (fax)
735 N. Edgewood Ave. |
Suite D |
Wood Dale, IL 60191-1261 |
USA |
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss