|
谢谢提醒,顺便问一下.
看asm.S的代码.EXT_C(main) + 0x70之前还有许多空白的地方,比如如下
. = EXT_C(main) + 0x34
.word 0x14C /* CPU type for i386 and compatibles */
.word 1 /* there is 1 section */
. = EXT_C(main) + 0x44
.word 0x00 /* size of optional header */
.word 3 /* flags: "no relocation" and "valid executable" */
.word 0x722E /* section name for resources */
.word 0x7273
.word 0x63
/* Utilities may use this to locate the bss starting address,
* where the "bootlace" signature is placed and preset-menu
* follows.
*/
. = EXT_C(main) + 0x6C #; bss starting address
0x38-0x44,0x50-0x6C之前看起来都是没有使用到的,我想在这里增加一个变量好像不行,设置了一个变量启动后看了一下值为0,不知为何?现在要增加内存变量只有0x100之后有一点空间了.
|
|