uclinux-2008R1-RC8(bf561)到VDSP5的移植(8):_stext
来源:互联网 发布:布局 知乎 编辑:程序博客网 时间:2024/05/21 09:20
在vmlinux.lds.s中将_stext定义为指向代码段的首地址,如下所示:
.text :
{
__text = .;
_text = .;
__stext = .;
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
KPROBES_TEXT
*(.text.*)
*(.fixup)
. = ALIGN(16);
___start___ex_table = .;
*(__ex_table)
___stop___ex_table = .;
. = ALIGN(4);
__etext = .;
}
相应地我们也要在LDF文件中添加相应的内容:
.text
{
INPUT_SECTION_ALIGN(4)
. = (. + 3) / 4 * 4;
__text = .;
_text = .;
__stext = .;
INPUT_SECTIONS($OBJECTS_CORE_A(sdram_bank0) $LIBRARIES_CORE_A(sdram_bank0))
INPUT_SECTIONS($OBJECTS_CORE_A(VDK_ISR_code) $LIBRARIES_CORE_A(VDK_ISR_code))
INPUT_SECTIONS($OBJECTS_CORE_A(program) $LIBRARIES_CORE_A(program))
INPUT_SECTIONS($OBJECTS_CORE_A(noncache_code) $LIBRARIES_CORE_A(noncache_code))
INPUT_SECTIONS($LIBRARIES_CORE_A(.text.*))
INPUT_SECTIONS($LIBRARIES_CORE_A(.fixup))
INPUT_SECTION_ALIGN(16)
. = (. + 15) / 16 * 16;
___start___ex_table = .;
INPUT_SECTIONS($LIBRARIES_CORE_A(__ex_table))
___stop___ex_table = .;
INPUT_SECTION_ALIGN(4)
. = (. + 3) / 4 * 4;
__etext = .;
} > MEM_SDRAM
经过这样的修改后,原来的sdram段就不需要了。
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(8):_stext
- uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(19):_stext
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(13):未命名union的问题
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(1):前言
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(2):代码注释
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(3):Head.s
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(5):CONFIG_BANK_x
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(6):__bss_start
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(7):_sdata
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(9):bf53x_relocate_l1_mem
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(10):编译器配置
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(11):cmdline_init
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(12):init_thread_union
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(14):segment
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(15):WARN()
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(38):cache与spinlock
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(39):链接重排
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(40):中断优先级
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(7):_sdata
- Delphi使用技巧四则
- 用css制作星级评分
- 如何找出消耗cup的进程信息和执行的语句
- 用Delphi 开发数据库程序经验三则
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(8):_stext
- 分享:CSS使用技巧20则
- SQL查询语句精华使用简要
- eclipse 中的工程不能编译的一个原因
- 远程控制篇:通过IP地址得到机器名
- 超级漂亮的表格:彩色背景
- 获取主机名称是关于SetComputerNameEx函数的使用问题!
- 调整SQLServer2000运行中数据库结构
- 在应用程序中开关WINDOWS系统