"Warning: ignoring changed section attributes for .text

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Herben
Posts: 107
Joined: Sun Jan 25, 2004 10:25 am

"Warning: ignoring changed section attributes for .text

Post by Herben »

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.
sneeze
Posts: 15
Joined: Fri Mar 03, 2006 4:31 am

Post by sneeze »

Try this patch on irx.h

Code: Select all

--- 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/2 ... 00099.html
Herben
Posts: 107
Joined: Sun Jan 25, 2004 10:25 am

Post by Herben »

awesome, it works! Patched and committed to SVN, thanks! :D
EP
Posts: 39
Joined: Sat Nov 05, 2005 1:14 pm

Post by EP »

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.
Post Reply