Messages in this thread |  | | | Date | Wed, 20 May 2009 03:59:50 -0400 | | Subject | Re: [PATCH 2/7] linker script: throw away .discard section | | From | Mike Frysinger <> |
| |
On Wed, May 20, 2009 at 03:37, Tejun Heo wrote: > x86 throws away .discard section but no other archs do. Also, > .discard is not thrown away while linking modules. Make every arch > and module linking throw it away. This will be used to define dummy > variables for percpu declarations and definitions.
seems like a good time to introduce a common DISCARD define to include/asm-generic/vmlinux.lds.h. considering multiple /DISCARD/ entries are allowed in a linker script, the define should be pretty straightforward: #define DISCARDS \ /DISCARD/ : { \ EXIT_TEXT \ EXIT_DATA \ *(.exitcall.exit) \ *(.discard) \ } -mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |