summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wong <gtw@gnu.org>2009-09-14 09:59:32 -0600
committerGary Wong <gtw@gnu.org>2009-09-14 09:59:32 -0600
commita5486c78394f3d8a69efdb416706d16873a24b4b (patch)
treef38335a8eca834ae967b4c64bc78d50180e2f6fb
parentd51ca09b1e85c78df4f0490b7c1ffbf3e6034bed (diff)
Clean up linker initialisation section commit.
-rw-r--r--gwm.h3
-rw-r--r--gwm.ld10
2 files changed, 3 insertions, 10 deletions
diff --git a/gwm.h b/gwm.h
index 5ae7468..10ade58 100644
--- a/gwm.h
+++ b/gwm.h
@@ -36,6 +36,9 @@
#if HAVE_INIT_SECTION
#define INIT __attribute__((section( ".gwminit.text" ) ))
#define INITD __attribute__((section( ".gwminit.rodata" ) ))
+#else
+#define INIT
+#define INITD
#endif
#define SEND_EVENT_MASK 0x80
diff --git a/gwm.ld b/gwm.ld
deleted file mode 100644
index d6d0617..0000000
--- a/gwm.ld
+++ /dev/null
@@ -1,10 +0,0 @@
-SECTIONS
-{
- . = ALIGN (4096);
- init_start = .;
- .gwminit.text : { init*(.text ) }
- .gwminit.rodata : { init*(.rodata ) }
- . = ALIGN (4096);
- init_end = .;
-}
-INSERT AFTER .text;