TRIMUI SMART

解決"arm-linux-gnueabihf-size: invalid option -- G"問題


參考資訊:
1. xboot

問題如下:

arm-linux-gnueabihf-size: invalid option -- 'G'
Usage: arm-linux-gnueabihf-size [option(s)] [file(s)]
 Displays the sizes of sections inside binary files
 If no input file(s) are specified, a.out is assumed
 The options are:
  -A|-B     --format={sysv|berkeley}  Select output style (default is berkeley)
  -o|-d|-x  --radix={8|10|16}         Display numbers in octal, decimal or hex
  -t        --totals                  Display the total sizes (Berkeley only)
            --common                  Display total size for *COM* syms
            --target=<bfdname>        Set the binary file format
            @<file>                   Read options from <file>
  -h        --help                    Display this information
  -v        --version                 Display the program's version

arm-linux-gnueabihf-size: supported targets: elf32-littlearm elf32-littlearm-fdpic elf32-bigarm elf32-bigarm-fdpic elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
make[1]: *** [Makefile:342: ../output/xboot] Error 1
make: *** [Makefile:10: all] Error 2

解法如下:

$ vim src/Makefile
    341     #@echo [SZ] Listing $@
    342     #@$(SZ) -G $@


返回上一頁