diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-12-22 11:40:27 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-08-07 11:34:35 +0200 |
commit | c5e1d6eaf4a1fa5cc6dfe18e3067f927061aeb6b (patch) | |
tree | 9bc62e85d25e0f697228a30aefdecf384c1b9216 /module/scripts/compile.scm | |
parent | a4c4deb5b0cf1633e748eed3e722e3ee74e89242 (diff) | |
download | guile-c5e1d6eaf4a1fa5cc6dfe18e3067f927061aeb6b.tar.gz |
'load-thunk-from-memory' reports the correct error.
Previously 'load-thunk-from-memory' would often throw to 'system-error'
when passed an incorrect ELF file, leading to incorrect error messages.
* libguile/loader.c (load_thunk_from_memory): Reset 'errno' when
'check_elf_header' returns non-NULL.
* test-suite/tests/vm.test: New file.
* test-suite/Makefile.am (SCM_TESTS): Add it.
Diffstat (limited to 'module/scripts/compile.scm')
0 files changed, 0 insertions, 0 deletions