linker script: unify usage of discard definition
[pandora-kernel.git] / arch / x86 / kernel / vmlinux.lds.S
index 367e878..b600c84 100644 (file)
@@ -387,15 +387,12 @@ SECTIONS
                _end = .;
        }
 
-       /* Sections to be discarded */
-       /DISCARD/ : {
-               *(.exitcall.exit)
-               *(.eh_frame)
-               *(.discard)
-       }
-
         STABS_DEBUG
         DWARF_DEBUG
+
+       /* Sections to be discarded */
+       DISCARDS
+       /DISCARD/ : { *(.eh_frame) }
 }