 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Herben
Joined: 25 Jan 2004 Posts: 107
|
Posted: Mon Jan 29, 2007 4:48 pm Post subject: "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. |
|
| Back to top |
|
 |
sneeze
Joined: 03 Mar 2006 Posts: 15
|
Posted: Fri Feb 02, 2007 9:36 pm Post subject: |
|
|
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 |
|
 |
Herben
Joined: 25 Jan 2004 Posts: 107
|
Posted: Sat Feb 03, 2007 12:09 am Post subject: |
|
|
| awesome, it works! Patched and committed to SVN, thanks! :D |
|
| Back to top |
|
 |
EP
Joined: 05 Nov 2005 Posts: 39
|
Posted: Sat Feb 03, 2007 4:35 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|