With GNU Binutils:
$ objdump -w -d file.o
$ objcopy -O binary image.elf image.bin
$ avr-objcopy -O ihex image.elf image.ihex