mod/file2alias: make modpost compile on darwin again
authorAndreas Bießmann <andreas@biessmann.de>
Fri, 24 Feb 2012 07:23:53 +0000 (08:23 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 26 Feb 2012 23:59:31 +0000 (10:29 +1030)
commitdd2a3acaecd7abb2d43b09a823cf2e4c967fa2ac
treedf29f8479dedda8939f680998aa857e4ebd1d176
parent203738e548cefc3fc3c2f73a9063176c9f3583d5
mod/file2alias: make modpost compile on darwin again

commit e49ce14150c64b29a8dd211df785576fa19a9858 breaks cross compiling
the linux kernel on darwin hosts.
This fix introduce some minimal glue to adopt linker section handling
for darwin hosts.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Jochen Friedrich <jochen@scram.de>
CC: Samuel Ortiz <sameo@linux.intel.com>
CC: "K. Y. Srinivasan" <kys@microsoft.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Tested-by: Bernhard Walle <bernhard@bwalle.de>
scripts/mod/file2alias.c