Index: arch/amd64/_link.ld.in
===================================================================
--- arch/amd64/_link.ld.in	(revision 8e3fb24c05938bbc6c146ee7ec4c8052313c678d)
+++ arch/amd64/_link.ld.in	(revision ddd9486ba276c1957eeaf2ed50f9c6d8132da05d)
@@ -49,9 +49,6 @@
 		*(COMMON);		/* global variables */
 
-
-
 		*(.eh_frame);
 		*(.bss);		/* uninitialized static variables */
-		*(K_DATA_END);
 
 		symbol_table = .;
Index: arch/ia32/_link.ld.in
===================================================================
--- arch/ia32/_link.ld.in	(revision 8e3fb24c05938bbc6c146ee7ec4c8052313c678d)
+++ arch/ia32/_link.ld.in	(revision ddd9486ba276c1957eeaf2ed50f9c6d8132da05d)
@@ -25,4 +25,5 @@
 		unmapped_kdata_start = .;
 		*(K_DATA_START);
+//		LONG(0xdeadbeaf);		/* TODO: remove 0xdeadbeaf */
 		unmapped_kdata_end = .;
 	}
@@ -35,7 +36,7 @@
 		
 		kdata_start = .;
-		*(.data);		/* initialized data */
-		*(.rodata*);		/* string literals */
-		*(COMMON);		/* global variables */
+		*(.data);			/* initialized data */
+		*(.rodata*);			/* string literals */
+		*(COMMON);			/* global variables */
 		hardcoded_load_address = .;
 		LONG(PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET));
@@ -48,9 +49,10 @@
 		hardcoded_unmapped_kdata_size = .;
 		LONG(unmapped_kdata_end - unmapped_kdata_start);
-		*(.bss);		/* uninitialized static variables */
-		*(K_DATA_END);
+		*(.bss);			/* uninitialized static variables */
+		*(.note.GNU-stack);
+                *(.comment);
 
 		symbol_table = .;
-		*(symtab.*);            /* Symbol table, must be LAST symbol!*/
+		*(symtab.*);            	/* Symbol table, must be LAST symbol! */
 
 		kdata_end = .;
Index: arch/ia32/src/acpi/madt.c
===================================================================
--- arch/ia32/src/acpi/madt.c	(revision 8e3fb24c05938bbc6c146ee7ec4c8052313c678d)
+++ arch/ia32/src/acpi/madt.c	(revision ddd9486ba276c1957eeaf2ed50f9c6d8132da05d)
@@ -132,5 +132,4 @@
 		madt_entries_index_cnt++;
 	}
-	printf("MADT: Found %d entries\n", madt_entries_index_cnt);
 
 	/* create madt apic entries index array */
@@ -142,5 +141,4 @@
 		madt_entries_index[index++] = h;
 	}
-
 
 	/* Quicksort MADT index structure */
Index: arch/ia32/src/pm.c
===================================================================
--- arch/ia32/src/pm.c	(revision 8e3fb24c05938bbc6c146ee7ec4c8052313c678d)
+++ arch/ia32/src/pm.c	(revision ddd9486ba276c1957eeaf2ed50f9c6d8132da05d)
@@ -70,7 +70,4 @@
 struct tss *tss_p = NULL;
 
-/* TODO: Does not compile correctly if it does not exist ???? */
-int __attribute__ ((section ("K_DATA_START"))) __fake;
-
 /* gdtr is changed by kmp before next CPU is initialized */
 struct ptr_16_32 protected_bootstrap_gdtr = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt) };
Index: arch/mips/include/byteorder.h
===================================================================
--- arch/mips/include/byteorder.h	(revision 8e3fb24c05938bbc6c146ee7ec4c8052313c678d)
+++ arch/mips/include/byteorder.h	(revision ddd9486ba276c1957eeaf2ed50f9c6d8132da05d)
@@ -30,5 +30,4 @@
 #define __mips_BYTEORDER_H__
 
-/* MIPS is little-endian */
 #ifdef BIG_ENDIAN
 static inline __u64 u64_le2host(__u64 n)
