Re: [arm-gnu] how to locate a const struct in memory (ld question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] how to locate a const struct in memory (ld question)



On Fri, May 07, 2010 at 03:17:13PM -0400, Andrew Kohlsmith (mailing lists account) wrote:
> Is there a way to specify a specific location for a specific object, or perhaps 
> should I be declaring the structure differently so that I can get a section out 
> of it for ld to put at a specific location?

Look up __attribute__((section)) in the GCC manual to do this.

> Finally, right now the bootloader and the application are built at the same 
> time, so the linker is resolving bl_funcs for the application's extern 
> declaration. Do I use the linker PROVIDE() function to do this when the 
> bootloader is removed from the image?

Yes.

-- 
Daniel Jacobowitz
CodeSourcery