I'm not very familiar with 'nasm', but assuming it produces regular elf
object files:
$(LD) -r -o {target}.o main.o hwaccess.o
'$(LD) -r' is used lots of places in kernel makefiles already. (Too
many places, actually, most of which could and should be automated.
Kai Germaschewski has recently done some work to this end.)
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/