forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Warning: ignoring changed section attributes for .text

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Herben



Joined: 25 Jan 2004
Posts: 107

PostPosted: Mon Jan 29, 2007 4:48 pm    Post subject: "Warning: ignoring changed section attributes for .text Reply with quote

Does anyone know how to suppress this warning when compiling IRXes with GCC 3.2.2? I hate having it show up, I have a tendency to miss other warnings when they're mixed in with this.
Back to top
View user's profile Send private message
sneeze



Joined: 03 Mar 2006
Posts: 15

PostPosted: Fri Feb 02, 2007 9:36 pm    Post subject: Reply with quote

Try this patch on irx.h

Code:

--- irx.h_orig  2007-02-02 12:33:08.000000000 +0100
+++ irx.h       2007-02-02 12:34:14.000000000 +0100
@@ -50,7 +50,7 @@
  */
 #define DECLARE_IMPORT_TABLE(modname, major, minor)    \
 static struct irx_import_table _imp_##modname          \
-       __attribute__((section(".text"), unused))= {    \
+       __attribute__((section(".text\n\t#"), unused))= {       \
        magic: IMPORT_MAGIC, version: IRX_VER(major, minor),    \
        name: #modname, };

@@ -86,7 +86,7 @@

 #define DECLARE_EXPORT_TABLE(modname, major, minor)    \
 struct irx_export_table _exp_##modname                 \
-       __attribute__((section(".text"), unused)) = {   \
+       __attribute__((section(".text\n\t#"), unused)) = {      \
        magic: EXPORT_MAGIC, version: IRX_VER(major, minor),    \
        name: #modname, };


Stolen from http://sources.redhat.com/ml/binutils/2000-06/msg00099.html
Back to top
View user's profile Send private message
Herben



Joined: 25 Jan 2004
Posts: 107

PostPosted: Sat Feb 03, 2007 12:09 am    Post subject: Reply with quote

awesome, it works! Patched and committed to SVN, thanks! :D
Back to top
View user's profile Send private message
EP



Joined: 05 Nov 2005
Posts: 39

PostPosted: Sat Feb 03, 2007 4:35 pm    Post subject: Reply with quote

Excellent work on this one sneeze. This is one of those little things I thought we would have to live with forever.:) Now uLaunchELF can compile with 0 warnings with whichever IOP compiler.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group