> -----Original Message----- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > org] On Behalf Of Stu Bell > Sent: Thursday, December 20, 2007 8:43 AM > To: [EMAIL PROTECTED]; avr-gcc-list@nongnu.org > Subject: RE: [avr-gcc-list] Howto put constants on fixed address > > > You're going to need to become a real expert in linker > scripting to even > come close to doing this. Joerg & company might be able to help with > this. Also, using either cygwin or linux, do an "info ld" to find out > more on how to do linker scripts.
Note that the Binutils (and hence ld) user manual is include in WinAVR if the OP is using that. > My feeling is that you are asking quite a bit too much from the linker > to expect it to "flow" code around an obstacle in the middle of it's > memory map. If you want to set up two sections, before and after "my > section" and assign code to each, you could succeed. But as it is, I > don't think the linker comprehends a single section that comes in two > pieces. This changes the whole design philosophy, as most users want to know when there is a conflict, i.e. overlapping segments, not to tell the linker to wrap around something. Perhaps there is some magical linker flag that will allow this. Somehow I doubt it. And I agree with Stu, the alternative is to move your section to a different location, or magical linker scripting. > I'm not sure why you insist that it *must* be in the middle of your > code, but that's for you to know and decide. Yeah, enquiring minds would like to know... _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list