This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MIPS gas problem


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]