摘要:
有几个概念需要重新梳理一下。 Cylinder-head-sector(CHS) 这里的Cylinder和track容易搞混,track是一个平面的东西,而Cylinder相当于多个track竖着叠起来,形成一个柱状。 CHS可以有三组数字,定位在硬盘中的某一个扇区。可以用LBA (Logical block address)来说明。 LBA 可以和CHS三元组进行相互换算。 见http://e... 阅读全文
posted @ 2009-05-21 23:10
Fan Zhang
阅读(256)
评论(0)
推荐(0)
摘要:
gcc可以通过-Wl将参数传入ld命令 GCC: -Wl,option Pass option as an option to the linker. If option contains commas, it is split into multiple options at the commas. LD: -Tbss org -Tdata org -Ttext orgSame as –sect... 阅读全文
posted @ 2009-05-21 17:03
Fan Zhang
阅读(260)
评论(0)
推荐(0)
摘要:
.text .code32 .globl _start; _start: . = 0x200 //这是让下面的代码偏移量为0x200 movl 0x100,%eax 阅读全文
posted @ 2009-05-21 16:48
Fan Zhang
阅读(192)
评论(0)
推荐(0)
摘要:
SECTIONS{ . = 0x10000; .text : { *(.text) } . = 0x8000000; .data : { *(.data) } .bss : { *(.bss) }} The first line inside the `SECTIONS' command of the above example sets the value o... 阅读全文
posted @ 2009-05-21 16:25
Fan Zhang
阅读(186)
评论(0)
推荐(0)
摘要:
Basic Linker Script Concepts Every loadable or allocatable output section has two addresses. The first is the VMA, or virtual memory address. This is the address the section will have when the output ... 阅读全文
posted @ 2009-05-21 15:45
Fan Zhang
阅读(364)
评论(0)
推荐(0)
摘要:
运行ld –verbose GNU ld version 2.17.50 20060824 Supported emulations: i386pe using internal linker script: ================================================== /* Default linker script... 阅读全文
posted @ 2009-05-21 15:29
Fan Zhang
阅读(619)
评论(0)
推荐(0)

浙公网安备 33010602011771号