[EMAIL PROTECTED] said: -> Hi -> I found the problem "__attribute__ ((aligned(xx))" doesn't work -> properly on MIPS/Linux. Please try to execute the attached test. I -> think this problem can be reproduced on any ELF/MIPS box except -> EMBEDED system which has OS name "elf".
-> I tracked down and finaly found gas/config/t-mips.c:s_change_sec(sec) -> sets always ".rodata" section-alignment to 2**4. This should be set -> to the maximum rodata object's alignment value. I am seeing something different (gcc 2.95.2 and binutils from snapshot 000213) on my mips based machine (mips-dde-sysv4.2MP) [~] gcc -c rotest.c -o rotest.o rotest.c:8: warning: alignment of `global1' is greater than maximum object file alignment. Using 8. rotest.c:9: warning: alignment of `global2' is greater than maximum object file alignment. Using 8. rotest.c:11: warning: alignment of `local1' is greater than maximum object file alignment. Using 8. rotest.c:12: warning: alignment of `local2' is greater than maximum object file alignment. Using 8. koundinya

