Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Mar 2012 21:07:30 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        stable@FreeBSD.org
Cc:        i386@FreeBSD.org
Subject:   Re: [releng_8 tinderbox] failure on i386/i386
Message-ID:  <4F5A54F2.3040600@FreeBSD.org>
In-Reply-To: <201203091747.q29Hlxg0062921@freebsd-legacy2.sentex.ca>
References:  <201203091747.q29Hlxg0062921@freebsd-legacy2.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
on 09/03/2012 19:47 FreeBSD Tinderbox said the following:
> ld: kernel.debug: Not enough room for program headers (allocated 5, need 6)

Just in case someone more knowledgeable can pick up from here:
http://gcc.gnu.org/ml/gcc-bugs/2000-05/msg00797.html
http://www.delorie.com/gnu/docs/binutils/ld_48.html (bottom of the page)

BTW, something from i386 kernel that I have here:
Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0xc0400034 0xc0400034 0x000c0 0x000c0 R E 0x4
  INTERP         0x0000f4 0xc04000f4 0xc04000f4 0x0000d 0x0000d R   0x1
      [Requesting program interpreter: /red/herring]
  LOAD           0x000000 0xc0400000 0xc0400000 0x9d700e 0x9d700e R E 0x1000
  LOAD           0x9d7010 0xc0dd8010 0xc0dd8010 0xf1edc 0x29878c RW  0x1000
  DYNAMIC        0x9d7010 0xc0dd8010 0xc0dd8010 0x00068 0x00068 RW  0x4
  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4

Seems to have 6 items.

So maybe we could either use some fixed size instead of SIZEOF_HEADERS or
explicitly use PHDRS.

-- 
Andriy Gapon



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