上一页 1 ··· 224 225 226 227 228 229 230 231 232 ··· 280 下一页
摘要: u-boot 介绍 U­boot 是德国 DENX 小组的开发用于多种嵌入式 CPU 的 bootloader 程序, U­Boot 不仅仅支持嵌入式 Linux 系统的引导,当前,它还支持 NetBSD, VxWorks, QNX, RTEMS, ARTOS, LynxOS 嵌入式操作系统。U­B 阅读全文
posted @ 2019-06-29 08:50 樊伟胜 阅读(858) 评论(0) 推荐(0) 编辑
摘要: 主要符号说明 OUTPUT_FORMAT(bfdname) 指定输出可执行文件格式. OUTPUT_ARCH(bfdname) 指定输出可执行文件所运行 CPU 平台 ENTRY(symbol) 指定可执行文件的入口段 段定义说明 1. 段定义格式 SECTIONS { ... 段名 : { 内容 阅读全文
posted @ 2019-06-29 08:49 樊伟胜 阅读(665) 评论(0) 推荐(0) 编辑
摘要: .abort: 停止汇编 .align abs­expr1, abs­expr2: 以某种对齐方式,在未使用的存储区域填充值. 第一个值表示对齐方式,4, 8,16 或 32. 第 二个表达式值表示填充的值. .if .else .endif: 支持条件预编译 .include "file": 包含 阅读全文
posted @ 2019-06-29 08:47 樊伟胜 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1. @ 表示注释从当前位置到行尾的字符. 2. # 注释掉一整行. 3. ; 新行分隔符. 阅读全文
posted @ 2019-06-29 08:47 樊伟胜 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 生成可以执行的 2 进制代码 [arm@localhost gcc]#arm­linux­copydump ­O binary hello hello.bin 阅读全文
posted @ 2019-06-29 08:46 樊伟胜 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 3.2.1 1. 移除所有的符号信息 [arm@localhost gcc]#cp hello hello1 [arm@localhost gcc]#arm­linux­strip ­strip­all hello ­­strip­all: 是移除所有符号信息 [arm@localhost gcc] 阅读全文
posted @ 2019-06-29 08:45 樊伟胜 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: 1. 查看静态库或.o 文件的组成文件 [arm@localhost gcc]$ arm­linux­objdump ­a libhello.a 2. 查看静态库或.o 文件的络组成部分的头部分 [arm@localhost gcc]$ arm­linux­objdump ­h libhello.a 阅读全文
posted @ 2019-06-29 08:44 樊伟胜 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 1. 读 elf 文件开始的文件头部 1. 读 elf 文件开始的文件头部 [arm@localhost gcc]$ arm­linux­readelf ­h hello ELF Header: Magic: 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 阅读全文
posted @ 2019-06-29 08:44 樊伟胜 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 静态库是在编译时需要的库。 1. 建立一个静态库 [arm@localhost gcc]#arm­linux­ar ­r libhello.a h1.o h2.o 2. 为静态库建立索引 [arm@localhost gcc]#arm­linux­ar ­s libhello.a [arm@loca 阅读全文
posted @ 2019-06-29 08:35 樊伟胜 阅读(816) 评论(0) 推荐(0) 编辑
摘要: 1. 编译 C 文件,生成 elf 可执行文件 h1.c 源文件 #include <stdio.h> void hellofirst(void) { printf("The first hello! \n"); } h2.c 源文件 #include <stdio.h> void hellosec 阅读全文
posted @ 2019-06-29 08:31 樊伟胜 阅读(385) 评论(0) 推荐(0) 编辑
上一页 1 ··· 224 225 226 227 228 229 230 231 232 ··· 280 下一页