"Warning: ignoring changed section attributes for .text
"Warning: ignoring changed section attributes for .text
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.
Try this patch on irx.h
Stolen from http://sources.redhat.com/ml/binutils/2 ... 00099.html
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, };