Subject: Re: Adding Multiboot support (or not)
To: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-kern
Date: 02/11/2006 17:12:27
On Sat, Feb 11, 2006 at 14:58:20 +0100, Pavel Cahyna wrote:
> On Sat, Feb 11, 2006 at 04:15:42PM +0300, Valeriy E. Ushakov wrote:
> > Current netwinder GENERIC looks like this:
> >
> > 00 .start
> > 01 .text link_set_malloc_types link_set_pools link_set_domains link_set_s
> > ysctl_funcs link_set_vfsops link_set_vfs_hooks link_set_evcnts link_set_dkwedge_
> > methods link_set_bufq_strats
> > 02 .data
> > 03 .bss
>
> What is the output of "readelf -l"?
Elf file type is EXEC (Executable file)
Entry point 0xc000
There are 4 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000000 0x00008000 0x00008000 0x040a8 0x040a8 R E 0x8000
LOAD 0x0040a8 0xf000c0a8 0x0000c0a8 0x277bac 0x277bac R E 0x8000
LOAD 0x280000 0xf0288000 0x00288000 0x86584 0x86584 RW 0x8000
LOAD 0x306584 0xf030e584 0xf030e584 0x00000 0x2b420 RW 0x8000
Section to Segment mapping:
Segment Sections...
00 .start
01 .text link_set_malloc_types link_set_pools link_set_domains link_set_sysctl_funcs link_set_vfsops link_set_vfs_hooks link_set_evcnts link_set_dkwedge_methods link_set_bufq_strats
02 .data
03 .bss
> I still don't see how do you indicate to the linker that the
> link_set_* sections should start at a paddr different from vaddr.
My point was that linker will merge link_set_* sections with the .text
and .rodata* sections (see the quotes from the ld.info the PR).
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen