This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ld issues with phdr test


On Sun, Apr 29, 2001 at 08:14:13PM +0200, Andreas Jaeger wrote:
> > 
> > 1. What is broken? How is it broken?
> 
> The output for i386 is :
> tmpdir/phdrs:     file format elf32-i386
> 
> Program Header:
>     PHDR off    0x00000034 vaddr 0x00080034 paddr 0x00080034 align 2**2
>          filesz 0x00000060 memsz 0x00000060 flags r--
>     LOAD off    0x00000000 vaddr 0x00080000 paddr 0x00080000 align 2**12
>          filesz 0x00000098 memsz 0x00000098 flags r-x
>     LOAD off    0x00000098 vaddr 0x00080098 paddr 0x00080098 align 2**12
>          filesz 0x00000004 memsz 0x00000004 flags rw-
> 
> For x86-64 I get different values, for PHDR vaddr and paddr are
> wrong (there's an offset of 0x80000 missing):
> > >     PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
> > >          filesz 0x00000000000000a8 memsz 0x00000000000000a8 flags r--
> 
> 
> The first LOAD off is also wrong, the vaddr, paddr and memsz values
> look broken:
> 
> > >     LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**20
> > >          filesz 0x00000000000800ec memsz 0x00000000000800ec flags r-x
> 
> Only the second LOAD off look fine:
> > >     LOAD off    0x00000000000800ec vaddr 0x00000000000800ec paddr 0x00000000000800ec align 2**20
> > >          filesz 0x0000000000000004 memsz 0x0000000000000004 flags rw-
> 

Can you try

TEXT_START_ADDR=0x10000
MAXPAGESIZE=0x10000
NONPAGED_TEXT_START_ADDR=0x10000

in elf_x86_64.sh?


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]