mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
- Added include/x86-linux/ and include/linux/ subdirectories, with Makefile.am files. - Overhauled the definitions of kernel types. include/vg_kerneliface.h is now three files, include/linux/vki.h, include/x86-linux/vki_arch.h, and include/x86-linux/vki_arch_posixtypes.h. These files separate the common/Linux and x86/Linux parts cleanly. All code is copied verbatim from the relevant kernel headers, except that VKI_/vki_ prefixes are added as necessary to distinguish them from glibc types. (This is done consistently, unlike previously when some types did not have the prefixes.) All code is clearly marked to show which particular header file it came from, and the Linux version used. (I used 2.6.8.1, the most recent stable release, for all of them.) A few of the types changed; this is because they changed between the older versions of Linux and the current 2.6.8.1. I checked that all these changes were ok with respect to backwards compatibility for our purposes. - vg_unsafe.h has been removed; we are no longer including any kernel headers, as we have our own copies for everything. This is because installed kernel headers are not reliable, and often cause compilation problems. (bug #92420 is a recent example) - Removed some no-longer-needed header-presence tests from configure.in. - Some code in the rest of Valgrind was changed to account for some slight changes in the names of our VKI_/vki_ kernel constants and types. - Updated README_MISSING_SYSCALL_OR_IOCTL accordingly. - Fixed off-by-one error with VKI_GDT_ENTRY_TLS_MAX (merged from stable branch) The end result is that the kernel types situation should be much clearer, and similar files can be created relatively easily for other architectures as necessary. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2884
12 lines
448 B
Makefile
12 lines
448 B
Makefile
## Need $(top_builddir)/include because tool.h is built from tool.h.base;
|
|
## otherwise it will not work if builddir != srcdir.
|
|
add_includes = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/include/$(VG_ARCH) \
|
|
-I$(top_srcdir)/include/$(VG_OS) \
|
|
-I$(top_srcdir)/include/$(VG_PLATFORM)
|
|
|
|
AM_CPPFLAGS = $(add_includes)
|
|
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -g @ARCH_TOOL_AM_CFLAGS@
|
|
AM_CCASFLAGS = $(add_includes)
|
|
|