Date: Mon, 19 Nov 2001 17:20:49 -0800 From: Peter Wemm <peter@wemm.org> To: Josef Karthauser <joe@tao.org.uk> Cc: John Baldwin <jhb@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/release Makefile Message-ID: <20011120012049.6DCE13811@overcee.netplex.com.au> In-Reply-To: <20011120004811.C1670@tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Josef Karthauser wrote:
> On Tue, Nov 20, 2001 at 12:37:48AM +0000, Josef Karthauser wrote:
> > > This doesn't kill write_mfs_in_kernel, but it is now no longer used. T=
> he only
> > > user of it now is picoBSD. It should probably move to /usr/bin or some=
> thing
> > > out of src/release however. Or perhaps under src/release/picobsd.
> =20
> > Is it? I'm not sure that picobsd does use it anymore.
>
> Yes it does. It makes sense for it to be under src/relase/picobsd.
> I'll make a copy of it there, and then someone can delete the original
> if they fancy.
>
> Joe
wite_mfs_in_kernel should die completely, even in picobsd. There are much
better ways:
peter@daintree[5:17pm]~/m-125> cat main.c
extern char __start_foo[];
extern char __stop_foo[];
main()
{
printf("start=%p, stop=%p\n", __start_foo, __stop_foo);
}
peter@daintree[5:17pm]~/m-126> cc -c main.c
peter@daintree[5:18pm]~/m-127> objcopy --add-section foo=/etc/termcap main.o main2.o
peter@daintree[5:18pm]~/m-128> cc -o main main2.o
peter@daintree[5:18pm]~/m-129> ./main
start=0x50, stop=0x2ea27
peter@daintree[5:18pm]~/m-130> strings -a main | more
...
ASM_FILE_END]GCC: (c) 2.95.3 20010315 (release)
01.01
01.01
01.01
01.01
# Copyright (c) 1980, 1985, 1989, 1993
# The Regents of the University of California. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
....
# @(#)termcap.src 8.2 (Berkeley) 11/17/93
# $FreeBSD: src/share/termcap/termcap.src,v 1.109 2001/08/15 03:25:57 ache Exp $
....
This has the distinct advantage that it is auto-sizing. You dont have to
pre-reserve space for it.
Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5
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?20011120012049.6DCE13811>
