make_firmware_object.in 239 B

123456789
  1. #!/bin/sh -e
  2. # make an object file from a raw binary firmware file
  3. # arguments:
  4. # 1 - firmware file
  5. # 2 - output file
  6. objcopy -I binary ${1} -B BFDARCH -O BFDNAME ${2} --rename-section .data=.rodata,alloc,load,data,contents,readonly