On Jul 3, 2011, at 5:30 AM, Izumi Tsutsui wrote: > For (1) I think "OBJDUMP_ARM_AOUT_FLAGS" like this: > --- > OBJDUMP_ARM_AOUT_FLAGS= \ > -O a.out-arm-netbsd \ > -R .ident \ > -R .ARM.attributes \ > -R .arm.atpcs \ > -R .comment \ > -R .debug_abbrev \ > -R .debug_info \ > -R .debug_line \ > -R .debug_frame \ > -R .debug_loc \ > -R .debug_pubnames \ > -R .debug_aranges \ > -R .debug_str \ > -R .debug_pubtypes \ > -R .note.netbsd.ident > --- > (no info which binutils generates which ones though) > > For (2), not sure which is better bsd.own.mk or bsd.sys.mk etc. > > Note: > - sgimips has similar flags to generate ecoff bootloaders > - I'm not sure if we can use elf2aout(1) for old ARM firmware
I think OBJDYMP_AOUT_FLAGS inside a if ${MACINE_ARCH} == "arm" ... block is a better choice.