Home | History | Annotate | Download | only in modautoload
History log of /src/tests/rump/modautoload/Makefile
RevisionDateAuthorComments
 1.14  24-Apr-2023  uwe tests/rump/modautoload: reorder -lrumpvfs_nofifofs

Make the way we spell "-lrumpvfs -lrumpvfs_nofifofs" hack consistent.
The order doesn't matter here because of --whole-archive.
 1.13  07-Jul-2021  martin Allow to set sanitizer flags for the rump build from the
build.sh command line, like: -V RUMP_SANITIZE=address
 1.12  26-May-2020  christos Fix alpha build (relocation truncated to fit: GPREL16 against symbol ...)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47230
 1.11  16-May-2020  christos Do the same thing with linker flags instead of directly specifying the archives.
 1.10  16-May-2020  christos more nofifofs
 1.9  17-Aug-2019  kamil Avoid symbol clashes in test/rump/modautoload/t_modautoload with sanitizers

Set SANITIZER_RENAME_SYMBOL.t_modautoload to:

* sysctlbyname
* sysctlgetmibinfo
 1.8  14-Oct-2016  christos branches: 1.8.14; 1.8.16;
Disable aslr too since we are playing address space range tricks.
 1.7  10-Sep-2016  christos need bsd.init.mk
 1.6  27-Aug-2016  christos don't disable PIE
 1.5  27-Aug-2016  christos needs mprotect disable since it loads kernel code and relocates it.
 1.4  20-Aug-2016  christos add missing library dependencies.
 1.3  27-Dec-2015  pgoyette branches: 1.3.2;
When MODULAR kernels grew a MODULAR_DEFAULT_AUTOLOAD option, (in rev 1.98
of src/sys/kern/kern_module.c), the default was "off" for all kernels
including rump kernels. While many (most?) kernel config files were
updated to include the new option, rump kernels weren't so lucky. Thus,
rump kernels still had autoload disabled.

This commit uses rump_sysctl to change the module_autoload_on value to
true (ie, enabled) before trying to test if autoloading actually works.

For now, I am _not_ changing the default for all rump kernels. I'll
leave that for another day, after all appropriate discussion has occurred.
 1.2  10-Mar-2014  pooka Move the "is arch capable of loading native kernel modules into
rump kernel" clauses from bsd.own.mk to Makefile.rump. Also,
add a rump_nativeabi_p() call to determine if rump kernel is
compiled with native ABI support.
 1.1  09-Jun-2010  pooka branches: 1.1.6; 1.1.12;
Add a test which checks autoloading modules from the host's
/stand/arch/vers/kmods works in rump (and that the result is usable ;).

On i386 this "just works". For amd64, due to -mcmodel=kernel,
things are a little more complicated. We must have the entire rump
kernel loaded in the lower 2GB. Currently, this can be done either
by using the non-PIC version for the rump kernel compiled with
-mcmodel=small, or, as njoly pointed out, using netbsd32, which
causes vm_default_addr() to give something in the lower 2GB and
therefore shared libs "magically" getting loaded there. I guess
it would be possible to put a suggested vaddr into the rump kernel
libs and make ld.elf_so map memory from the suggested address if
present ... but that's another show.

Also thanks to tron for access to an amd64 so that I could verify
the test works.
 1.1.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.2.1  04-Nov-2016  pgoyette Sync with HEAD
 1.8.16.1  19-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #91):

tests/rump/modautoload/Makefile: revision 1.9

Avoid symbol clashes in test/rump/modautoload/t_modautoload with sanitizers

Set SANITIZER_RENAME_SYMBOL.t_modautoload to:

* sysctlbyname
* sysctlgetmibinfo
 1.8.14.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed