> > Log Message: > > Sync with src/sys/arch/shark/conf/Makefile.shark.inc rev 1.14: > > > also need to strip out GCC 4.5's new .debug_pubtypes section. > > > while here, minor cleanup. > > > > XXX: probably we should have something like ${ARM_AOUT_REMOVE_SECTIONS} > > XXX: in bsd.own.mk > > thanks for that. your suggestion sounds like a good idea. can you do it?
I wonder (1) how that flag should be defined (2) which *.mk file should have this 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 --- Izumi Tsutsui