Results 1 to 1 of 1
below is snippet of vmlinux.lds file
SECTIONS
{
. = 0xffffffff80000200;
/* read-only */
_text = .; /* Text and read-only data */
.text : {
. = ALIGN( ; ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-13-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 3
Why LOADADDR doesn't match in vmlinux(ELF file)?
below is snippet of vmlinux.lds file
SECTIONS
{
. = 0xffffffff80000200;
/* read-only */
_text = .; /* Text and read-only data */
.text : {
. = ALIGN(
; *(.text) *(.text.init.refok) *(.exit.text.refok)
. = ALIGN(
; __sched_text_start = .; *(.sched.text) __sched_text_end = .;
. = ALIGN(
; __lock_text_start = .; *(.spinlock.text) __lock_text_end = .;
. = ALIGN(
; __kprobes_text_start = .; *(.kprobes.text) __kprobes_text_end = .;
*(.fixup)
*(.gnu.warning)
} :text = 0
_etext = .; /* End of text section */
Obviously, LOADADDR is at 0xffffffff80000200. But LOADADDR always align
0x800 in vmlinux(ELF file, check up by readelf command). That is, if LOADADDR is 0xffffffff80000100, 0xffffffff80000200...,0xffffffff80000700. It
always align to 0x80000800. And if LOADADDR is 0xffffffff80000900,
0xffffffff80000A00..., 0xffffffff80000F00. It always align to 0x80001000.
Why it happens? Do I miss something?
My tool chain is mipsel-sdelinux-v6.05.00-4.i386 .
My kernel is linux-2.6.24.3.
Thanks for your helps.


Reply With Quote
