级别: 新手上路
UID: 7870
精华: 0
发帖: 15
金钱: 75 两
威望: 15 点
综合积分: 30 分
注册时间: 2009-07-31
最后登录: 2016-05-08
楼主  发表于: 2010-06-14 02:56

 vboot

大家好,不知道是否有人对vboot这个小的bootload认真了解过,我接触不久,对head.s理解出了些问题,不知道哪位高手前辈读过,能给些经验上的交流,主要是gnu的汇编。 望高手加我qq 67470988
谢谢大家
真诚 努力
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-06-14 10:19
有问题就在这里讨论
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 7870
精华: 0
发帖: 15
金钱: 75 两
威望: 15 点
综合积分: 30 分
注册时间: 2009-07-31
最后登录: 2016-05-08
2楼  发表于: 2010-06-17 18:02

 回 1楼(kasim) 的帖子

.section .text.FirstSector(这句话不理解)
.globl first_sector(这句话我理解是)
.long ZBOOT_MAGIC(以点开头的东西是什么意思)
nop(这个函数是在哪定义的)
真诚 努力
级别: 侠客
UID: 12377
精华: 0
发帖: 83
金钱: 415 两
威望: 83 点
综合积分: 166 分
注册时间: 2010-01-05
最后登录: 2023-04-08
3楼  发表于: 2011-03-16 23:57
.section .text.FirstSector(这句话不理解)
应该是定义一个段,.text为代码区,可以参考GUN ARM Assembler Quick Reference。
.section <section_name> {,"<flags>"}解释:Statrts a new code or data section.Sections in Gun are called .text, a code section, .data, an initialied data section, and .bss, an uninitialized data section. These sections have default flags,and the linker understands the default names(similar directive to the armasm directive AREA).The following are allowable .section flags for ELF format files:
<Flag> meaning
a allowable section
w writable section
x executable section