Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2008 14:36:44 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        "Peter Wemm" <peter@wemm.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, "cvs-all@freebsd.org" <cvs-all@freebsd.org>, obrien@freebsd.org
Subject:   Re: svn commit: r180431 - in head/sys: kern sys
Message-ID:  <86k5fep02r.fsf@ds4.des.no>
In-Reply-To: <e7db6d980807101700u59628892g75f01aabed22bda5@mail.gmail.com> (Peter Wemm's message of "Thu\, 10 Jul 2008 17\:00\:02 -0700")
References:  <200807101635.m6AGZv7I090311@svn.freebsd.org> <e7db6d980807101035x67390f4cx7ff762e286bc67ed@mail.gmail.com> <20080710233721.GA55073@dragon.NUXI.org> <e7db6d980807101658o6e1da3b6j188b8eb7afd81079@mail.gmail.com> <e7db6d980807101700u59628892g75f01aabed22bda5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Peter Wemm" <peter@wemm.org> writes:
> I think you should leave it in Juniper's tree for a tad longer:
> ../../../kern/link_elf_obj.c:88: error: redefinition of 'struct elf_file'
> ../../../kern/link_elf_obj.c:119: error: redefinition of typedef 'elf_fil=
e_t'
> ../../../sys/link_elf.h:133: error: previous declaration of
> 'elf_file_t' was here
> [...]
> I forgot to mention.. the fact that kld's happen to currently be ELF
> is very specifically and deliberately not part of any public API.  All
> references go via linker_* because there is no guarantee about elf,
> a.out, pecoff, raw binary, whatever.

Speaking of which, as the compiler error demonstrates, amd64 uses a
different file format and a different linker for kernel modules than the
other platforms (ELF relocatable object vs ELF shared object).  I never
understood the reason for this.  I ran into it when I tried to hack the
kernel linker to ignore debugging information when loading a module, so
we wouldn't have to install two copies of every module.  IIRC, it was
easy to do for shared objects but hard to do for relocatable objects.
Can you bring any light to this issue?

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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