(ARM + Linux)GNU链接脚本中的".ARM.attributes"是什么意思?

(ARM + Linux)GNU链接脚本中的".ARM.attributes"是什么意思?,第1张

所谓gnu链接脚本,其实一般都是lds脚本,或者说是elf格式的bin文件组成的脚本文件,主要是告诉你代码是怎么排列在elf文件终,至于为啥要烧到arm,其实一般都烧录在flash中的,然后arm引导程序启动就需要从flash获取机器猫,也就是你说的那些段,常见的有data,bss,text,rely等

1,安装Codeblocks,具体的安装方法比较简单,直接下载安装就OK

2,下载arm-2014.05-29-arm-none-linux-gnueabi(以此为例),然后安装即可

3,打开CodeBlocks,点击Settings->Debugger

4,选择Default选项,选择GDB,在Executable path选择arm-2014.05-29-arm-none-linux-gnueabi的安装目录/bin 内的arm-none-linux-gnueabi-gdb,点击OK

5,点击Settings->Compiler...,在Selected compiler选择GNU GCC Compiler for ARM

6,点击Toolchain executables,在Compiler's installation directory选择arm-2014.05-29-arm-none-linux-gnueabi的安装目录,例如我的为C:\Users\Administrator\MentorGraphics\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux

7,然后在C compiler:选择arm-none-linux-gnueabi-gcc.exe

8,C++ compiler:arm-none-linux-gnueabi-g++.exe

9,Link for dynamic libs:arm-none-linux-gnueabi-g++.exe

10,Linker for static libs:arm-none-linux-gnueabi-ar.exe

11,Debugger: GDB/CDB debugger:Default

12,Make program:cs-make.exe


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/7320243.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-04
下一篇 2023-04-04

发表评论

登录后才能评论

评论列表(0条)

保存