linux-mips
[Top] [All Lists]

Re: MIPS gas problem

To: Hiroyuki Machida <machida@sm.sony.co.jp>
Subject: Re: MIPS gas problem
From: "Koundinya.K" <kk@ddeorg.soft.net>
Date: Thu, 20 Apr 2000 17:37:56 +0530
Cc: binutils@sourceware.cygnus.com, linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org
In-reply-to: Your message of "Thu, 20 Apr 2000 11:13:20 +0900." <20000420111320Z.machida@sm.sony.co.jp>
Sender: owner-linuxmips@oss.sgi.com
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.


koundinya




<Prev in Thread] Current Thread [Next in Thread>