* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Don't hang if last option is unrecognised. (gld_${EMULATION_NAME}_set_symbols): Insert created symbols into ABS output section.
* ldemul.c (ldemul_parse_args): New. * ldemul.h (ld_emulation_xfer_struct): Add parse_args. * lexsup.c (all pe stuff): Moved into pe.em (parse_args): Call emulation arg parser. * emultempl/pe.em (parse_args): handle PE specfic args.