aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-extract/netbsd.go
Commit message (Collapse)AuthorAgeFilesLines
* sys: refactor const extractionAleksandr Nogikh2023-10-041-8/+8
| | | | | 1) Make FabricateSyscallConsts() operate on ConstFile. 2) Expose Pos inside ConstInfo.
* all: use special placeholder for errorsTaras Madan2023-07-241-1/+1
|
* sys/syz-extract: move SOURCEDIR check to callerPatrick Meyer2021-05-201-3/+0
|
* all: fix dup types in func argsDmitry Vyukov2020-07-041-1/+1
|
* target: support of big-endian architecturesAlexander Egorenkov2020-06-231-1/+2
| | | | | | | | | | | | * Introduce the new target flag 'LittleEndian' which specifies of which endianness the target is. * Introduce the new requires flag 'littleendian' for tests to selectively enable/disable tests on either little-endian architectures or big-endian ones. * Disable KD unit test on s390x architecture because the test works only on little-endian architecture. Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
* sys/syz-extract: run mrproper for all linux archesDmitry Vyukov2020-05-091-1/+1
| | | | | | We only run for the current arch, but it's not enough to clean a build for another arch. Run mrproper for all non-clean arches.
* sys/syz-extract: extract constants from ELFDmitry Vyukov2019-12-021-1/+4
| | | | | | | | | | | | | Add a second mode that extracts constant values from ELF object, instead of running the executable. This allows to not (1) link binaries, (2) use proper cross-compiler. It finally fixes 386/arm extracts for my distro. Hopefully not makes things worse for others, should generally be safer/more reliable. The current mode is left b/c I can't test all OSes, windows binaries are not ELF, so we may need it anyway. But later we may switch more OSes to this new mode if they break (fuchsia?).
* sys/syz-extract: Add "DefineGlibcUse" flag.Marco Vanotti2019-07-161-1/+1
| | | | | | Instead of defining the __GLIBC_USE macro on every OS, we are just defining it based on a parameter. That parameter is set to false for all OSs except for fuchsia.
* sys/syz-extract: add -includedirs optionJoey Jiao2019-01-191-0/+5
| | | | | | Kernel modules are in different directories in some cases, so to include the headers in the module dir or other directories the includedirs flag is added. ex: -includedirs path1/include,path2/include
* sys: check that target consts are definedDmitry Vyukov2018-10-191-0/+1
| | | | | | | | | | | | | | Currently when we get target consts with target.ConstMap["name"] during target initialization, we just get 0 for missing consts. This is error-prone as we can mis-type a const, or a const may be undefined only on some archs (as we have common unix code shared between several OSes). Check that all the consts are actually defined. The check detects several violations, to fix them: 1. move mremap to linux as it's only defined on linux 2. move S_IFMT to openbsd, as it's only defined and used on openbsd 3. define missing MAP_ANONYMOUS for freebsd and netbsd 4. fix extract for netbsd
* syz-extract: select declaring printf or notzoulasc2017-11-061-1/+1
| | | | | | | | Kernels are standalone implementations and can have their own implementations of functions that have different prototypes than the standard ones. In the NetBSD case the kernel printf returns void, and it is declared in <sys/systm.h> so avoid re-declaring it. Select if we are going to declare printf or not depending on the OS.
* syz-extract: Add missing symlink for NetBSD and refactor symlink code.zoulasc2017-11-061-5/+19
|
* Added a few more syscall descriptions, constsUtkarsh Anand2017-10-301-3/+5
| | | | and other related files.
* Fix the SYS_SEMCTL value issue for NetBSDUtkarsh Anand2017-10-301-3/+13
|
* Lots of changes to sys/netbsd (#397)Utkarsh Anand2017-10-251-0/+74
* Lots of changes to sys/netbsd: - Removed a few syscalls that did not have proper constants defined. - Autogenerated *.const files. - Removed a few types like uid and gid, that were not available. - Ran make generate * Few changes for NetBSD support: - Added sys/netbsd/init.go - Added netbsd to sys/sys.go * Fix order in sys/sys.go * Update documentation for NetBSD