Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 22:54:19 -0400
From:      W Gerald Hicks <gehicks@gehicks.dyndns.org>
To:        Peter Wemm <peter@wemm.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/release/picobsd/build write_mfs_in_kernel.c 
Message-ID:  <5327CDCB-9867-11D6-9B14-0030657B5F1E@gehicks.dyndns.org>
In-Reply-To: <20020716012824.18C253811@overcee.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5327CDCB-9867-11D6-9B14-0030657B5F1E>