Page 1 of 1

"Warning: ignoring changed section attributes for .text

Posted: Mon Jan 29, 2007 4:48 pm
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.

Posted: Fri Feb 02, 2007 9:36 pm
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

Posted: Sat Feb 03, 2007 12:09 am
by Herben
awesome, it works! Patched and committed to SVN, thanks! :D

Posted: Sat Feb 03, 2007 4:35 pm
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.