Re: Is some special attribute or qualifier required to make C function tables to use the right linker stubs?

David Fernandez <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <[email protected]>
On 30/04/14 18:03, Dave Hylands wrote:
> The assembler uses word addresses, so a 16-bit entry can refer to 128K
Hi Dave,
thanks for replying.

AFAIK, in assembler, as it refers to addresses in bytes, but the avr
hardware uses word addresses, there is the pm() and pm_xxx macros that
do the /2 for you when loading a register with relocatable addresses, so
that the relocations still work.

Yes, for a 128 part it will be ok, but I need to be sure it will just
work for a 256 part, and if I need to do magic now, rather than later,
or there is a proper way of dealing with this.

Cheers
David
The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error, please notify the sender immediately and delete the message. Unless you are an addressee (or authorized to receive for an addressee), you may not use, copy or disclose to anyone this message or any information contained in this message. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.