ports/Xen on CURRENT, error: ELF start or entries are out of bounds.

Roger Pau Monné royger at FreeBSD.org
Wed Mar 23 11:10:41 UTC 2016


On Tue, 22 Mar 2016, Ed Maste wrote:
> On 21 March 2016 at 10:50, Ed Maste <emaste at freebsd.org> wrote:
> > On 17 March 2016 at 13:30, dfh0522 . <dfh0522 at gmail.com> wrote:
> >>
> >> I need to add WITHOUT_ELFCOPY_AS_OBJCOPY after r296096,
> >
> > Sorry for the trouble.
> >
> > I've submitted an ELF Tool Chain ticket
> > (https://sourceforge.net/p/elftoolchain/tickets/524/) for this issue
> > in elfcopy. I expect either Roger or I will have a fix in the next few
> > days, but WITHOUT_ELFCOPY_AS_OBJCOPY will do for now.
> 
> Kai has committed a potential fix for the ticket to the ELF Tool Chain
> repo. I've made a patch for the FreeBSD contrib copy available for
> testing at https://people.freebsd.org/~emaste/patches/elfcopy-lma.diff
> .

Thanks for the notice! I've tried the patch and it indeed fixes the issue 
seen on the FreeBSD kernel, here's the readelf output now:

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flg    Align
  PHDR           0x0000000000000040 0xffffffff80200040 0x0000000000200040
                 0x0000000000000150 0x0000000000000150  R E    0x8
  INTERP         0x0000000000000190 0xffffffff80200190 0x0000000000200190
                 0x000000000000000d 0x000000000000000d  R      0x1
      [Requesting program interpreter: /red/herring]
  LOAD           0x0000000000000000 0xffffffff80200000 0x0000000000200000
                 0x00000000013ed618 0x00000000013ed618  R E    0x200000
  LOAD           0x00000000013ee000 0xffffffff817ee000 0x00000000017ee000
                 0x0000000000135c38 0x000000000060fc40  RW     0x200000
  DYNAMIC        0x00000000013ee000 0xffffffff817ee000 0x00000000017ee000
                 0x00000000000000d0 0x00000000000000d0  RW     0x8
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RWE    0x8

Roger.


More information about the freebsd-virtualization mailing list