http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52461
--- Comment #5 from Markus Faust <saturn at quantentunnel dot de> 2012-03-07 10:12:41 UTC --- (In reply to comment #4) > This bug tracker if for the official GCC hosted by FSF, not for private ports. Sorry about that. Yesterday I found Stefan's binaries (Thanks, Stefan): gcc version 4.7.0 20120217 - by SRMeister (GCC) It seems to show the same behaviour. ELPM is used in the __do_copy_data section (the only ELPM in my whole object code, btw.). (In reply to comment #1) > Can the EBI be switched off, so that RAMPZ affects ELPM but not LD? Actually, the EBI is switched off by default (and I'm not using it), but obviously RAMPZ does still affect the adressing of the data space (LD/ST with Z). I think switching EBI on/off only affects the function of the corresponding port pins. Further more, I didn't find any documentation if RAMPZ affects addressing of data space on devices without EBI, but it is documented that (for LD/ST with increment) > The RAMPZ Register in the I/O area is updated in parts with more than 64K > bytes data space or more than 64K bytes Program memory, [...]. (AVR Instruction Set, doc0856i)