diff options
author | Andy Wingo <wingo@pobox.com> | 2012-06-01 21:33:46 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2012-06-22 13:40:50 +0200 |
commit | afc74c2920d2f8f8424db9d6f554a91866cbac01 (patch) | |
tree | 399212d59decf24bac2129a4600a0a11446d01cc /libguile/objcodes.h | |
parent | 83e7c58408ad227b38cc8c2e0542a514ebcdc2c8 (diff) | |
download | guile-afc74c2920d2f8f8424db9d6f554a91866cbac01.tar.gz |
add ELF loader
* libguile/objcodes.h:
* libguile/objcodes.c (scm_load_thunk_from_file)
(scm_load_thunk_from_memory): New procedures.
* libguile/elf.h: Import from glibc. Not installed.
* libguile/Makefile.am: Adapt for elf.h.
* module/system/vm/objcode.scm: (load-thunk-from-file)
(load-thunk-from-memory): New exports.
Diffstat (limited to 'libguile/objcodes.h')
-rw-r--r-- | libguile/objcodes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libguile/objcodes.h b/libguile/objcodes.h index 0c3865ceb..83ab79394 100644 --- a/libguile/objcodes.h +++ b/libguile/objcodes.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2009, 2010, 2011 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -60,6 +60,9 @@ struct scm_objcode #define SCM_OBJCODE_NATIVE_CODE(x) (SCM_CELL_WORD_3 (x)) #define SCM_SET_OBJCODE_NATIVE_CODE(x, code) (SCM_SET_CELL_WORD_3 (x, code)) +SCM_API SCM scm_load_thunk_from_file (SCM filename); +SCM_API SCM scm_load_thunk_from_memory (SCM bv); + SCM_API SCM scm_c_make_objcode_slice (SCM parent, const scm_t_uint8 *ptr); SCM_API SCM scm_load_objcode (SCM file); SCM_API SCM scm_objcode_p (SCM obj); |