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

2009-4-14 23:26 3951 5 5 分类: MCU/ 嵌入式

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.

文章评论0条评论)

登录后参与讨论
我要评论
0
5
关闭 站长推荐上一条 /2 下一条