http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53372
Bug #: 53372 Summary: [avr] Section attribute ignored with address space Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: g...@gcc.gnu.org Target: avr In the following code the section attribute is ignored const __memx int __attribute__((section(".rodata"))) a = 1; because the address space __memx overrides the section no matter what: .global a .section .progmem.data,"a",@progbits .type a, @object .size a, 2 a: .word 1