Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2002 12:19:12 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        John Polstra <jdp@polstra.com>
Cc:        freebsd-alpha@freebsd.org
Subject:   RE: more on recent current alpha rtld/binutils breakage.
Message-ID:  <15460.2192.700851.947838@grasshopper.cs.duke.edu>
In-Reply-To: <XFMail.020208091511.jdp@polstra.com>
References:  <15460.1586.888567.63521@grasshopper.cs.duke.edu> <XFMail.020208091511.jdp@polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help

John Polstra writes:
 > On 08-Feb-02 Andrew Gallatin wrote:
 > > 
 > > I think this implies that either the kernel isn't setting up the map
 > > correctly, or that the elf header is wrong & its not marked
 > > executable.
 > > 
 > > _rtld seems to be in the text section:
 > > 
 > >   5 .text         00012d20  0000000000007340  0000000000007340 00007340  2**5
 > > 
 > 
 > If you do "objdump -p" on the dynamic linker it will show the load
 > segments, among other things.  The "flags" field at the end of the
 > line shows the permissions given to the segment.
 > 
 > John

Do the flags look OK?  If I'm reading it right, I think they're ok...  It looks mostly the same as when linked with the old ld:

ld-elf.so.1.bad:     file format elf64-alpha

Program Header:
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**16
         filesz 0x000000000001b9ae memsz 0x000000000001b9ae flags r-x
    LOAD off    0x000000000001b9b0 vaddr 0x000000000002b9b0 paddr 0x000000000002b9b0 align 2**16
         filesz 0x00000000000024f8 memsz 0x0000000000003a80 flags rwx
 DYNAMIC off    0x000000000001d1a8 vaddr 0x000000000002d1a8 paddr 0x000000000002d1a8 align 2**3
         filesz 0x0000000000000100 memsz 0x0000000000000100 flags rw-

Dynamic Section:
  SYMBOLIC    0x0
  HASH        0xe8
  STRTAB      0x33f0
  SYMTAB      0x13e0
  STRSZ       0xdb2
  SYMENT      0x18
  PLTGOT      0x2d2a8
  RELA        0x41a8
  RELASZ      0x3180
  RELAENT     0x18


ld-elf.so.1.good:     file format elf64-alpha

Program Header:
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**16
         filesz 0x000000000001bbce memsz 0x000000000001bbce flags r-x
    LOAD off    0x000000000001bbd0 vaddr 0x000000000002bbd0 paddr 0x000000000002bbd0 align 2**16
         filesz 0x00000000000024a8 memsz 0x0000000000003a30 flags rwx
 DYNAMIC off    0x000000000001dfc8 vaddr 0x000000000002dfc8 paddr 0x000000000002dfc8 align 2**3
         filesz 0x00000000000000b0 memsz 0x00000000000000b0 flags rw-

Dynamic Section:
  SYMBOLIC    0x0
  HASH        0xe8
  STRTAB      0x33f0
  SYMTAB      0x13e0
  STRSZ       0xfe9
  SYMENT      0x18
  PLTGOT      0x2d3c8
  RELA        0x43e0
  RELASZ      0x3180
  RELAENT     0x18



What next?

Thanks,

Drew

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15460.2192.700851.947838>