From owner-cvs-all Mon Jul 15 19:54:26 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC43B37B400 for <cvs-all@FreeBSD.org>; Mon, 15 Jul 2002 19:54:23 -0700 (PDT) Received: from gehicks.dyndns.org (adsl-20-178-38.asm.bellsouth.net [66.20.178.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EC2143E4A for <cvs-all@FreeBSD.org>; Mon, 15 Jul 2002 19:54:23 -0700 (PDT) (envelope-from gehicks@gehicks.dyndns.org) Received: from mac (mac [10.0.0.13]) by gehicks.dyndns.org (8.12.5/8.12.5) with ESMTP id g6G31atI034145; Tue, 16 Jul 2002 03:01:36 GMT (envelope-from gehicks@gehicks.dyndns.org) Date: Mon, 15 Jul 2002 22:54:19 -0400 Subject: Re: cvs commit: src/release/picobsd/build write_mfs_in_kernel.c Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) Cc: cvs-all@FreeBSD.org To: Peter Wemm <peter@wemm.org> From: W Gerald Hicks <gehicks@gehicks.dyndns.org> In-Reply-To: <20020716012824.18C253811@overcee.wemm.org> Message-Id: <5327CDCB-9867-11D6-9B14-0030657B5F1E@gehicks.dyndns.org> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.482) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: <cvs-all.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20cvs-all> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20cvs-all> X-Loop: FreeBSD.ORG On Monday, July 15, 2002, at 09:28 PM, Peter Wemm wrote: > > Yes, it is far far better to use objcopy --add-section, and then use > &__start_<section> and &__stop_<section> symbols to find where it ended > up. > > I've been doing it with a slightly different operation but yes it seems to be a better way than jumping in after linking and patching up the kernel image. Even if one is concerned about toolchain portability something like this exists for every other (reasonable) toolchain I can think of. I've hacked up an example of how to do all this and tested it extensively. Let me know if you'd like copy of it. Cheers, Jerry Hicks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message