Re: CVS commit: src/lib/csu

2011-01-31 Thread Joerg Sonnenberger
On Mon, Jan 31, 2011 at 05:54:20PM +, Matthias Drochner wrote: > Module Name: src > Committed By: drochner > Date: Mon Jan 31 17:54:20 UTC 2011 > > Modified Files: > src/lib/csu: Makefile > src/lib/csu/common: Makefile.inc > > Log Message: > use of .PARSEDIR just doesn't

Re: CVS commit: src/lib/csu

2011-01-31 Thread Matthias Drochner
jo...@britannica.bec.de said: > Please explain. .PARSEDIR should be completely independent of .OBJDIR > and I would strongly prefer to keep it because it is a hell lot more > predictable... As said, it just doesn't work: $ pwd [...]/src/lib/csu $ make -V .OBJDIR [...]/src/lib/csu/obj.zelz27 $ mak

Re: CVS commit: src/lib/csu

2011-01-31 Thread Matthias Drochner
m.droch...@fz-juelich.de said: > $ make -V .OBJDIR > [...]/src/lib/csu/obj.zelz27 And as a data point, to show what's going wrong: $ make -V COMMON_DIR ./common That should be ../common, or better an absolute path. best regards Matthias ---

Re: CVS commit: src/lib/csu

2011-01-31 Thread Joerg Sonnenberger
On Mon, Jan 31, 2011 at 07:32:50PM +0100, Matthias Drochner wrote: > > m.droch...@fz-juelich.de said: > > $ make -V .OBJDIR > > [...]/src/lib/csu/obj.zelz27 > > And as a data point, to show what's going wrong: > $ make -V COMMON_DIR > ./common > > That should be ../common, or better an absolute

Re: CVS commit: src/lib/csu

2011-01-31 Thread Matthias Drochner
jo...@britannica.bec.de said: > $ ~/work/NetBSD/obj/clang-base/tools/bin/nbmake-amd64 -V .OBJDIR > /home/joerg/work/NetBSD/obj/clang-base/amd64/lib/csu This shows that you are not using an .OBJDIR, in the sense that it is different from .CURDIR. See the make(1) manpage. There are various rules w

Re: CVS commit: src/lib/csu

2011-01-31 Thread Joerg Sonnenberger
On Mon, Jan 31, 2011 at 08:42:59PM +0100, Matthias Drochner wrote: > > jo...@britannica.bec.de said: > > $ ~/work/NetBSD/obj/clang-base/tools/bin/nbmake-amd64 -V .OBJDIR > > /home/joerg/work/NetBSD/obj/clang-base/amd64/lib/csu > > This shows that you are not using an .OBJDIR, in the sense that it

Re: CVS commit: src/lib/csu

2011-01-31 Thread Matthias Drochner
jo...@britannica.bec.de said: > BSDOBJDIR doesn't seem to do anything. BUILDID breaks this. I have no > idea why those variables even exist, the code in bsd.own.mk is messy > at best I agree that the code is messy, but at least BUILDID serves a useful purpose: I can use the same source tree from

Re: CVS commit: src/lib/csu

2011-01-31 Thread Joerg Sonnenberger
On Mon, Jan 31, 2011 at 09:54:03PM +0100, Joerg Sonnenberger wrote: > On Mon, Jan 31, 2011 at 08:42:59PM +0100, Matthias Drochner wrote: > > > > jo...@britannica.bec.de said: > > > $ ~/work/NetBSD/obj/clang-base/tools/bin/nbmake-amd64 -V .OBJDIR > > > /home/joerg/work/NetBSD/obj/clang-base/amd64/l

Re: CVS commit: src/lib/csu

2011-01-31 Thread David Holland
On Mon, Jan 31, 2011 at 11:05:23PM +0100, Joerg Sonnenberger wrote: > -static char curdir[MAXPATHLEN + 1]; /* startup directory */ > +char curdir[MAXPATHLEN + 1];/* startup directory */ > [...] > -Var_Set(".PARSEDIR", ".", VAR_GLOBAL, 0); > +extern char curdir[]; > +Var_

Re: CVS commit: src/lib/csu

2011-01-31 Thread David Holland
On Mon, Jan 31, 2011 at 10:34:25PM +, David Holland wrote: >> -static char curdir[MAXPATHLEN + 1];/* startup directory */ >> +char curdir[MAXPATHLEN + 1]; /* startup directory */ >> [...] >> - Var_Set(".PARSEDIR", ".", VAR_GLOBAL, 0); >> + extern char curdir[]; >> +

Re: CVS commit: src/lib/csu

2011-01-31 Thread Simon J. Gerraty
>> I can comment out the MAKEOBJDIR assignment in nbmake-amd64 and it still >> works fine. BSDOBJDIR doesn't seem to do anything. BUILDID breaks this. >> I have no idea why those variables even exist, the code in bsd.own.mk is >> messy at best and I don't think it justifies the changes to the >> Ma

Re: CVS commit: src/lib/csu

2011-01-31 Thread Joerg Sonnenberger
On Mon, Jan 31, 2011 at 04:07:43PM -0800, Simon J. Gerraty wrote: > I didn't follow the conversation, how is this patch relevant to BUILDID? Some of the redefinition magic involved with BUILDID results in .PARSEDIR as ".", not a full path. This only happens if none of the usual MAKEOBJDIR* variabl

Re: CVS commit: src/lib/csu

2011-02-01 Thread Matthias Drochner
jo...@britannica.bec.de said: > The attached patch seems to sort this out. Yes, thanks, this works. best regards Matthias --

Re: CVS commit: src/lib/csu

2011-02-06 Thread David Holland
On Mon, Jan 31, 2011 at 10:45:34PM +, David Holland wrote: >> However, as I recall it ought to work ok to do >> >> Var_Set(".PARSEDIR", "$(.CURDIR)", VAR_GLOBAL, 0); >> >> instead. >> >> However, this still isn't a correct fix as it doesn't take care of the >> case when e.g. incl

Re: CVS commit: src/lib/csu

2011-02-06 Thread David Laight
On Sun, Feb 06, 2011 at 07:46:23PM +, David Holland wrote: > Making .PARSEDIR always absolute should fix this problem, but in the > general case requires realpath(). It will also give problems to anyone using bmake under cygwin to run windows binaries. David -- David Laight: da.

Re: CVS commit: src/lib/csu

2011-02-06 Thread Simon J. Gerraty
>Making .PARSEDIR always absolute should fix this problem, but in the >general case requires realpath(). Yes. Though it is worth noting that setting .PARSEDIR to .CURDIR when the makefile path contains no '/' may be sufficient for correct operation. >However, I'm guessing that .PARSEDIR >may no

re: CVS commit: src/lib/csu

2013-09-10 Thread matthew green
> Module Name: src > Committed By: matt > Date: Tue Sep 10 16:45:33 UTC 2013 > > Modified Files: > src/lib/csu: Makefile > src/lib/csu/arch/earm: Makefile.inc > src/lib/csu/common: Makefile.inc sysident.S sysident_assym.cf > > Log Message: > Add support for a NetBSD MA

Re: CVS commit: src/lib/csu

2018-12-28 Thread Rin Okuyama
Thanks! GCC on m68k gets working again. rin On 2018/12/29 3:17, Christos Zoulas wrote: Module Name:src Committed By: christos Date: Fri Dec 28 18:17:11 UTC 2018 Modified Files: src/lib/csu/arch/aarch64: Makefile.inc src/lib/csu/arch/arm: Makefile.inc src

CVS commit: src/lib/csu/common

2022-06-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Tue Jun 21 06:41:39 UTC 2022 Modified Files: src/lib/csu/common: crt0-common.c Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/csu/common/crt0-common.c Please note that diff

CVS commit: src/lib/csu/common

2022-06-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Tue Jun 21 06:41:39 UTC 2022 Modified Files: src/lib/csu/common: crt0-common.c Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/csu/common/crt0-common.c Please note that diff

CVS commit: src/lib/csu/common

2024-01-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 19 19:22:18 UTC 2024 Modified Files: src/lib/csu/common: crt0-common.c csu-common.h Log Message: declare _libc_init() in header. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/lib/csu/common/crt0-com

CVS commit: src/lib/csu/common

2024-01-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 19 19:22:18 UTC 2024 Modified Files: src/lib/csu/common: crt0-common.c csu-common.h Log Message: declare _libc_init() in header. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/lib/csu/common/crt0-com

re: CVS commit: src/lib/csu/common

2013-06-27 Thread matthew green
> Module Name: src > Committed By: matt > Date: Thu Jun 27 03:37:21 UTC 2013 > > Modified Files: > src/lib/csu/common: Makefile.inc > > Log Message: > Add -fPIC to compile of crtbeginS.o what is this for? crtbeginS.o is for static binaries isn't it? .mrg.

Re: CVS commit: src/lib/csu/common

2013-06-27 Thread Matt Thomas
On Jun 27, 2013, at 7:28 AM, matthew green wrote: > >> Module Name: src >> Committed By:matt >> Date:Thu Jun 27 03:37:21 UTC 2013 >> >> Modified Files: >> src/lib/csu/common: Makefile.inc >> >> Log Message: >> Add -fPIC to compile of crtbeginS.o > > what is this

Re: CVS commit: src/lib/csu/common

2013-06-27 Thread Joerg Sonnenberger
On Thu, Jun 27, 2013 at 08:03:06AM -0700, Matt Thomas wrote: > > On Jun 27, 2013, at 7:28 AM, matthew green wrote: > > > > >> Module Name: src > >> Committed By: matt > >> Date: Thu Jun 27 03:37:21 UTC 2013 > >> > >> Modified Files: > >>src/lib/csu/common: Makefile.

Re: CVS commit: src/lib/csu/common

