电子大神的日记本,供应链专家的功夫茶盘,在这里记录、分享与共鸣。

登录以开始

arm-elf-ld -Bstatic -T选项含义

arm-elf-ld -Bstatic -T /s3c44b0/u-boot/board/hfrk/hfrks3c44b0/u-boot.lds -Ttext 0x0C700000 $UNDEF_SYM cpu/s3c44b0/start.o \

-T text

       -Tbss org
       -Tdata org
       -Ttext org
           Use org as the starting address for---respectively---the "bss",
           "data", or the "text" segment of the output file. org must be a
           single hexadecimal integer; for compatibility with other linkers,
           you may omit the leading 0x usually associated with hexadecimal
           values.

-T

       -T scriptfile
       --script=scriptfile
           Use scriptfile as the linker script. This script replaces ld's
           default linker script (rather than adding to it), so commandfile
           must specify everything necessary to describe the output file.
           If scriptfile does not exist in the current directory, "ld" looks
           for it in the directories specified by any preceding -L options.
           Multiple -T options accumulate.

       -Bstatic
       -dn
       -non_shared
       -static
           Do not link against shared libraries. This is only meaningful on
           platforms for which shared libraries are supported. The different
           variants of this option are for compatibility with various systems.
           You may use this option multiple times on the command line: it
           affects library searching for -l options which follow it.

博主
thinkker
thinkker's Blog
欢迎光临 
点击跳转