Re: [AVR] Specify location of __attribute__((__progmem__))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johann,


That seems to be working. Indeed, I get a new section with my data, although I'm not sure if avrdude will pick that up and program it to my device.

Thanks anyways!

73s de HA5OGL Lev

On 6/29/24 19:29, Georg-Johann Lay wrote:
Seems you need a custom linker script.

Maybe what also works in simple cases is to place the object
into an orphan section (a section not mentioned in the ld script)
and then link with -Wl,--section-start,SECNAME=ADDRESS
like outlined in https://avrdudes.github.io/avr-libc/avr-libc-user-manual-2.2.0/FAQ.html#faq_reloc_code

--
Levente Kovacs
Senior Electronic Engineer

W: http://levente.logonex.eu



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux