From owner-freebsd-current Thu Oct 24 03:00:07 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA08942 for current-outgoing; Thu, 24 Oct 1996 03:00:07 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA08889; Thu, 24 Oct 1996 03:00:02 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id TAA06113; Thu, 24 Oct 1996 19:53:51 +1000 Date: Thu, 24 Oct 1996 19:53:51 +1000 From: Bruce Evans Message-Id: <199610240953.TAA06113@godzilla.zeta.org.au> To: bde@freebsd.org, current@freebsd.org, julian@whistle.com Subject: Re: Can't compile profiled kernel Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >some time in the last 2 weeks or so, the following broke..... > >loading kernel >../../libkern/mcount.c:94: Undefined symbol `_read_eflags' referenced >from text segment >../../libkern/mcount.c:94: Undefined symbol `_disable_intr' referenced >from text segment >../../libkern/mcount.c:253: Undefined symbol `_write_eflags' referenced >from text segment >*** Error code 1 > >Stop. > >where do these come from? These are inline functions defined in . is included by . I removed the include of in mcount.c because it is unused. It is only unused in the !GUPROF case. Oops. (There are some macros which expand to read_eflags() etc. in the !GUPROF case but the GUPROF case requires assembler stubs which have to disable interrupts, so the C code doesn't need to disable interrupts again.) This is easy to fix by including again or using option GUPROF (config with -pp). I think someone wants you to test GUPROF :-). Bruce