memtest86+ on freebsd

Eygene Ryabinkin rea-fbsd at codelabs.ru
Mon Dec 15 06:27:15 PST 2008


Andriy, good day.

Mon, Dec 15, 2008 at 02:08:15PM +0200, Andriy Gapon wrote:
> on 12/12/2008 13:17 Andriy Gapon said the following:
> > Just in case anybody still remembers this issue.
> > It seams that the main culprit here was the following line in the linker
> > script:
> > 
> > OUTPUT_FORMAT("elf32-i386");
> > 
> > I was tipped just today that it should have read:
> > OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd",
> > "elf32-i386-freebsd");
> 
> In fact it was Stephan Eisvogel who provided me with this hint.

Yes, it is a somewhat known culprit.  A number of packages that are
messing with assembly code have troubles due to this directive.  The
better way to overcome this issue is not to patch linker scripts, but to
override object format via '--oformat elf32-i386-freebsd' command-line
switch to ld(1).  With this your proposed patch could be made even
smaller, providing that you can override linker command-line switches,
and it will be more robust in respect to the patching troubles when
linker scripts will be changed.
-- 
Eygene
 _                ___       _.--.   #
 \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' `         ,       __.--'      #  to read the on-line manual   
 )/' _/     \   `-_,   /            #  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook 
    {_.-``-'         {_/            #
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20081215/8a2373c5/attachment.pgp


More information about the freebsd-hackers mailing list