File: make_firmware_object.in

package info (click to toggle)
dahdi-linux 1%3A2.3.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,640 kB
  • ctags: 14,900
  • sloc: ansic: 107,100; perl: 1,371; sh: 785; makefile: 477
file content (8 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
#!/bin/sh -e

# make an object file from a raw binary firmware file
# arguments:
#   1 - firmware file
#   2 - output file

objcopy -I binary ${1} -B BFDARCH -O BFDNAME ${2} --rename-section .data=.rodata,alloc,load,data,contents,readonly