This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: MIPS gas problem
- To: kk at ddeorg dot soft dot net
- Subject: Re: MIPS gas problem
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 20 Apr 2000 09:48:12 -0700
- CC: machida at sm dot sony dot co dot jp, binutils at sourceware dot cygnus dot com, linux at cthulhu dot engr dot sgi dot com, debian-mips at lists dot debian dot org
- References: <200004201207.RAA07021@madras.ddeorg.soft.net>
Date: Thu, 20 Apr 2000 17:37:56 +0530
From: "Koundinya.K" <kk@ddeorg.soft.net>
machida@sm.sony.co.jp 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.
This is a gcc issue, not a binutils issue. You probably need to
define MAX_OFILE_ALIGNMENT somewhere in your tm.h file.
Ian