1 # $NetBSD: Makefile.cats.inc,v 1.21 2008/06/07 19:22:43 he Exp $
4 CPPFLAGS+= -D${MACHINE}
6 .if (${OBJECT_FMT} == "ELF")
8 .if defined(ABLEELF) && (${ABLEELF} == "1")
9 # use a standard ELF format, adjusted to align areas
10 LINKFLAGS= -T ${THISARM}/conf/ldscript.elf
13 # Need to convert the kernel from ELF to a.out so that the firmware
16 LINKFLAGS= -T ldscript
18 SYSTEM_LD_HEAD_EXTRA+=; \
19 ( cat ${ARM}/conf/kern.ldscript.head ; \
20 OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \
22 cat ${ARM}/conf/kern.ldscript.tail ) > ldscript
24 SYSTEM_LD_TAIL_EXTRA+=; \
26 "${OBJCOPY} -O a.out-arm-netbsd \
27 -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
28 -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
29 -R .debug_frame -R .debug_loc -R .debug_pubnames \
30 -R .debug_aranges -R .ARM.attributes \
32 ${OBJCOPY} -O a.out-arm-netbsd \
33 -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
34 -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
35 -R .debug_frame -R .debug_loc -R .debug_pubnames \
36 -R .debug_aranges -R .ARM.attributes \