History log of /netbsd-src/lib/libkvm/Makefile (Results 1 – 25 of 54)
Revision Date Author Comments
# 03675fce 03-Aug-2023 rin <rin@NetBSD.org>

Revert CC_WNO_USE_AFTER_FREE from Makefile's (thanks uwe@)


# 91f8ac6d 03-Aug-2023 rin <rin@NetBSD.org>

Sprinkle CC_WNO_USE_AFTER_FREE for GCC 12

All of them are blamed for idiom equivalent to:
newbuf = realloc(buf, size);
p = newbuf + (p - buf);


# 5f84f05b 01-Apr-2023 rillig <rillig@NetBSD.org>

libkvm: suppress lint warnings about extern declarations for now

This should be properly fixed by someone who is familiar with libkvm, as
it affects <sys/cpu_data.h> as well.


# c4abdb42 24-Jan-2016 christos <christos@NetBSD.org>

mips needs _KMEMUSER for label_t in pcb.h


# 810b61bb 10-Aug-2014 matt <matt@NetBSD.org>

MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU


# 572e1c85 21-Mar-2012 matt <matt@NetBSD.org>

These directories don't handle WARNS=5


# b8c5a244 12-Sep-2011 christos <christos@NetBSD.org>

add a function to report the name of the file kvm_open{,.files} is using.


# 9fbae4ec 14-Feb-2011 matt <matt@NetBSD.org>

Add -D_KMEMUSER to CPPFLAGS


# f15c6971 05-Oct-2010 jym <jym@NetBSD.org>

Import PAE support for kvm(3):
- add kvm_i386pae.c (used for PAE memory translations), and update Makefile
for libkvm build.
- in pdppaddr: pass a flag to indicate PAE mode. Use a bit ignored
by

Import PAE support for kvm(3):
- add kvm_i386pae.c (used for PAE memory translations), and update Makefile
for libkvm build.
- in pdppaddr: pass a flag to indicate PAE mode. Use a bit ignored
by the MMU. Mask address with PG_FRAME to avoid side effects.

Tested with vmstat(1)/netstat(1) to debug core files of PAE and !PAE
kernels. Older kernel dumps will default to native i386 (!PAE) mode.

XXX Currently, savecore(8) will fail to dump a PAE kernel in a !PAE
environment (and reciprocally). So you need to sync and reboot
with a kernel of the same mode as the one that crashed. Once the dump
is successful, this does not matter anymore.

show more ...


# 18c95210 25-Oct-2008 mrg <mrg@NetBSD.org>

look for ${KVM_MACHINE_ARCH} before ${MACHINE_ARCH} and ${MACHINE_CPU}


# 4147a3c5 28-May-2007 tls <tls@NetBSD.org>

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.

show more ...


# 4ee70308 10-Feb-2007 ad <ad@NetBSD.org>

Add ${NETBSDSRCDIR}/sys to the include path.


# eb430229 28-Mar-2003 christos <christos@NetBSD.org>

do the exit on lint warnings only on i386 like libc, to avoid the wrath of
the sloppy archs.


# d5cff061 28-Mar-2003 christos <christos@NetBSD.org>

exit on lint warnings.


# b1c71074 01-Mar-2003 lukem <lukem@NetBSD.org>

Add workaround for building with ${MACHINE}==sparc64, ${MACHINE_ARCH}==sparc;
symlink the appropriate machine & sparc include directories into the objdir.

XXX: this is necessary until (when?) the sp

Add workaround for building with ${MACHINE}==sparc64, ${MACHINE_ARCH}==sparc;
symlink the appropriate machine & sparc include directories into the objdir.

XXX: this is necessary until (when?) the sparc Arch Dependent headers
(used by MACHINE_ARCH==sparc) are separated from the sparc Machine
Dependent headeres (used by MACHINE==sparc but not MACHINE==sparc64).

show more ...


# c62a74e6 18-Jan-2003 thorpej <thorpej@NetBSD.org>

Merge the nathanw_sa branch.


# ec5dbc56 19-Aug-2002 lukem <lukem@NetBSD.org>

Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)


# efcc9a4c 28-Dec-2001 lukem <lukem@NetBSD.org>

* Add user-controlled mk.conf variables
- SHLIBDIR Location to install shared libraries if ${USE_SHLIBDIR}
is "yes". Defaults to "/usr/lib".

- USE_SHLIBDIR If "yes", install shared libraries i

* Add user-controlled mk.conf variables
- SHLIBDIR Location to install shared libraries if ${USE_SHLIBDIR}
is "yes". Defaults to "/usr/lib".

- USE_SHLIBDIR If "yes", install shared libraries in ${SHLIBDIR}
instead of ${LIBDIR}. Defaults to "no".
Sets ${_LIBSODIR} to the appropriate value.
This may be set by individual Makefiles as well.

- SHLINKDIR Location of shared linker. Defaults to "/usr/libexec".
If != "/usr/libexec", change the dynamic-linker
encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

1.) If nothing is set or changed, there is no change from the
current behaviour:
- Static /bin, /sbin, and bits of /usr/*
- Dynamic rest
- Shared linker is /usr/libexec/ld*so

2.) If the following make variables are set:
LDSTATIC=
SHLINKDIR=/lib
SHLIBDIR=/lib
Then the behaviour becomes:
- Dynamic tools
- .so libraries used by /bin and /sbin are installed to /lib,
with symlinks from /usr/lib/lib*so to -> /lib/lib*so
where appropriate
- Shared linker is /lib/ld*so

3.) As per 2.), but add the following variable:
USE_SHLIBDIR=yes
This forces all .so's to be instaleld in /lib (with compat
symlinks), not just those tagged by their Makefiles to be.
Again, compat symlinks are installed

show more ...


# f82a63df 21-May-2001 fredette <fredette@NetBSD.org>

Added support for sun2 kernel cores.


# c4f68df1 08-Jan-2001 bjh21 <bjh21@NetBSD.org>

Rename kvm_arm32.c to kvm_arm.c, since it's shared between arm32 and arm26.
The Makefile now finds the correct file without help.


# 99b0df53 08-Jan-2001 itojun <itojun@NetBSD.org>

use MACIHNE_CPU to determine architecture-dependent source code directory.
is use of exists(foo) safe enough?
TODO: many other places to fix


# 8145e73c 04-Jan-2001 itojun <itojun@NetBSD.org>

sh3 split


# ec323af4 13-Jun-2000 simonb <simonb@NetBSD.org>

Document KVM_NO_FILES and kvm_get{proc,argv,envv}2(). Better wording
kindly accepted!

XXX: Need to update distrib lists. Tomorrow...


# 6c97e2bd 09-May-2000 bjh21 <bjh21@NetBSD.org>

Initial commit of arm26 port


# 21eedb0e 12-Sep-1999 chs <chs@NetBSD.org>

the PMAP_NEW option is gone as the new interface is no longer optional.


123