2013-06-27 Thread Matt Thomas
On Jun 27, 2013, at 8:33 AM, Joerg Sonnenberger wrote: > On Thu, Jun 27, 2013 at 08:03:06AM -0700, Matt Thomas wrote: >> >> On Jun 27, 2013, at 7:28 AM, matthew green wrote: >> >>> Module Name: src Committed By: matt Date: Thu Jun 27 03:37:21 UTC 2013 >

Re: CVS commit: src/lib/csu/common

2013-06-27 Thread Joerg Sonnenberger
On Thu, Jun 27, 2013 at 09:54:33AM -0700, Matt Thomas wrote: > > On Jun 27, 2013, at 8:33 AM, Joerg Sonnenberger > wrote: > > > On Thu, Jun 27, 2013 at 08:03:06AM -0700, Matt Thomas wrote: > >> > >> On Jun 27, 2013, at 7:28 AM, matthew green wrote: > >> > >>> > Module Name: src > >

Re: CVS commit: src/lib/csu/common

2013-11-16 Thread Takeshi Nakayama
>>> "Martin Husemann" wrote > Module Name: src > Committed By: martin > Date: Sat Nov 16 10:50:43 UTC 2013 > > Modified Files: > src/lib/csu/common: Makefile.inc > > Log Message: > We do not want to build the code model markes when creating the 32bit > compat libs for sparc64 I

Re: CVS commit: src/lib/csu/common

2013-11-17 Thread Martin Husemann
On Sun, Nov 17, 2013 at 08:40:51AM +0900, Takeshi Nakayama wrote: > I think proper fix is to use CSU_MACHINE_ARCH instead of > MACHINE_ARCH. Indeed, thanks! Martin

re: CVS commit: src/lib/csu/common

2016-06-02 Thread matthew green
"Joerg Sonnenberger" writes: > Module Name: src > Committed By: joerg > Date: Wed Jun 1 21:24:55 UTC 2016 > > Modified Files: > src/lib/csu/common: Makefile.inc > > Log Message: > Revert -O1 hack for GCC 5.3, replaced by workaround in the code. please update doc/HACKS. thanks!

Re: CVS commit: src/lib/csu/common

2018-07-13 Thread maya
ack. we should probably leave the build broken, anyone who tries out the resulting netbsd might have to spend some time figuring out how to boot without /sbin/init (it's boot -a and then pick /rescue/init). On Fri, Jul 13, 2018 at 01:00:17AM +, Robert Elz wrote: > Module Name: src > Committed

Re: CVS commit: src/lib/csu/common

2018-07-13 Thread Robert Elz
Date:Fri, 13 Jul 2018 09:38:02 + From:m...@netbsd.org Message-ID: <20180713093802.ga20...@homeworld.netbsd.org> | ack. we should probably leave the build broken, anyone who tries out the | resulting netbsd might have to spend some time figuring out how to boot

Re: CVS commit: src/lib/csu/common

2018-07-13 Thread maya
On Fri, Jul 13, 2018 at 04:48:32PM +0700, Robert Elz wrote: > Date:Fri, 13 Jul 2018 09:38:02 + > From:m...@netbsd.org > Message-ID: <20180713093802.ga20...@homeworld.netbsd.org> > > | ack. we should probably leave the build broken, anyone who tries out the > |

CVS commit: src/lib/csu/arch/vax

2023-07-28 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Jul 28 07:04:41 UTC 2023 Modified Files: src/lib/csu/arch/vax: crtbegin.S Log Message: vax/csu: __do_global_ctors_aux: Save actually-used r8, instead of r11 Thanks Kalvis Duckmanton for report and patch on tech-toolchain: https:

CVS commit: src/lib/csu/arch/vax

2023-07-28 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Jul 28 07:04:41 UTC 2023 Modified Files: src/lib/csu/arch/vax: crtbegin.S Log Message: vax/csu: __do_global_ctors_aux: Save actually-used r8, instead of r11 Thanks Kalvis Duckmanton for report and patch on tech-toolchain: https:

CVS commit: src/lib/csu/arch/vax

2023-07-28 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Jul 28 07:17:30 UTC 2023 Modified Files: src/lib/csu/arch/vax: crtbegin.S Log Message: vax/csu: Use register name provided by asm.h. No binary changes. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/csu/arc

CVS commit: src/lib/csu/arch/vax

2023-07-28 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Jul 28 07:17:30 UTC 2023 Modified Files: src/lib/csu/arch/vax: crtbegin.S Log Message: vax/csu: Use register name provided by asm.h. No binary changes. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/csu/arc

CVS commit: src/lib/csu/arch/vax

2023-07-28 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Jul 28 11:22:43 UTC 2023 Modified Files: src/lib/csu/arch/vax: crt0.S Log Message: vax/csu: __start: Use 0x as entry mask instead of 0x0101 (two NOPs) This was a quite common trick to able to load executables with a.out head

CVS commit: src/lib/csu/arch/vax

2023-07-28 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Jul 28 11:22:43 UTC 2023 Modified Files: src/lib/csu/arch/vax: crt0.S Log Message: vax/csu: __start: Use 0x as entry mask instead of 0x0101 (two NOPs) This was a quite common trick to able to load executables with a.out head