LilyPond-Ruby 0.0.2.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/etc/fonts/conf.d/10-hinting-slight.conf +15 -0
- data/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +83 -0
- data/etc/fonts/conf.d/11-lcdfilter-default.conf +17 -0
- data/etc/fonts/conf.d/20-unhint-small-vera.conf +49 -0
- data/etc/fonts/conf.d/30-metric-aliases.conf +637 -0
- data/etc/fonts/conf.d/40-nonlatin.conf +332 -0
- data/etc/fonts/conf.d/45-generic.conf +136 -0
- data/etc/fonts/conf.d/45-latin.conf +301 -0
- data/etc/fonts/conf.d/48-spacing.conf +16 -0
- data/etc/fonts/conf.d/49-sansserif.conf +22 -0
- data/etc/fonts/conf.d/50-user.conf +16 -0
- data/etc/fonts/conf.d/51-local.conf +7 -0
- data/etc/fonts/conf.d/60-generic.conf +64 -0
- data/etc/fonts/conf.d/60-latin.conf +88 -0
- data/etc/fonts/conf.d/65-fonts-persian.conf +418 -0
- data/etc/fonts/conf.d/65-nonlatin.conf +228 -0
- data/etc/fonts/conf.d/69-unifont.conf +28 -0
- data/etc/fonts/conf.d/80-delicious.conf +19 -0
- data/etc/fonts/conf.d/90-synthetic.conf +64 -0
- data/etc/fonts/conf.d/README +23 -0
- data/etc/fonts/fonts.conf +101 -0
- data/etc/relocate/fontconfig.reloc +2 -0
- data/etc/relocate/guile.reloc +2 -0
- data/etc/relocate/libexec.reloc +1 -0
- data/lib/guile/2.2/ccache/ice-9/and-let-star.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/arrays.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/atomic.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/binary-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/boot-9.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/buffered-input.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/calling.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/channel.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/command-line.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/common-list.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/control.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/curried-definitions.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/debug.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/deprecated.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/documentation.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/eval-string.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/eval.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/expect.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/fdes-finalizers.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/format.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ftw.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/futures.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/gap-buffer.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/getopt-long.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/hash-table.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/hcons.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/history.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/i18n.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/iconv.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/lineio.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/list.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/local-eval.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ls.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/mapping.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/match.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/networking.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/null.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/occam-channel.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/optargs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/cache.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/codegen.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/simplify-tree.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/string-peg.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/using-parsers.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/poe.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/poll.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/popen.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/posix.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/pretty-print.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/psyntax-pp.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/q.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/r5rs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/rdelim.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/receive.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/regex.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/runq.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/rw.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/safe-r5rs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/safe.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/sandbox.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/save-stack.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/scm-style-repl.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/serialize.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/session.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/slib.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/stack-catch.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/streams.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/string-fun.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/suspendable-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/syncase.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/textual-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/threads.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/time.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/top-repl.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/unicode.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/vlist.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/weak-vector.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/compile-scheme.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/parse.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/bytecode/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/bytecode.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/closure-conversion.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/compile-bytecode.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/constructors.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/contification.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/cse.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/dce.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/effects-analysis.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/elide-values.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/handle-interrupts.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/intmap.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/intset.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/licm.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/optimize.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/peel-loops.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/prune-bailouts.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/prune-top-level-scopes.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/reify-primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/renumber.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/rotate-loops.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/self-references.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/simplify.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/slot-allocation.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/specialize-numbers.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/specialize-primcalls.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/split-rec.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/type-checks.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/type-fold.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/types.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/utils.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/verify.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/with-cps.go +0 -0
- data/lib/guile/2.2/ccache/language/cps.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/array.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/base.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/function.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/impl.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/parse.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/tokenize.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/bindings.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/boot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/falias.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/lexer.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/parser.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime/function-slot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime/value-slot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/decompile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/analyze.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/canonicalize.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/compile-cps.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/debug.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/effects.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/fix-letrec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/optimize.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/peval.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/value/spec.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/accessors.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/active-slot.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/composite-slot.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/describe.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/internal.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/save.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/simple.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/stklos.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/bitwise.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/fixnums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/flonums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/base.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/bytevectors.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/conditions.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/control.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/enums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/eval.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/exceptions.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/files.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/hashtables.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/io/ports.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/io/simple.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/lists.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/mutable-pairs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/mutable-strings.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/programs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/r5rs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/inspection.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/procedural.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/syntactic.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/sorting.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/syntax-case.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/unicode.go +0 -0
- data/lib/guile/2.2/ccache/rnrs.go +0 -0
- data/lib/guile/2.2/ccache/scripts/api-diff.go +0 -0
- data/lib/guile/2.2/ccache/scripts/autofrisk.go +0 -0
- data/lib/guile/2.2/ccache/scripts/compile.go +0 -0
- data/lib/guile/2.2/ccache/scripts/disassemble.go +0 -0
- data/lib/guile/2.2/ccache/scripts/display-commentary.go +0 -0
- data/lib/guile/2.2/ccache/scripts/doc-snarf.go +0 -0
- data/lib/guile/2.2/ccache/scripts/frisk.go +0 -0
- data/lib/guile/2.2/ccache/scripts/generate-autoload.go +0 -0
- data/lib/guile/2.2/ccache/scripts/help.go +0 -0
- data/lib/guile/2.2/ccache/scripts/lint.go +0 -0
- data/lib/guile/2.2/ccache/scripts/list.go +0 -0
- data/lib/guile/2.2/ccache/scripts/punify.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-rfc822.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-scheme-source.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-text-outline.go +0 -0
- data/lib/guile/2.2/ccache/scripts/scan-api.go +0 -0
- data/lib/guile/2.2/ccache/scripts/snarf-check-and-output-texi.go +0 -0
- data/lib/guile/2.2/ccache/scripts/snarf-guile-m4-docs.go +0 -0
- data/lib/guile/2.2/ccache/scripts/summarize-guile-TODO.go +0 -0
- data/lib/guile/2.2/ccache/scripts/use2dot.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-1.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-10.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-11.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-111.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-13.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-14.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-16.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-17.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-18.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-19.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-2.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-26.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-27.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-28.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-31.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-34.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-35.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-37.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-38.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-39.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-4/gnu.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-4.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-41.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-42.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-43.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-45.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-6.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-60.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-64.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-67.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-69.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-71.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-8.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-88.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-9/gnu.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-9.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-98.go +0 -0
- data/lib/guile/2.2/ccache/statprof.go +0 -0
- data/lib/guile/2.2/ccache/sxml/apply-templates.go +0 -0
- data/lib/guile/2.2/ccache/sxml/fold.go +0 -0
- data/lib/guile/2.2/ccache/sxml/match.go +0 -0
- data/lib/guile/2.2/ccache/sxml/simple.go +0 -0
- data/lib/guile/2.2/ccache/sxml/ssax/input-parse.go +0 -0
- data/lib/guile/2.2/ccache/sxml/ssax.go +0 -0
- data/lib/guile/2.2/ccache/sxml/transform.go +0 -0
- data/lib/guile/2.2/ccache/sxml/xpath.go +0 -0
- data/lib/guile/2.2/ccache/system/base/ck.go +0 -0
- data/lib/guile/2.2/ccache/system/base/compile.go +0 -0
- data/lib/guile/2.2/ccache/system/base/lalr.go +0 -0
- data/lib/guile/2.2/ccache/system/base/language.go +0 -0
- data/lib/guile/2.2/ccache/system/base/message.go +0 -0
- data/lib/guile/2.2/ccache/system/base/pmatch.go +0 -0
- data/lib/guile/2.2/ccache/system/base/syntax.go +0 -0
- data/lib/guile/2.2/ccache/system/base/target.go +0 -0
- data/lib/guile/2.2/ccache/system/base/types.go +0 -0
- data/lib/guile/2.2/ccache/system/foreign-object.go +0 -0
- data/lib/guile/2.2/ccache/system/foreign.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/command.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/common.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/coop-server.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/debug.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/error-handling.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/repl.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/server.go +0 -0
- data/lib/guile/2.2/ccache/system/syntax.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/assembler.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/coverage.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/debug.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/disassembler.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/dwarf.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/elf.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/frame.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/inspect.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/linker.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/loader.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/program.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/trace.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/trap-state.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/traps.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/vm.go +0 -0
- data/lib/guile/2.2/ccache/system/xref.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/docbook.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/html.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/indexing.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/plain-text.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/reflection.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/serialize.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/string-utils.go +0 -0
- data/lib/guile/2.2/ccache/texinfo.go +0 -0
- data/lib/guile/2.2/ccache/web/client.go +0 -0
- data/lib/guile/2.2/ccache/web/http.go +0 -0
- data/lib/guile/2.2/ccache/web/request.go +0 -0
- data/lib/guile/2.2/ccache/web/response.go +0 -0
- data/lib/guile/2.2/ccache/web/server/http.go +0 -0
- data/lib/guile/2.2/ccache/web/server.go +0 -0
- data/lib/guile/2.2/ccache/web/uri.go +0 -0
- data/lib/guile.rb +19 -0
- data/lib/lilypond/2.24.1/ccache/lily/accreg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/auto-beam.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/autochange.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/backend-library.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/bar-line.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/breath.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/c++.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-entry.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-ignatzek-names.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-name.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/clip-region.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/color.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/curried-definitions.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-context-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-event-classes.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grob-interfaces.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grob-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grobs.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-markup-commands.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-callbacks.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-display-methods.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-types.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-note-names.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-stencil-commands.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-woodwind-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/display-lily.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/display-woodwind-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/file-cache.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/flag-styles.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/font-encodings.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/font.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-cairo.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-ps.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-svg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/fret-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/graphviz.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/harp-pedals.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/layout-beam.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/layout-slur.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/lily-library.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/lily.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/ly-syntax-constructors.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/markup-macros.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/markup.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/midi.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/modal-transforms.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/music-functions.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-lib.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-ps.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-svg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/page.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/paper-system.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/paper.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/parser-clef.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/parser-ly-from-scheme.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/part-combiner.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/predefined-fretboards.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/ps-to-png.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/scheme-engravers.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/scheme-performers.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/script.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/skyline.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/song-util.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/song.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/stencil.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/tablature.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/time-signature-settings.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/time-signature.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/titling.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/to-xml.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/translation-functions.go +0 -0
- data/lib/lilypond/builder.rb +161 -0
- data/lib/lilypond-ruby.rb +18 -3
- data/share/emacs/site-lisp/lilypond-font-lock.el +208 -0
- data/share/emacs/site-lisp/lilypond-indent.el +605 -0
- data/share/emacs/site-lisp/lilypond-init.el +21 -0
- data/share/emacs/site-lisp/lilypond-mode.el +1204 -0
- data/share/emacs/site-lisp/lilypond-song.el +556 -0
- data/share/emacs/site-lisp/lilypond-what-beat.el +279 -0
- data/share/emacs/site-lisp/lilypond-words.el +1428 -0
- data/share/guile/2.2/guile-procedures.txt +8860 -0
- data/share/guile/2.2/ice-9/and-let-star.scm +73 -0
- data/share/guile/2.2/ice-9/arrays.scm +70 -0
- data/share/guile/2.2/ice-9/atomic.scm +38 -0
- data/share/guile/2.2/ice-9/binary-ports.scm +53 -0
- data/share/guile/2.2/ice-9/boot-9.scm +4131 -0
- data/share/guile/2.2/ice-9/buffered-input.scm +109 -0
- data/share/guile/2.2/ice-9/calling.scm +326 -0
- data/share/guile/2.2/ice-9/channel.scm +170 -0
- data/share/guile/2.2/ice-9/command-line.scm +477 -0
- data/share/guile/2.2/ice-9/common-list.scm +278 -0
- data/share/guile/2.2/ice-9/control.scm +110 -0
- data/share/guile/2.2/ice-9/curried-definitions.scm +57 -0
- data/share/guile/2.2/ice-9/debug.scm +25 -0
- data/share/guile/2.2/ice-9/deprecated.scm +93 -0
- data/share/guile/2.2/ice-9/documentation.scm +203 -0
- data/share/guile/2.2/ice-9/eval-string.scm +90 -0
- data/share/guile/2.2/ice-9/eval.scm +723 -0
- data/share/guile/2.2/ice-9/expect.scm +171 -0
- data/share/guile/2.2/ice-9/fdes-finalizers.scm +25 -0
- data/share/guile/2.2/ice-9/format.scm +1626 -0
- data/share/guile/2.2/ice-9/ftw.scm +564 -0
- data/share/guile/2.2/ice-9/futures.scm +308 -0
- data/share/guile/2.2/ice-9/gap-buffer.scm +283 -0
- data/share/guile/2.2/ice-9/getopt-long.scm +371 -0
- data/share/guile/2.2/ice-9/hash-table.scm +45 -0
- data/share/guile/2.2/ice-9/hcons.scm +80 -0
- data/share/guile/2.2/ice-9/history.scm +65 -0
- data/share/guile/2.2/ice-9/i18n.scm +531 -0
- data/share/guile/2.2/ice-9/iconv.scm +95 -0
- data/share/guile/2.2/ice-9/lineio.scm +115 -0
- data/share/guile/2.2/ice-9/list.scm +36 -0
- data/share/guile/2.2/ice-9/local-eval.scm +261 -0
- data/share/guile/2.2/ice-9/ls.scm +94 -0
- data/share/guile/2.2/ice-9/mapping.scm +118 -0
- data/share/guile/2.2/ice-9/match.scm +59 -0
- data/share/guile/2.2/ice-9/match.upstream.scm +917 -0
- data/share/guile/2.2/ice-9/networking.scm +94 -0
- data/share/guile/2.2/ice-9/null.scm +34 -0
- data/share/guile/2.2/ice-9/occam-channel.scm +261 -0
- data/share/guile/2.2/ice-9/optargs.scm +381 -0
- data/share/guile/2.2/ice-9/peg/cache.scm +45 -0
- data/share/guile/2.2/ice-9/peg/codegen.scm +359 -0
- data/share/guile/2.2/ice-9/peg/simplify-tree.scm +97 -0
- data/share/guile/2.2/ice-9/peg/string-peg.scm +273 -0
- data/share/guile/2.2/ice-9/peg/using-parsers.scm +116 -0
- data/share/guile/2.2/ice-9/peg.scm +42 -0
- data/share/guile/2.2/ice-9/poe.scm +116 -0
- data/share/guile/2.2/ice-9/poll.scm +172 -0
- data/share/guile/2.2/ice-9/popen.scm +178 -0
- data/share/guile/2.2/ice-9/ports.scm +566 -0
- data/share/guile/2.2/ice-9/posix.scm +75 -0
- data/share/guile/2.2/ice-9/pretty-print.scm +483 -0
- data/share/guile/2.2/ice-9/psyntax-pp.scm +3542 -0
- data/share/guile/2.2/ice-9/psyntax.scm +3326 -0
- data/share/guile/2.2/ice-9/q.scm +153 -0
- data/share/guile/2.2/ice-9/quasisyntax.scm +136 -0
- data/share/guile/2.2/ice-9/r5rs.scm +45 -0
- data/share/guile/2.2/ice-9/r6rs-libraries.scm +242 -0
- data/share/guile/2.2/ice-9/rdelim.scm +208 -0
- data/share/guile/2.2/ice-9/receive.scm +26 -0
- data/share/guile/2.2/ice-9/regex.scm +229 -0
- data/share/guile/2.2/ice-9/runq.scm +241 -0
- data/share/guile/2.2/ice-9/rw.scm +27 -0
- data/share/guile/2.2/ice-9/safe-r5rs.scm +145 -0
- data/share/guile/2.2/ice-9/safe.scm +34 -0
- data/share/guile/2.2/ice-9/sandbox.scm +1399 -0
- data/share/guile/2.2/ice-9/save-stack.scm +58 -0
- data/share/guile/2.2/ice-9/scm-style-repl.scm +279 -0
- data/share/guile/2.2/ice-9/serialize.scm +114 -0
- data/share/guile/2.2/ice-9/session.scm +530 -0
- data/share/guile/2.2/ice-9/slib.scm +33 -0
- data/share/guile/2.2/ice-9/stack-catch.scm +47 -0
- data/share/guile/2.2/ice-9/streams.scm +168 -0
- data/share/guile/2.2/ice-9/string-fun.scm +280 -0
- data/share/guile/2.2/ice-9/suspendable-ports.scm +788 -0
- data/share/guile/2.2/ice-9/syncase.scm +37 -0
- data/share/guile/2.2/ice-9/textual-ports.scm +70 -0
- data/share/guile/2.2/ice-9/threads.scm +392 -0
- data/share/guile/2.2/ice-9/time.scm +58 -0
- data/share/guile/2.2/ice-9/top-repl.scm +78 -0
- data/share/guile/2.2/ice-9/unicode.scm +26 -0
- data/share/guile/2.2/ice-9/vlist.scm +595 -0
- data/share/guile/2.2/ice-9/weak-vector.scm +31 -0
- data/share/guile/2.2/language/brainfuck/compile-scheme.scm +123 -0
- data/share/guile/2.2/language/brainfuck/compile-tree-il.scm +184 -0
- data/share/guile/2.2/language/brainfuck/parse.scm +95 -0
- data/share/guile/2.2/language/brainfuck/spec.scm +43 -0
- data/share/guile/2.2/language/bytecode/spec.scm +42 -0
- data/share/guile/2.2/language/bytecode.scm +104 -0
- data/share/guile/2.2/language/cps/closure-conversion.scm +848 -0
- data/share/guile/2.2/language/cps/compile-bytecode.scm +610 -0
- data/share/guile/2.2/language/cps/constructors.scm +106 -0
- data/share/guile/2.2/language/cps/contification.scm +448 -0
- data/share/guile/2.2/language/cps/cse.scm +414 -0
- data/share/guile/2.2/language/cps/dce.scm +363 -0
- data/share/guile/2.2/language/cps/effects-analysis.scm +597 -0
- data/share/guile/2.2/language/cps/elide-values.scm +88 -0
- data/share/guile/2.2/language/cps/handle-interrupts.scm +69 -0
- data/share/guile/2.2/language/cps/intmap.scm +765 -0
- data/share/guile/2.2/language/cps/intset.scm +830 -0
- data/share/guile/2.2/language/cps/licm.scm +308 -0
- data/share/guile/2.2/language/cps/optimize.scm +135 -0
- data/share/guile/2.2/language/cps/peel-loops.scm +287 -0
- data/share/guile/2.2/language/cps/primitives.scm +141 -0
- data/share/guile/2.2/language/cps/prune-bailouts.scm +86 -0
- data/share/guile/2.2/language/cps/prune-top-level-scopes.scm +63 -0
- data/share/guile/2.2/language/cps/reify-primitives.scm +179 -0
- data/share/guile/2.2/language/cps/renumber.scm +217 -0
- data/share/guile/2.2/language/cps/rotate-loops.scm +239 -0
- data/share/guile/2.2/language/cps/self-references.scm +79 -0
- data/share/guile/2.2/language/cps/simplify.scm +274 -0
- data/share/guile/2.2/language/cps/slot-allocation.scm +1058 -0
- data/share/guile/2.2/language/cps/spec.scm +51 -0
- data/share/guile/2.2/language/cps/specialize-numbers.scm +724 -0
- data/share/guile/2.2/language/cps/specialize-primcalls.scm +87 -0
- data/share/guile/2.2/language/cps/split-rec.scm +174 -0
- data/share/guile/2.2/language/cps/type-checks.scm +72 -0
- data/share/guile/2.2/language/cps/type-fold.scm +455 -0
- data/share/guile/2.2/language/cps/types.scm +1826 -0
- data/share/guile/2.2/language/cps/utils.scm +550 -0
- data/share/guile/2.2/language/cps/verify.scm +304 -0
- data/share/guile/2.2/language/cps/with-cps.scm +145 -0
- data/share/guile/2.2/language/cps.scm +358 -0
- data/share/guile/2.2/language/ecmascript/array.scm +121 -0
- data/share/guile/2.2/language/ecmascript/base.scm +251 -0
- data/share/guile/2.2/language/ecmascript/compile-tree-il.scm +576 -0
- data/share/guile/2.2/language/ecmascript/function.scm +78 -0
- data/share/guile/2.2/language/ecmascript/impl.scm +169 -0
- data/share/guile/2.2/language/ecmascript/parse.scm +352 -0
- data/share/guile/2.2/language/ecmascript/spec.scm +37 -0
- data/share/guile/2.2/language/ecmascript/tokenize.scm +513 -0
- data/share/guile/2.2/language/elisp/bindings.scm +107 -0
- data/share/guile/2.2/language/elisp/boot.el +617 -0
- data/share/guile/2.2/language/elisp/compile-tree-il.scm +812 -0
- data/share/guile/2.2/language/elisp/falias.scm +47 -0
- data/share/guile/2.2/language/elisp/lexer.scm +430 -0
- data/share/guile/2.2/language/elisp/parser.scm +222 -0
- data/share/guile/2.2/language/elisp/runtime/function-slot.scm +63 -0
- data/share/guile/2.2/language/elisp/runtime/value-slot.scm +24 -0
- data/share/guile/2.2/language/elisp/runtime.scm +153 -0
- data/share/guile/2.2/language/elisp/spec.scm +43 -0
- data/share/guile/2.2/language/scheme/compile-tree-il.scm +33 -0
- data/share/guile/2.2/language/scheme/decompile-tree-il.scm +796 -0
- data/share/guile/2.2/language/scheme/spec.scm +63 -0
- data/share/guile/2.2/language/tree-il/analyze.scm +1568 -0
- data/share/guile/2.2/language/tree-il/canonicalize.scm +82 -0
- data/share/guile/2.2/language/tree-il/compile-cps.scm +1149 -0
- data/share/guile/2.2/language/tree-il/debug.scm +246 -0
- data/share/guile/2.2/language/tree-il/effects.scm +591 -0
- data/share/guile/2.2/language/tree-il/fix-letrec.scm +314 -0
- data/share/guile/2.2/language/tree-il/optimize.scm +43 -0
- data/share/guile/2.2/language/tree-il/peval.scm +1669 -0
- data/share/guile/2.2/language/tree-il/primitives.scm +630 -0
- data/share/guile/2.2/language/tree-il/spec.scm +46 -0
- data/share/guile/2.2/language/tree-il.scm +630 -0
- data/share/guile/2.2/language/value/spec.scm +30 -0
- data/share/guile/2.2/oop/goops/accessors.scm +72 -0
- data/share/guile/2.2/oop/goops/active-slot.scm +63 -0
- data/share/guile/2.2/oop/goops/composite-slot.scm +83 -0
- data/share/guile/2.2/oop/goops/describe.scm +189 -0
- data/share/guile/2.2/oop/goops/internal.scm +30 -0
- data/share/guile/2.2/oop/goops/save.scm +874 -0
- data/share/guile/2.2/oop/goops/simple.scm +30 -0
- data/share/guile/2.2/oop/goops/stklos.scm +74 -0
- data/share/guile/2.2/oop/goops.scm +3176 -0
- data/share/guile/2.2/rnrs/arithmetic/bitwise.scm +92 -0
- data/share/guile/2.2/rnrs/arithmetic/fixnums.scm +291 -0
- data/share/guile/2.2/rnrs/arithmetic/flonums.scm +203 -0
- data/share/guile/2.2/rnrs/base.scm +291 -0
- data/share/guile/2.2/rnrs/bytevectors.scm +83 -0
- data/share/guile/2.2/rnrs/conditions.scm +225 -0
- data/share/guile/2.2/rnrs/control.scm +22 -0
- data/share/guile/2.2/rnrs/enums.scm +152 -0
- data/share/guile/2.2/rnrs/eval.scm +39 -0
- data/share/guile/2.2/rnrs/exceptions.scm +276 -0
- data/share/guile/2.2/rnrs/files.scm +96 -0
- data/share/guile/2.2/rnrs/hashtables.scm +190 -0
- data/share/guile/2.2/rnrs/io/ports.scm +554 -0
- data/share/guile/2.2/rnrs/io/simple.scm +167 -0
- data/share/guile/2.2/rnrs/lists.scm +55 -0
- data/share/guile/2.2/rnrs/mutable-pairs.scm +23 -0
- data/share/guile/2.2/rnrs/mutable-strings.scm +23 -0
- data/share/guile/2.2/rnrs/programs.scm +22 -0
- data/share/guile/2.2/rnrs/r5rs.scm +34 -0
- data/share/guile/2.2/rnrs/records/inspection.scm +81 -0
- data/share/guile/2.2/rnrs/records/procedural.scm +289 -0
- data/share/guile/2.2/rnrs/records/syntactic.scm +248 -0
- data/share/guile/2.2/rnrs/sorting.scm +27 -0
- data/share/guile/2.2/rnrs/syntax-case.scm +68 -0
- data/share/guile/2.2/rnrs/unicode.scm +104 -0
- data/share/guile/2.2/rnrs.scm +289 -0
- data/share/guile/2.2/scripts/api-diff.scm +179 -0
- data/share/guile/2.2/scripts/autofrisk.scm +218 -0
- data/share/guile/2.2/scripts/compile.scm +273 -0
- data/share/guile/2.2/scripts/disassemble.scm +38 -0
- data/share/guile/2.2/scripts/display-commentary.scm +67 -0
- data/share/guile/2.2/scripts/doc-snarf.scm +439 -0
- data/share/guile/2.2/scripts/frisk.scm +290 -0
- data/share/guile/2.2/scripts/generate-autoload.scm +144 -0
- data/share/guile/2.2/scripts/help.scm +188 -0
- data/share/guile/2.2/scripts/lint.scm +318 -0
- data/share/guile/2.2/scripts/list.scm +91 -0
- data/share/guile/2.2/scripts/punify.scm +87 -0
- data/share/guile/2.2/scripts/read-rfc822.scm +131 -0
- data/share/guile/2.2/scripts/read-scheme-source.scm +282 -0
- data/share/guile/2.2/scripts/read-text-outline.scm +253 -0
- data/share/guile/2.2/scripts/scan-api.scm +223 -0
- data/share/guile/2.2/scripts/snarf-check-and-output-texi.scm +303 -0
- data/share/guile/2.2/scripts/snarf-guile-m4-docs.scm +86 -0
- data/share/guile/2.2/scripts/summarize-guile-TODO.scm +213 -0
- data/share/guile/2.2/scripts/use2dot.scm +110 -0
- data/share/guile/2.2/srfi/srfi-1.scm +1061 -0
- data/share/guile/2.2/srfi/srfi-10.scm +89 -0
- data/share/guile/2.2/srfi/srfi-11.scm +146 -0
- data/share/guile/2.2/srfi/srfi-111.scm +37 -0
- data/share/guile/2.2/srfi/srfi-13.scm +132 -0
- data/share/guile/2.2/srfi/srfi-14.scm +99 -0
- data/share/guile/2.2/srfi/srfi-16.scm +51 -0
- data/share/guile/2.2/srfi/srfi-17.scm +174 -0
- data/share/guile/2.2/srfi/srfi-18.scm +382 -0
- data/share/guile/2.2/srfi/srfi-19.scm +1470 -0
- data/share/guile/2.2/srfi/srfi-2.scm +31 -0
- data/share/guile/2.2/srfi/srfi-26.scm +66 -0
- data/share/guile/2.2/srfi/srfi-27.scm +96 -0
- data/share/guile/2.2/srfi/srfi-28.scm +34 -0
- data/share/guile/2.2/srfi/srfi-31.scm +35 -0
- data/share/guile/2.2/srfi/srfi-34.scm +84 -0
- data/share/guile/2.2/srfi/srfi-35.scm +351 -0
- data/share/guile/2.2/srfi/srfi-37.scm +234 -0
- data/share/guile/2.2/srfi/srfi-38.scm +207 -0
- data/share/guile/2.2/srfi/srfi-39.scm +55 -0
- data/share/guile/2.2/srfi/srfi-4/gnu.scm +80 -0
- data/share/guile/2.2/srfi/srfi-4.scm +118 -0
- data/share/guile/2.2/srfi/srfi-41.scm +505 -0
- data/share/guile/2.2/srfi/srfi-42/ec.scm +1053 -0
- data/share/guile/2.2/srfi/srfi-42.scm +66 -0
- data/share/guile/2.2/srfi/srfi-43.scm +1077 -0
- data/share/guile/2.2/srfi/srfi-45.scm +93 -0
- data/share/guile/2.2/srfi/srfi-6.scm +29 -0
- data/share/guile/2.2/srfi/srfi-60.scm +73 -0
- data/share/guile/2.2/srfi/srfi-64/testing.scm +1040 -0
- data/share/guile/2.2/srfi/srfi-64.scm +55 -0
- data/share/guile/2.2/srfi/srfi-67/compare.scm +686 -0
- data/share/guile/2.2/srfi/srfi-67.scm +88 -0
- data/share/guile/2.2/srfi/srfi-69.scm +336 -0
- data/share/guile/2.2/srfi/srfi-71.scm +267 -0
- data/share/guile/2.2/srfi/srfi-8.scm +31 -0
- data/share/guile/2.2/srfi/srfi-88.scm +53 -0
- data/share/guile/2.2/srfi/srfi-9/gnu.scm +168 -0
- data/share/guile/2.2/srfi/srfi-9.scm +351 -0
- data/share/guile/2.2/srfi/srfi-98.scm +44 -0
- data/share/guile/2.2/statprof.scm +988 -0
- data/share/guile/2.2/sxml/apply-templates.scm +102 -0
- data/share/guile/2.2/sxml/fold.scm +250 -0
- data/share/guile/2.2/sxml/match.scm +75 -0
- data/share/guile/2.2/sxml/simple.scm +408 -0
- data/share/guile/2.2/sxml/ssax/input-parse.scm +180 -0
- data/share/guile/2.2/sxml/ssax.scm +265 -0
- data/share/guile/2.2/sxml/sxml-match.ss +1181 -0
- data/share/guile/2.2/sxml/transform.scm +298 -0
- data/share/guile/2.2/sxml/upstream/SSAX.scm +3235 -0
- data/share/guile/2.2/sxml/upstream/SXML-tree-trans.scm +249 -0
- data/share/guile/2.2/sxml/upstream/SXPath-old.scm +1216 -0
- data/share/guile/2.2/sxml/upstream/assert.scm +35 -0
- data/share/guile/2.2/sxml/upstream/input-parse.scm +326 -0
- data/share/guile/2.2/sxml/xpath.scm +493 -0
- data/share/guile/2.2/system/base/ck.scm +55 -0
- data/share/guile/2.2/system/base/compile.scm +282 -0
- data/share/guile/2.2/system/base/lalr.scm +51 -0
- data/share/guile/2.2/system/base/lalr.upstream.scm +2096 -0
- data/share/guile/2.2/system/base/language.scm +119 -0
- data/share/guile/2.2/system/base/message.scm +238 -0
- data/share/guile/2.2/system/base/pmatch.scm +68 -0
- data/share/guile/2.2/system/base/syntax.scm +299 -0
- data/share/guile/2.2/system/base/target.scm +152 -0
- data/share/guile/2.2/system/base/types.scm +561 -0
- data/share/guile/2.2/system/foreign-object.scm +91 -0
- data/share/guile/2.2/system/foreign.scm +200 -0
- data/share/guile/2.2/system/repl/command.scm +946 -0
- data/share/guile/2.2/system/repl/common.scm +263 -0
- data/share/guile/2.2/system/repl/coop-server.scm +200 -0
- data/share/guile/2.2/system/repl/debug.scm +210 -0
- data/share/guile/2.2/system/repl/describe.scm +347 -0
- data/share/guile/2.2/system/repl/error-handling.scm +183 -0
- data/share/guile/2.2/system/repl/repl.scm +233 -0
- data/share/guile/2.2/system/repl/server.scm +332 -0
- data/share/guile/2.2/system/syntax.scm +33 -0
- data/share/guile/2.2/system/vm/assembler.scm +2614 -0
- data/share/guile/2.2/system/vm/coverage.scm +351 -0
- data/share/guile/2.2/system/vm/debug.scm +766 -0
- data/share/guile/2.2/system/vm/disassembler.scm +658 -0
- data/share/guile/2.2/system/vm/dwarf.scm +1852 -0
- data/share/guile/2.2/system/vm/elf.scm +1042 -0
- data/share/guile/2.2/system/vm/frame.scm +485 -0
- data/share/guile/2.2/system/vm/inspect.scm +188 -0
- data/share/guile/2.2/system/vm/linker.scm +732 -0
- data/share/guile/2.2/system/vm/loader.scm +27 -0
- data/share/guile/2.2/system/vm/program.scm +312 -0
- data/share/guile/2.2/system/vm/trace.scm +121 -0
- data/share/guile/2.2/system/vm/trap-state.scm +302 -0
- data/share/guile/2.2/system/vm/traps.scm +608 -0
- data/share/guile/2.2/system/vm/vm.scm +32 -0
- data/share/guile/2.2/system/xref.scm +369 -0
- data/share/guile/2.2/texinfo/docbook.scm +240 -0
- data/share/guile/2.2/texinfo/html.scm +279 -0
- data/share/guile/2.2/texinfo/indexing.scm +75 -0
- data/share/guile/2.2/texinfo/plain-text.scm +322 -0
- data/share/guile/2.2/texinfo/reflection.scm +585 -0
- data/share/guile/2.2/texinfo/serialize.scm +300 -0
- data/share/guile/2.2/texinfo/string-utils.scm +410 -0
- data/share/guile/2.2/texinfo.scm +1263 -0
- data/share/guile/2.2/web/client.scm +513 -0
- data/share/guile/2.2/web/http.scm +2043 -0
- data/share/guile/2.2/web/request.scm +326 -0
- data/share/guile/2.2/web/response.scm +379 -0
- data/share/guile/2.2/web/server/http.scm +183 -0
- data/share/guile/2.2/web/server.scm +397 -0
- data/share/guile/2.2/web/uri.scm +552 -0
- data/share/lilypond/2.24.1/fontconfig/0bd3dc0958fa2205aaaa8ebb13e2872b-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/188ac73a183f12857f63bb60a4a6d603-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/32b6488e5b8292a2e95c79d947e009e8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/3f7329c5293ffd510edef78f73874cfd-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/4c599c202bc5c08e2d34565a40eac3b2-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/57e423e26b20ab21d0f2f29c145174c3-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/826f6b6ef79022e2eac8af26bf4b62f2-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/95530828ff6c81d309f8258d8d02a23e-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/CACHEDIR.TAG +4 -0
- data/share/lilypond/2.24.1/fontconfig/bf3b770c553c462765856025a94f1ce6-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/c855463f699352c367813e37f3f70ea7-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d3e5c4ee2ceb1fc347f91d4cefc53bc0-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d589a48862398ed80a3d6066f4f56f4c-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d82eb4fd963d448e2fcb7d7b793b5df3-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/e52a45a1c8c8fe895fc0fc8c4e6999b8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/f1f2465696798768e9653f19e17ccdc8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fonts/00-lilypond-fonts.conf +99 -0
- data/share/lilypond/2.24.1/fonts/99-lilypond-fonts.conf +28 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-BdIta.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Roman.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-BoldItalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-BoldItalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-11.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-13.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-14.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-16.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-18.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-20.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-23.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-26.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-brace.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/source/common-modules-and-initialization.mf +26 -0
- data/share/lilypond/2.24.1/fonts/source/debugging-settings.mf +14 -0
- data/share/lilypond/2.24.1/fonts/source/declare-autometric-parameters.mf +9 -0
- data/share/lilypond/2.24.1/fonts/source/feta-accidentals.mf +58 -0
- data/share/lilypond/2.24.1/fonts/source/feta-accordion.mf +575 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet-generic.mf +16 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-arrow.mf +114 -0
- data/share/lilypond/2.24.1/fonts/source/feta-arrowheads.mf +171 -0
- data/share/lilypond/2.24.1/fonts/source/feta-autometric.mf +303 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-a.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-b.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-c.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-d.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-e.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-f.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-g.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-generic.mf +47 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-h.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-i.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces.mf +125 -0
- data/share/lilypond/2.24.1/fonts/source/feta-brackettips.mf +100 -0
- data/share/lilypond/2.24.1/fonts/source/feta-clefs.mf +963 -0
- data/share/lilypond/2.24.1/fonts/source/feta-dots.mf +37 -0
- data/share/lilypond/2.24.1/fonts/source/feta-dynamics.mf +891 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags-generic.mf +17 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags.mf +926 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flats.mf +668 -0
- data/share/lilypond/2.24.1/fonts/source/feta-macros.mf +506 -0
- data/share/lilypond/2.24.1/fonts/source/feta-naturals.mf +223 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads-generic.mf +17 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads.mf +2642 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-numbers.mf +1677 -0
- data/share/lilypond/2.24.1/fonts/source/feta-other-generic.mf +27 -0
- data/share/lilypond/2.24.1/fonts/source/feta-params.mf +323 -0
- data/share/lilypond/2.24.1/fonts/source/feta-parenthesis.mf +63 -0
- data/share/lilypond/2.24.1/fonts/source/feta-pedals.mf +355 -0
- data/share/lilypond/2.24.1/fonts/source/feta-rests.mf +890 -0
- data/share/lilypond/2.24.1/fonts/source/feta-scripts.mf +2206 -0
- data/share/lilypond/2.24.1/fonts/source/feta-sharps.mf +524 -0
- data/share/lilypond/2.24.1/fonts/source/feta-sori-koron.mf +325 -0
- data/share/lilypond/2.24.1/fonts/source/feta-ties.mf +72 -0
- data/share/lilypond/2.24.1/fonts/source/feta-timesignatures.mf +119 -0
- data/share/lilypond/2.24.1/fonts/source/feta-trills.mf +321 -0
- data/share/lilypond/2.24.1/fonts/source/feta11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta20.mf +7 -0
- data/share/lilypond/2.24.1/fonts/source/feta23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-accidentals.mf +483 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-clefs.mf +1636 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-custodes.mf +503 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-dots.mf +62 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-flags.mf +319 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-macros.mf +225 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads-generic.mf +16 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads.mf +2191 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-other-generic.mf +24 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-rests.mf +428 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-scripts.mf +284 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-timesignatures.mf +402 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.svg +2525 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.svg +2530 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.svg +2526 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.svg +2523 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.svg +2519 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.svg +2512 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.svg +2506 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.svg +2510 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.svg +1757 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.woff +0 -0
- data/share/lilypond/2.24.1/ly/Welcome_to_LilyPond.ly +45 -0
- data/share/lilypond/2.24.1/ly/arabic.ly +185 -0
- data/share/lilypond/2.24.1/ly/articulate.ly +1013 -0
- data/share/lilypond/2.24.1/ly/bagpipe.ly +368 -0
- data/share/lilypond/2.24.1/ly/base-tkit.ly +135 -0
- data/share/lilypond/2.24.1/ly/catalan.ly +23 -0
- data/share/lilypond/2.24.1/ly/chord-modifiers-init.ly +63 -0
- data/share/lilypond/2.24.1/ly/chord-repetition-init.ly +60 -0
- data/share/lilypond/2.24.1/ly/context-mods-init.ly +119 -0
- data/share/lilypond/2.24.1/ly/declarations-init.ly +167 -0
- data/share/lilypond/2.24.1/ly/deutsch.ly +23 -0
- data/share/lilypond/2.24.1/ly/drumpitch-init.ly +366 -0
- data/share/lilypond/2.24.1/ly/dynamic-scripts-init.ly +54 -0
- data/share/lilypond/2.24.1/ly/english.ly +23 -0
- data/share/lilypond/2.24.1/ly/engraver-init.ly +1619 -0
- data/share/lilypond/2.24.1/ly/espanol.ly +23 -0
- data/share/lilypond/2.24.1/ly/event-listener.ly +241 -0
- data/share/lilypond/2.24.1/ly/festival.ly +38 -0
- data/share/lilypond/2.24.1/ly/generate-documentation.ly +7 -0
- data/share/lilypond/2.24.1/ly/grace-init.ly +56 -0
- data/share/lilypond/2.24.1/ly/graphviz-init.ly +174 -0
- data/share/lilypond/2.24.1/ly/gregorian.ly +268 -0
- data/share/lilypond/2.24.1/ly/guile-debugger.ly +55 -0
- data/share/lilypond/2.24.1/ly/hel-arabic.ly +307 -0
- data/share/lilypond/2.24.1/ly/init.ly +96 -0
- data/share/lilypond/2.24.1/ly/italiano.ly +23 -0
- data/share/lilypond/2.24.1/ly/lilypond-book-preamble.ly +47 -0
- data/share/lilypond/2.24.1/ly/lyrics-tkit.ly +68 -0
- data/share/lilypond/2.24.1/ly/makam.ly +166 -0
- data/share/lilypond/2.24.1/ly/midi-init.ly +59 -0
- data/share/lilypond/2.24.1/ly/music-functions-init.ly +2254 -0
- data/share/lilypond/2.24.1/ly/nederlands.ly +23 -0
- data/share/lilypond/2.24.1/ly/norsk.ly +23 -0
- data/share/lilypond/2.24.1/ly/paper-defaults-init.ly +188 -0
- data/share/lilypond/2.24.1/ly/performer-init.ly +398 -0
- data/share/lilypond/2.24.1/ly/persian.ly +335 -0
- data/share/lilypond/2.24.1/ly/piano-tkit.ly +61 -0
- data/share/lilypond/2.24.1/ly/portugues.ly +23 -0
- data/share/lilypond/2.24.1/ly/predefined-fretboards-init.ly +78 -0
- data/share/lilypond/2.24.1/ly/predefined-guitar-fretboards.ly +506 -0
- data/share/lilypond/2.24.1/ly/predefined-guitar-ninth-fretboards.ly +75 -0
- data/share/lilypond/2.24.1/ly/predefined-mandolin-fretboards.ly +876 -0
- data/share/lilypond/2.24.1/ly/predefined-ukulele-fretboards.ly +1285 -0
- data/share/lilypond/2.24.1/ly/property-init.ly +858 -0
- data/share/lilypond/2.24.1/ly/satb.ly +214 -0
- data/share/lilypond/2.24.1/ly/scale-definitions-init.ly +117 -0
- data/share/lilypond/2.24.1/ly/scheme-sandbox.ly +39 -0
- data/share/lilypond/2.24.1/ly/script-init.ly +94 -0
- data/share/lilypond/2.24.1/ly/spanners-init.ly +146 -0
- data/share/lilypond/2.24.1/ly/ssaattbb.ly +335 -0
- data/share/lilypond/2.24.1/ly/staff-tkit.ly +182 -0
- data/share/lilypond/2.24.1/ly/string-tunings-init.ly +94 -0
- data/share/lilypond/2.24.1/ly/suomi.ly +23 -0
- data/share/lilypond/2.24.1/ly/svenska.ly +23 -0
- data/share/lilypond/2.24.1/ly/swing.ly +362 -0
- data/share/lilypond/2.24.1/ly/text-replacements.ly +150 -0
- data/share/lilypond/2.24.1/ly/titling-init.ly +150 -0
- data/share/lilypond/2.24.1/ly/toc-init.ly +182 -0
- data/share/lilypond/2.24.1/ly/turkish-makam.ly +609 -0
- data/share/lilypond/2.24.1/ly/vlaams.ly +23 -0
- data/share/lilypond/2.24.1/ly/vocal-tkit.ly +103 -0
- data/share/lilypond/2.24.1/ly/voice-tkit.ly +34 -0
- data/share/lilypond/2.24.1/ps/encodingdefs.ps +2611 -0
- data/share/lilypond/2.24.1/ps/lilyponddefs.ps +49 -0
- data/share/lilypond/2.24.1/ps/music-drawing-routines.ps +329 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_base.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_docbook.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_html.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_latex.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_snippets.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_texinfo.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/convertrules.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/langdefs.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/lilylib.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/midi.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicexp.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicxml.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicxml2ly_conversion.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/utilities.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/book_base.py +331 -0
- data/share/lilypond/2.24.1/python/book_docbook.py +154 -0
- data/share/lilypond/2.24.1/python/book_html.py +178 -0
- data/share/lilypond/2.24.1/python/book_latex.py +373 -0
- data/share/lilypond/2.24.1/python/book_snippets.py +1052 -0
- data/share/lilypond/2.24.1/python/book_texinfo.py +437 -0
- data/share/lilypond/2.24.1/python/convertrules.py +4764 -0
- data/share/lilypond/2.24.1/python/langdefs.py +131 -0
- data/share/lilypond/2.24.1/python/lilylib.py +141 -0
- data/share/lilypond/2.24.1/python/midi.py +212 -0
- data/share/lilypond/2.24.1/python/musicexp.py +2781 -0
- data/share/lilypond/2.24.1/python/musicxml.py +1905 -0
- data/share/lilypond/2.24.1/python/musicxml2ly_conversion.py +80 -0
- data/share/lilypond/2.24.1/python/utilities.py +280 -0
- data/share/lilypond/2.24.1/scm/lily/accreg.scm +579 -0
- data/share/lilypond/2.24.1/scm/lily/auto-beam.scm +163 -0
- data/share/lilypond/2.24.1/scm/lily/autochange.scm +100 -0
- data/share/lilypond/2.24.1/scm/lily/backend-library.scm +593 -0
- data/share/lilypond/2.24.1/scm/lily/bar-line.scm +1281 -0
- data/share/lilypond/2.24.1/scm/lily/breath.scm +74 -0
- data/share/lilypond/2.24.1/scm/lily/c++.scm +174 -0
- data/share/lilypond/2.24.1/scm/lily/chord-entry.scm +278 -0
- data/share/lilypond/2.24.1/scm/lily/chord-ignatzek-names.scm +304 -0
- data/share/lilypond/2.24.1/scm/lily/chord-name.scm +217 -0
- data/share/lilypond/2.24.1/scm/lily/clip-region.scm +87 -0
- data/share/lilypond/2.24.1/scm/lily/color.scm +757 -0
- data/share/lilypond/2.24.1/scm/lily/curried-definitions.scm +68 -0
- data/share/lilypond/2.24.1/scm/lily/define-context-properties.scm +939 -0
- data/share/lilypond/2.24.1/scm/lily/define-event-classes.scm +142 -0
- data/share/lilypond/2.24.1/scm/lily/define-grob-interfaces.scm +640 -0
- data/share/lilypond/2.24.1/scm/lily/define-grob-properties.scm +1647 -0
- data/share/lilypond/2.24.1/scm/lily/define-grobs.scm +4027 -0
- data/share/lilypond/2.24.1/scm/lily/define-markup-commands.scm +5737 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-callbacks.scm +257 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-display-methods.scm +1350 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-properties.scm +242 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-types.scm +983 -0
- data/share/lilypond/2.24.1/scm/lily/define-note-names.scm +1421 -0
- data/share/lilypond/2.24.1/scm/lily/define-stencil-commands.scm +71 -0
- data/share/lilypond/2.24.1/scm/lily/define-woodwind-diagrams.scm +1215 -0
- data/share/lilypond/2.24.1/scm/lily/display-lily.scm +315 -0
- data/share/lilypond/2.24.1/scm/lily/display-woodwind-diagrams.scm +1985 -0
- data/share/lilypond/2.24.1/scm/lily/document-backend.scm +307 -0
- data/share/lilypond/2.24.1/scm/lily/document-context-mods.scm +98 -0
- data/share/lilypond/2.24.1/scm/lily/document-functions.scm +169 -0
- data/share/lilypond/2.24.1/scm/lily/document-identifiers.scm +76 -0
- data/share/lilypond/2.24.1/scm/lily/document-markup.scm +158 -0
- data/share/lilypond/2.24.1/scm/lily/document-music.scm +146 -0
- data/share/lilypond/2.24.1/scm/lily/document-outside-staff-priorities.scm +40 -0
- data/share/lilypond/2.24.1/scm/lily/document-paper-sizes.scm +71 -0
- data/share/lilypond/2.24.1/scm/lily/document-translation.scm +318 -0
- data/share/lilypond/2.24.1/scm/lily/document-type-predicates.scm +85 -0
- data/share/lilypond/2.24.1/scm/lily/documentation-generate.scm +259 -0
- data/share/lilypond/2.24.1/scm/lily/documentation-lib.scm +207 -0
- data/share/lilypond/2.24.1/scm/lily/file-cache.scm +28 -0
- data/share/lilypond/2.24.1/scm/lily/flag-styles.scm +249 -0
- data/share/lilypond/2.24.1/scm/lily/font-encodings.scm +1242 -0
- data/share/lilypond/2.24.1/scm/lily/font.scm +303 -0
- data/share/lilypond/2.24.1/scm/lily/framework-cairo.scm +26 -0
- data/share/lilypond/2.24.1/scm/lily/framework-ps.scm +896 -0
- data/share/lilypond/2.24.1/scm/lily/framework-svg.scm +172 -0
- data/share/lilypond/2.24.1/scm/lily/fret-diagrams.scm +1261 -0
- data/share/lilypond/2.24.1/scm/lily/graphviz.scm +78 -0
- data/share/lilypond/2.24.1/scm/lily/guile-debugger.scm +90 -0
- data/share/lilypond/2.24.1/scm/lily/harp-pedals.scm +172 -0
- data/share/lilypond/2.24.1/scm/lily/hyphenate-internal-words.scm +51 -0
- data/share/lilypond/2.24.1/scm/lily/layout-beam.scm +73 -0
- data/share/lilypond/2.24.1/scm/lily/layout-slur.scm +45 -0
- data/share/lilypond/2.24.1/scm/lily/lily-library.scm +1446 -0
- data/share/lilypond/2.24.1/scm/lily/lily-sort.scm +116 -0
- data/share/lilypond/2.24.1/scm/lily/lily.scm +929 -0
- data/share/lilypond/2.24.1/scm/lily/ly-syntax-constructors.scm +374 -0
- data/share/lilypond/2.24.1/scm/lily/markup-macros.scm +493 -0
- data/share/lilypond/2.24.1/scm/lily/markup.scm +126 -0
- data/share/lilypond/2.24.1/scm/lily/midi.scm +258 -0
- data/share/lilypond/2.24.1/scm/lily/modal-transforms.scm +337 -0
- data/share/lilypond/2.24.1/scm/lily/music-functions.scm +2878 -0
- data/share/lilypond/2.24.1/scm/lily/output-lib.scm +3377 -0
- data/share/lilypond/2.24.1/scm/lily/output-ps.scm +335 -0
- data/share/lilypond/2.24.1/scm/lily/output-svg.scm +684 -0
- data/share/lilypond/2.24.1/scm/lily/page.scm +321 -0
- data/share/lilypond/2.24.1/scm/lily/paper-system.scm +271 -0
- data/share/lilypond/2.24.1/scm/lily/paper.scm +376 -0
- data/share/lilypond/2.24.1/scm/lily/parser-clef.scm +205 -0
- data/share/lilypond/2.24.1/scm/lily/parser-ly-from-scheme.scm +170 -0
- data/share/lilypond/2.24.1/scm/lily/part-combiner.scm +998 -0
- data/share/lilypond/2.24.1/scm/lily/predefined-fretboards.scm +54 -0
- data/share/lilypond/2.24.1/scm/lily/ps-to-png.scm +182 -0
- data/share/lilypond/2.24.1/scm/lily/scheme-engravers.scm +1813 -0
- data/share/lilypond/2.24.1/scm/lily/scheme-performers.scm +126 -0
- data/share/lilypond/2.24.1/scm/lily/script.scm +416 -0
- data/share/lilypond/2.24.1/scm/lily/skyline.scm +25 -0
- data/share/lilypond/2.24.1/scm/lily/song-util.scm +191 -0
- data/share/lilypond/2.24.1/scm/lily/song.scm +853 -0
- data/share/lilypond/2.24.1/scm/lily/stencil.scm +998 -0
- data/share/lilypond/2.24.1/scm/lily/tablature.scm +392 -0
- data/share/lilypond/2.24.1/scm/lily/time-signature-settings.scm +473 -0
- data/share/lilypond/2.24.1/scm/lily/time-signature.scm +35 -0
- data/share/lilypond/2.24.1/scm/lily/titling.scm +99 -0
- data/share/lilypond/2.24.1/scm/lily/to-xml.scm +254 -0
- data/share/lilypond/2.24.1/scm/lily/translation-functions.scm +1169 -0
- data/share/lilypond/2.24.1/vim/compiler/lilypond.vim +36 -0
- data/share/lilypond/2.24.1/vim/ftdetect/lilypond.vim +4 -0
- data/share/lilypond/2.24.1/vim/ftplugin/lilypond.vim +91 -0
- data/share/lilypond/2.24.1/vim/indent/lilypond.vim +79 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond-words +1408 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond-words.vim +3 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond.vim +104 -0
- data/share/locale/ca/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/cs/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/da/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/de/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/el/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/eo/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/es/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/fi/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/fr/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/it/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/ja/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/nl/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/ru/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/sv/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/tr/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/uk/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/vi/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/zh_CN/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/zh_TW/LC_MESSAGES/lilypond.mo +0 -0
- metadata +1135 -4
@@ -0,0 +1,1042 @@
|
|
1
|
+
;;; Guile ELF reader and writer
|
2
|
+
|
3
|
+
;; Copyright (C) 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc.
|
4
|
+
|
5
|
+
;;;; This library is free software; you can redistribute it and/or
|
6
|
+
;;;; modify it under the terms of the GNU Lesser General Public
|
7
|
+
;;;; License as published by the Free Software Foundation; either
|
8
|
+
;;;; version 3 of the License, or (at your option) any later version.
|
9
|
+
;;;;
|
10
|
+
;;;; This library is distributed in the hope that it will be useful,
|
11
|
+
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
;;;; Lesser General Public License for more details.
|
14
|
+
;;;;
|
15
|
+
;;;; You should have received a copy of the GNU Lesser General Public
|
16
|
+
;;;; License along with this library; if not, write to the Free Software
|
17
|
+
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
|
19
|
+
;;; Commentary:
|
20
|
+
;;;
|
21
|
+
;;; A module to read and write Executable and Linking Format (ELF)
|
22
|
+
;;; files.
|
23
|
+
;;;
|
24
|
+
;;; This module exports a number of record types that represent the
|
25
|
+
;;; various parts that make up ELF files. Fundamentally this is the
|
26
|
+
;;; main header, the segment headers (program headers), and the section
|
27
|
+
;;; headers. It also exports bindings for symbolic constants and
|
28
|
+
;;; utilities to parse and write special kinds of ELF sections.
|
29
|
+
;;;
|
30
|
+
;;; See elf(5) for more information on ELF.
|
31
|
+
;;;
|
32
|
+
;;; Code:
|
33
|
+
|
34
|
+
(define-module (system vm elf)
|
35
|
+
#:use-module (rnrs bytevectors)
|
36
|
+
#:use-module (system foreign)
|
37
|
+
#:use-module (system base target)
|
38
|
+
#:use-module (srfi srfi-9)
|
39
|
+
#:use-module (ice-9 receive)
|
40
|
+
#:use-module (ice-9 vlist)
|
41
|
+
#:export (has-elf-header?
|
42
|
+
|
43
|
+
(make-elf* . make-elf)
|
44
|
+
elf?
|
45
|
+
elf-bytes elf-word-size elf-byte-order
|
46
|
+
elf-abi elf-type elf-machine-type
|
47
|
+
elf-entry elf-phoff elf-shoff elf-flags elf-ehsize
|
48
|
+
elf-phentsize elf-phnum elf-shentsize elf-shnum elf-shstrndx
|
49
|
+
|
50
|
+
ELFOSABI_NONE ELFOSABI_HPUX ELFOSABI_NETBSD ELFOSABI_GNU
|
51
|
+
ELFOSABI_SOLARIS ELFOSABI_AIX ELFOSABI_IRIX ELFOSABI_FREEBSD
|
52
|
+
ELFOSABI_TRU64 ELFOSABI_MODESTO ELFOSABI_OPENBSD
|
53
|
+
ELFOSABI_ARM_AEABI ELFOSABI_ARM ELFOSABI_STANDALONE
|
54
|
+
|
55
|
+
ET_NONE ET_REL ET_EXEC ET_DYN ET_CORE
|
56
|
+
|
57
|
+
EM_NONE EM_SPARC EM_386 EM_MIPS EM_PPC EM_PPC64 EM_ARM EM_SH
|
58
|
+
EM_SPARCV9 EM_IA_64 EM_X86_64
|
59
|
+
|
60
|
+
elf-header-len elf-header-shoff-offset
|
61
|
+
write-elf-header
|
62
|
+
|
63
|
+
(make-elf-segment* . make-elf-segment)
|
64
|
+
elf-segment?
|
65
|
+
elf-segment-index
|
66
|
+
elf-segment-type elf-segment-offset elf-segment-vaddr
|
67
|
+
elf-segment-paddr elf-segment-filesz elf-segment-memsz
|
68
|
+
elf-segment-flags elf-segment-align
|
69
|
+
|
70
|
+
elf-program-header-len write-elf-program-header
|
71
|
+
|
72
|
+
PT_NULL PT_LOAD PT_DYNAMIC PT_INTERP PT_NOTE PT_SHLIB
|
73
|
+
PT_PHDR PT_TLS PT_NUM PT_LOOS PT_GNU_EH_FRAME PT_GNU_STACK
|
74
|
+
PT_GNU_RELRO
|
75
|
+
|
76
|
+
PF_R PF_W PF_X
|
77
|
+
|
78
|
+
(make-elf-section* . make-elf-section)
|
79
|
+
elf-section?
|
80
|
+
elf-section-index
|
81
|
+
elf-section-name elf-section-type elf-section-flags
|
82
|
+
elf-section-addr elf-section-offset elf-section-size
|
83
|
+
elf-section-link elf-section-info elf-section-addralign
|
84
|
+
elf-section-entsize
|
85
|
+
|
86
|
+
elf-section-header-len elf-section-header-addr-offset
|
87
|
+
elf-section-header-offset-offset
|
88
|
+
write-elf-section-header
|
89
|
+
|
90
|
+
(make-elf-symbol* . make-elf-symbol)
|
91
|
+
elf-symbol?
|
92
|
+
elf-symbol-name elf-symbol-value elf-symbol-size
|
93
|
+
elf-symbol-info elf-symbol-other elf-symbol-shndx
|
94
|
+
elf-symbol-binding elf-symbol-type elf-symbol-visibility
|
95
|
+
|
96
|
+
elf-symbol-len elf-symbol-value-offset write-elf-symbol
|
97
|
+
|
98
|
+
SHN_UNDEF
|
99
|
+
|
100
|
+
SHT_NULL SHT_PROGBITS SHT_SYMTAB SHT_STRTAB SHT_RELA
|
101
|
+
SHT_HASH SHT_DYNAMIC SHT_NOTE SHT_NOBITS SHT_REL SHT_SHLIB
|
102
|
+
SHT_DYNSYM SHT_INIT_ARRAY SHT_FINI_ARRAY SHT_PREINIT_ARRAY
|
103
|
+
SHT_GROUP SHT_SYMTAB_SHNDX SHT_NUM SHT_LOOS SHT_HIOS
|
104
|
+
SHT_LOPROC SHT_HIPROC SHT_LOUSER SHT_HIUSER
|
105
|
+
|
106
|
+
SHF_WRITE SHF_ALLOC SHF_EXECINSTR SHF_MERGE SHF_STRINGS
|
107
|
+
SHF_INFO_LINK SHF_LINK_ORDER SHF_OS_NONCONFORMING SHF_GROUP
|
108
|
+
SHF_TLS
|
109
|
+
|
110
|
+
DT_NULL DT_NEEDED DT_PLTRELSZ DT_PLTGOT DT_HASH DT_STRTAB
|
111
|
+
DT_SYMTAB DT_RELA DT_RELASZ DT_RELAENT DT_STRSZ DT_SYMENT
|
112
|
+
DT_INIT DT_FINI DT_SONAME DT_RPATH DT_SYMBOLIC DT_REL
|
113
|
+
DT_RELSZ DT_RELENT DT_PLTREL DT_DEBUG DT_TEXTREL DT_JMPREL
|
114
|
+
DT_BIND_NOW DT_INIT_ARRAY DT_FINI_ARRAY DT_INIT_ARRAYSZ
|
115
|
+
DT_FINI_ARRAYSZ DT_RUNPATH DT_FLAGS DT_ENCODING
|
116
|
+
DT_PREINIT_ARRAY DT_PREINIT_ARRAYSZ DT_NUM DT_LOGUILE
|
117
|
+
DT_GUILE_GC_ROOT DT_GUILE_GC_ROOT_SZ DT_GUILE_ENTRY
|
118
|
+
DT_GUILE_VM_VERSION DT_GUILE_FRAME_MAPS DT_HIGUILE
|
119
|
+
DT_LOOS DT_HIOS DT_LOPROC DT_HIPROC
|
120
|
+
|
121
|
+
string-table-ref
|
122
|
+
|
123
|
+
STB_LOCAL STB_GLOBAL STB_WEAK STB_NUM STB_LOOS STB_GNU
|
124
|
+
STB_HIOS STB_LOPROC STB_HIPROC
|
125
|
+
|
126
|
+
STT_NOTYPE STT_OBJECT STT_FUNC STT_SECTION STT_FILE
|
127
|
+
STT_COMMON STT_TLS STT_NUM STT_LOOS STT_GNU STT_HIOS
|
128
|
+
STT_LOPROC STT_HIPROC
|
129
|
+
|
130
|
+
STV_DEFAULT STV_INTERNAL STV_HIDDEN STV_PROTECTED
|
131
|
+
|
132
|
+
NT_GNU_ABI_TAG NT_GNU_HWCAP NT_GNU_BUILD_ID NT_GNU_GOLD_VERSION
|
133
|
+
|
134
|
+
parse-elf
|
135
|
+
elf-segment elf-segments
|
136
|
+
elf-section elf-sections elf-section-by-name elf-sections-by-name
|
137
|
+
elf-symbol-table-len elf-symbol-table-ref
|
138
|
+
|
139
|
+
parse-elf-note
|
140
|
+
elf-note-name elf-note-desc elf-note-type))
|
141
|
+
|
142
|
+
;; #define EI_NIDENT 16
|
143
|
+
|
144
|
+
;; typedef struct {
|
145
|
+
;; unsigned char e_ident[EI_NIDENT];
|
146
|
+
;; uint16_t e_type;
|
147
|
+
;; uint16_t e_machine;
|
148
|
+
;; uint32_t e_version;
|
149
|
+
;; ElfN_Addr e_entry;
|
150
|
+
;; ElfN_Off e_phoff;
|
151
|
+
;; ElfN_Off e_shoff;
|
152
|
+
;; uint32_t e_flags;
|
153
|
+
;; uint16_t e_ehsize;
|
154
|
+
;; uint16_t e_phentsize;
|
155
|
+
;; uint16_t e_phnum;
|
156
|
+
;; uint16_t e_shentsize;
|
157
|
+
;; uint16_t e_shnum;
|
158
|
+
;; uint16_t e_shstrndx;
|
159
|
+
;; } ElfN_Ehdr;
|
160
|
+
|
161
|
+
(define elf32-header-len 52)
|
162
|
+
(define elf64-header-len 64)
|
163
|
+
(define (elf-header-len word-size)
|
164
|
+
(case word-size
|
165
|
+
((4) elf32-header-len)
|
166
|
+
((8) elf64-header-len)
|
167
|
+
(else (error "invalid word size" word-size))))
|
168
|
+
(define (elf-header-shoff-offset word-size)
|
169
|
+
(case word-size
|
170
|
+
((4) 32)
|
171
|
+
((8) 40)
|
172
|
+
(else (error "bad word size" word-size))))
|
173
|
+
|
174
|
+
(define ELFCLASS32 1) ; 32-bit objects
|
175
|
+
(define ELFCLASS64 2) ; 64-bit objects
|
176
|
+
|
177
|
+
(define ELFDATA2LSB 1) ; 2's complement, little endian
|
178
|
+
(define ELFDATA2MSB 2) ; 2's complement, big endian
|
179
|
+
|
180
|
+
(define EV_CURRENT 1) ; Current version
|
181
|
+
|
182
|
+
(define ELFOSABI_NONE 0) ; UNIX System V ABI */
|
183
|
+
(define ELFOSABI_HPUX 1) ; HP-UX
|
184
|
+
(define ELFOSABI_NETBSD 2) ; NetBSD.
|
185
|
+
(define ELFOSABI_GNU 3) ; Object uses GNU ELF extensions.
|
186
|
+
(define ELFOSABI_SOLARIS 6) ; Sun Solaris.
|
187
|
+
(define ELFOSABI_AIX 7) ; IBM AIX.
|
188
|
+
(define ELFOSABI_IRIX 8) ; SGI Irix.
|
189
|
+
(define ELFOSABI_FREEBSD 9) ; FreeBSD.
|
190
|
+
(define ELFOSABI_TRU64 10) ; Compaq TRU64 UNIX.
|
191
|
+
(define ELFOSABI_MODESTO 11) ; Novell Modesto.
|
192
|
+
(define ELFOSABI_OPENBSD 12) ; OpenBSD.
|
193
|
+
(define ELFOSABI_ARM_AEABI 64) ; ARM EABI
|
194
|
+
(define ELFOSABI_ARM 97) ; ARM
|
195
|
+
(define ELFOSABI_STANDALONE 255) ; Standalone (embedded) application
|
196
|
+
|
197
|
+
(define ET_NONE 0) ; No file type
|
198
|
+
(define ET_REL 1) ; Relocatable file
|
199
|
+
(define ET_EXEC 2) ; Executable file
|
200
|
+
(define ET_DYN 3) ; Shared object file
|
201
|
+
(define ET_CORE 4) ; Core file
|
202
|
+
|
203
|
+
;;
|
204
|
+
;; Machine types
|
205
|
+
;;
|
206
|
+
;; Just a sampling of these values. We could include more, but the
|
207
|
+
;; important thing is to recognize architectures for which we have a
|
208
|
+
;; native compiler. Recognizing more common machine types is icing on
|
209
|
+
;; the cake.
|
210
|
+
;;
|
211
|
+
(define EM_NONE 0) ; No machine
|
212
|
+
(define EM_SPARC 2) ; SUN SPARC
|
213
|
+
(define EM_386 3) ; Intel 80386
|
214
|
+
(define EM_MIPS 8) ; MIPS R3000 big-endian
|
215
|
+
(define EM_PPC 20) ; PowerPC
|
216
|
+
(define EM_PPC64 21) ; PowerPC 64-bit
|
217
|
+
(define EM_ARM 40) ; ARM
|
218
|
+
(define EM_SH 42) ; Hitachi SH
|
219
|
+
(define EM_SPARCV9 43) ; SPARC v9 64-bit
|
220
|
+
(define EM_IA_64 50) ; Intel Merced
|
221
|
+
(define EM_X86_64 62) ; AMD x86-64 architecture
|
222
|
+
|
223
|
+
(define cpu-mapping (make-hash-table))
|
224
|
+
(for-each (lambda (pair)
|
225
|
+
(hashq-set! cpu-mapping (car pair) (cdr pair)))
|
226
|
+
`((none . ,EM_NONE)
|
227
|
+
(sparc . ,EM_SPARC) ; FIXME: map 64-bit to SPARCV9 ?
|
228
|
+
(i386 . ,EM_386)
|
229
|
+
(mips . ,EM_MIPS)
|
230
|
+
(ppc . ,EM_PPC)
|
231
|
+
(ppc64 . ,EM_PPC64)
|
232
|
+
(arm . ,EM_ARM) ; FIXME: there are more arm cpu variants
|
233
|
+
(sh . ,EM_SH) ; FIXME: there are more sh cpu variants
|
234
|
+
(ia64 . ,EM_IA_64)
|
235
|
+
(x86_64 . ,EM_X86_64)))
|
236
|
+
|
237
|
+
(define SHN_UNDEF 0)
|
238
|
+
|
239
|
+
(define host-machine-type
|
240
|
+
(hashq-ref cpu-mapping
|
241
|
+
(string->symbol (car (string-split %host-type #\-)))
|
242
|
+
EM_NONE))
|
243
|
+
|
244
|
+
(define host-word-size
|
245
|
+
(sizeof '*))
|
246
|
+
|
247
|
+
(define host-byte-order
|
248
|
+
(native-endianness))
|
249
|
+
|
250
|
+
(define (has-elf-header? bv)
|
251
|
+
(and
|
252
|
+
;; e_ident
|
253
|
+
(>= (bytevector-length bv) 16)
|
254
|
+
(= (bytevector-u8-ref bv 0) #x7f)
|
255
|
+
(= (bytevector-u8-ref bv 1) (char->integer #\E))
|
256
|
+
(= (bytevector-u8-ref bv 2) (char->integer #\L))
|
257
|
+
(= (bytevector-u8-ref bv 3) (char->integer #\F))
|
258
|
+
(cond
|
259
|
+
((= (bytevector-u8-ref bv 4) ELFCLASS32)
|
260
|
+
(>= (bytevector-length bv) elf32-header-len))
|
261
|
+
((= (bytevector-u8-ref bv 4) ELFCLASS64)
|
262
|
+
(>= (bytevector-length bv) elf64-header-len))
|
263
|
+
(else #f))
|
264
|
+
(or (= (bytevector-u8-ref bv 5) ELFDATA2LSB)
|
265
|
+
(= (bytevector-u8-ref bv 5) ELFDATA2MSB))
|
266
|
+
(= (bytevector-u8-ref bv 6) EV_CURRENT)
|
267
|
+
;; Look at ABI later.
|
268
|
+
(= (bytevector-u8-ref bv 8) 0) ; ABI version
|
269
|
+
;; The rest of the e_ident is padding.
|
270
|
+
|
271
|
+
;; e_version
|
272
|
+
(let ((byte-order (if (= (bytevector-u8-ref bv 5) ELFDATA2LSB)
|
273
|
+
(endianness little)
|
274
|
+
(endianness big))))
|
275
|
+
(= (bytevector-u32-ref bv 20 byte-order) EV_CURRENT))))
|
276
|
+
|
277
|
+
(define-record-type <elf>
|
278
|
+
(make-elf bytes word-size byte-order abi type machine-type
|
279
|
+
entry phoff shoff flags ehsize
|
280
|
+
phentsize phnum shentsize shnum shstrndx)
|
281
|
+
elf?
|
282
|
+
(bytes elf-bytes)
|
283
|
+
(word-size elf-word-size)
|
284
|
+
(byte-order elf-byte-order)
|
285
|
+
(abi elf-abi)
|
286
|
+
(type elf-type)
|
287
|
+
(machine-type elf-machine-type)
|
288
|
+
(entry elf-entry)
|
289
|
+
(phoff elf-phoff)
|
290
|
+
(shoff elf-shoff)
|
291
|
+
(flags elf-flags)
|
292
|
+
(ehsize elf-ehsize)
|
293
|
+
(phentsize elf-phentsize)
|
294
|
+
(phnum elf-phnum)
|
295
|
+
(shentsize elf-shentsize)
|
296
|
+
(shnum elf-shnum)
|
297
|
+
(shstrndx elf-shstrndx))
|
298
|
+
|
299
|
+
(define* (make-elf* #:key (bytes #f)
|
300
|
+
(byte-order (target-endianness))
|
301
|
+
(word-size (target-word-size))
|
302
|
+
(abi ELFOSABI_STANDALONE)
|
303
|
+
(type ET_DYN)
|
304
|
+
(machine-type EM_NONE)
|
305
|
+
(entry 0)
|
306
|
+
(phoff (elf-header-len word-size))
|
307
|
+
(shoff -1)
|
308
|
+
(flags 0)
|
309
|
+
(ehsize (elf-header-len word-size))
|
310
|
+
(phentsize (elf-program-header-len word-size))
|
311
|
+
(phnum 0)
|
312
|
+
(shentsize (elf-section-header-len word-size))
|
313
|
+
(shnum 0)
|
314
|
+
(shstrndx SHN_UNDEF))
|
315
|
+
(make-elf bytes word-size byte-order abi type machine-type
|
316
|
+
entry phoff shoff flags ehsize
|
317
|
+
phentsize phnum shentsize shnum shstrndx))
|
318
|
+
|
319
|
+
(define (parse-elf32 bv byte-order)
|
320
|
+
(make-elf bv 4 byte-order
|
321
|
+
(bytevector-u8-ref bv 7)
|
322
|
+
(bytevector-u16-ref bv 16 byte-order)
|
323
|
+
(bytevector-u16-ref bv 18 byte-order)
|
324
|
+
(bytevector-u32-ref bv 24 byte-order)
|
325
|
+
(bytevector-u32-ref bv 28 byte-order)
|
326
|
+
(bytevector-u32-ref bv 32 byte-order)
|
327
|
+
(bytevector-u32-ref bv 36 byte-order)
|
328
|
+
(bytevector-u16-ref bv 40 byte-order)
|
329
|
+
(bytevector-u16-ref bv 42 byte-order)
|
330
|
+
(bytevector-u16-ref bv 44 byte-order)
|
331
|
+
(bytevector-u16-ref bv 46 byte-order)
|
332
|
+
(bytevector-u16-ref bv 48 byte-order)
|
333
|
+
(bytevector-u16-ref bv 50 byte-order)))
|
334
|
+
|
335
|
+
(define (write-elf-ident bv class data abi)
|
336
|
+
(bytevector-u8-set! bv 0 #x7f)
|
337
|
+
(bytevector-u8-set! bv 1 (char->integer #\E))
|
338
|
+
(bytevector-u8-set! bv 2 (char->integer #\L))
|
339
|
+
(bytevector-u8-set! bv 3 (char->integer #\F))
|
340
|
+
(bytevector-u8-set! bv 4 class)
|
341
|
+
(bytevector-u8-set! bv 5 data)
|
342
|
+
(bytevector-u8-set! bv 6 EV_CURRENT)
|
343
|
+
(bytevector-u8-set! bv 7 abi)
|
344
|
+
(bytevector-u8-set! bv 8 0) ; ABI version
|
345
|
+
(bytevector-u8-set! bv 9 0) ; Pad to 16 bytes.
|
346
|
+
(bytevector-u8-set! bv 10 0)
|
347
|
+
(bytevector-u8-set! bv 11 0)
|
348
|
+
(bytevector-u8-set! bv 12 0)
|
349
|
+
(bytevector-u8-set! bv 13 0)
|
350
|
+
(bytevector-u8-set! bv 14 0)
|
351
|
+
(bytevector-u8-set! bv 15 0))
|
352
|
+
|
353
|
+
(define (write-elf32-header bv elf)
|
354
|
+
(let ((byte-order (elf-byte-order elf)))
|
355
|
+
(write-elf-ident bv ELFCLASS32
|
356
|
+
(case byte-order
|
357
|
+
((little) ELFDATA2LSB)
|
358
|
+
((big) ELFDATA2MSB)
|
359
|
+
(else (error "unknown endianness" byte-order)))
|
360
|
+
(elf-abi elf))
|
361
|
+
(bytevector-u16-set! bv 16 (elf-type elf) byte-order)
|
362
|
+
(bytevector-u16-set! bv 18 (elf-machine-type elf) byte-order)
|
363
|
+
(bytevector-u32-set! bv 20 EV_CURRENT byte-order)
|
364
|
+
(bytevector-u32-set! bv 24 (elf-entry elf) byte-order)
|
365
|
+
(bytevector-u32-set! bv 28 (elf-phoff elf) byte-order)
|
366
|
+
(bytevector-u32-set! bv 32 (elf-shoff elf) byte-order)
|
367
|
+
(bytevector-u32-set! bv 36 (elf-flags elf) byte-order)
|
368
|
+
(bytevector-u16-set! bv 40 (elf-ehsize elf) byte-order)
|
369
|
+
(bytevector-u16-set! bv 42 (elf-phentsize elf) byte-order)
|
370
|
+
(bytevector-u16-set! bv 44 (elf-phnum elf) byte-order)
|
371
|
+
(bytevector-u16-set! bv 46 (elf-shentsize elf) byte-order)
|
372
|
+
(bytevector-u16-set! bv 48 (elf-shnum elf) byte-order)
|
373
|
+
(bytevector-u16-set! bv 50 (elf-shstrndx elf) byte-order)))
|
374
|
+
|
375
|
+
(define (parse-elf64 bv byte-order)
|
376
|
+
(make-elf bv 8 byte-order
|
377
|
+
(bytevector-u8-ref bv 7)
|
378
|
+
(bytevector-u16-ref bv 16 byte-order)
|
379
|
+
(bytevector-u16-ref bv 18 byte-order)
|
380
|
+
(bytevector-u64-ref bv 24 byte-order)
|
381
|
+
(bytevector-u64-ref bv 32 byte-order)
|
382
|
+
(bytevector-u64-ref bv 40 byte-order)
|
383
|
+
(bytevector-u32-ref bv 48 byte-order)
|
384
|
+
(bytevector-u16-ref bv 52 byte-order)
|
385
|
+
(bytevector-u16-ref bv 54 byte-order)
|
386
|
+
(bytevector-u16-ref bv 56 byte-order)
|
387
|
+
(bytevector-u16-ref bv 58 byte-order)
|
388
|
+
(bytevector-u16-ref bv 60 byte-order)
|
389
|
+
(bytevector-u16-ref bv 62 byte-order)))
|
390
|
+
|
391
|
+
(define (write-elf64-header bv elf)
|
392
|
+
(let ((byte-order (elf-byte-order elf)))
|
393
|
+
(write-elf-ident bv ELFCLASS64
|
394
|
+
(case byte-order
|
395
|
+
((little) ELFDATA2LSB)
|
396
|
+
((big) ELFDATA2MSB)
|
397
|
+
(else (error "unknown endianness" byte-order)))
|
398
|
+
(elf-abi elf))
|
399
|
+
(bytevector-u16-set! bv 16 (elf-type elf) byte-order)
|
400
|
+
(bytevector-u16-set! bv 18 (elf-machine-type elf) byte-order)
|
401
|
+
(bytevector-u32-set! bv 20 EV_CURRENT byte-order)
|
402
|
+
(bytevector-u64-set! bv 24 (elf-entry elf) byte-order)
|
403
|
+
(bytevector-u64-set! bv 32 (elf-phoff elf) byte-order)
|
404
|
+
(bytevector-u64-set! bv 40 (elf-shoff elf) byte-order)
|
405
|
+
(bytevector-u32-set! bv 48 (elf-flags elf) byte-order)
|
406
|
+
(bytevector-u16-set! bv 52 (elf-ehsize elf) byte-order)
|
407
|
+
(bytevector-u16-set! bv 54 (elf-phentsize elf) byte-order)
|
408
|
+
(bytevector-u16-set! bv 56 (elf-phnum elf) byte-order)
|
409
|
+
(bytevector-u16-set! bv 58 (elf-shentsize elf) byte-order)
|
410
|
+
(bytevector-u16-set! bv 60 (elf-shnum elf) byte-order)
|
411
|
+
(bytevector-u16-set! bv 62 (elf-shstrndx elf) byte-order)))
|
412
|
+
|
413
|
+
(define (parse-elf bv)
|
414
|
+
(cond
|
415
|
+
((has-elf-header? bv)
|
416
|
+
(let ((class (bytevector-u8-ref bv 4))
|
417
|
+
(byte-order (let ((data (bytevector-u8-ref bv 5)))
|
418
|
+
(cond
|
419
|
+
((= data ELFDATA2LSB) (endianness little))
|
420
|
+
((= data ELFDATA2MSB) (endianness big))
|
421
|
+
(else (error "unhandled byte order" data))))))
|
422
|
+
(cond
|
423
|
+
((= class ELFCLASS32) (parse-elf32 bv byte-order))
|
424
|
+
((= class ELFCLASS64) (parse-elf64 bv byte-order))
|
425
|
+
(else (error "unhandled class" class)))))
|
426
|
+
(else
|
427
|
+
(error "Invalid ELF" bv))))
|
428
|
+
|
429
|
+
(define* (write-elf-header bv elf)
|
430
|
+
((case (elf-word-size elf)
|
431
|
+
((4) write-elf32-header)
|
432
|
+
((8) write-elf64-header)
|
433
|
+
(else (error "unknown word size" (elf-word-size elf))))
|
434
|
+
bv elf))
|
435
|
+
|
436
|
+
;;
|
437
|
+
;; Segment types
|
438
|
+
;;
|
439
|
+
(define PT_NULL 0) ; Program header table entry unused
|
440
|
+
(define PT_LOAD 1) ; Loadable program segment
|
441
|
+
(define PT_DYNAMIC 2) ; Dynamic linking information
|
442
|
+
(define PT_INTERP 3) ; Program interpreter
|
443
|
+
(define PT_NOTE 4) ; Auxiliary information
|
444
|
+
(define PT_SHLIB 5) ; Reserved
|
445
|
+
(define PT_PHDR 6) ; Entry for header table itself
|
446
|
+
(define PT_TLS 7) ; Thread-local storage segment
|
447
|
+
(define PT_NUM 8) ; Number of defined types
|
448
|
+
(define PT_LOOS #x60000000) ; Start of OS-specific
|
449
|
+
(define PT_GNU_EH_FRAME #x6474e550) ; GCC .eh_frame_hdr segment
|
450
|
+
(define PT_GNU_STACK #x6474e551) ; Indicates stack executability
|
451
|
+
(define PT_GNU_RELRO #x6474e552) ; Read-only after relocation
|
452
|
+
|
453
|
+
;;
|
454
|
+
;; Segment flags
|
455
|
+
;;
|
456
|
+
(define PF_X (ash 1 0)) ; Segment is executable
|
457
|
+
(define PF_W (ash 1 1)) ; Segment is writable
|
458
|
+
(define PF_R (ash 1 2)) ; Segment is readable
|
459
|
+
|
460
|
+
(define-record-type <elf-segment>
|
461
|
+
(make-elf-segment index type offset vaddr paddr filesz memsz flags align)
|
462
|
+
elf-segment?
|
463
|
+
(index elf-segment-index)
|
464
|
+
(type elf-segment-type)
|
465
|
+
(offset elf-segment-offset)
|
466
|
+
(vaddr elf-segment-vaddr)
|
467
|
+
(paddr elf-segment-paddr)
|
468
|
+
(filesz elf-segment-filesz)
|
469
|
+
(memsz elf-segment-memsz)
|
470
|
+
(flags elf-segment-flags)
|
471
|
+
(align elf-segment-align))
|
472
|
+
|
473
|
+
(define* (make-elf-segment* #:key (index -1) (type PT_LOAD) (offset 0) (vaddr 0)
|
474
|
+
(paddr 0) (filesz 0) (memsz filesz)
|
475
|
+
(flags (logior PF_W PF_R))
|
476
|
+
(align 8))
|
477
|
+
(make-elf-segment index type offset vaddr paddr filesz memsz flags align))
|
478
|
+
|
479
|
+
;; typedef struct {
|
480
|
+
;; uint32_t p_type;
|
481
|
+
;; Elf32_Off p_offset;
|
482
|
+
;; Elf32_Addr p_vaddr;
|
483
|
+
;; Elf32_Addr p_paddr;
|
484
|
+
;; uint32_t p_filesz;
|
485
|
+
;; uint32_t p_memsz;
|
486
|
+
;; uint32_t p_flags;
|
487
|
+
;; uint32_t p_align;
|
488
|
+
;; } Elf32_Phdr;
|
489
|
+
|
490
|
+
(define (parse-elf32-program-header index bv offset byte-order)
|
491
|
+
(if (<= (+ offset 32) (bytevector-length bv))
|
492
|
+
(make-elf-segment index
|
493
|
+
(bytevector-u32-ref bv offset byte-order)
|
494
|
+
(bytevector-u32-ref bv (+ offset 4) byte-order)
|
495
|
+
(bytevector-u32-ref bv (+ offset 8) byte-order)
|
496
|
+
(bytevector-u32-ref bv (+ offset 12) byte-order)
|
497
|
+
(bytevector-u32-ref bv (+ offset 16) byte-order)
|
498
|
+
(bytevector-u32-ref bv (+ offset 20) byte-order)
|
499
|
+
(bytevector-u32-ref bv (+ offset 24) byte-order)
|
500
|
+
(bytevector-u32-ref bv (+ offset 28) byte-order))
|
501
|
+
(error "corrupt ELF (offset out of range)" offset)))
|
502
|
+
|
503
|
+
(define (write-elf32-program-header bv offset byte-order seg)
|
504
|
+
(bytevector-u32-set! bv offset (elf-segment-type seg) byte-order)
|
505
|
+
(bytevector-u32-set! bv (+ offset 4) (elf-segment-offset seg) byte-order)
|
506
|
+
(bytevector-u32-set! bv (+ offset 8) (elf-segment-vaddr seg) byte-order)
|
507
|
+
(bytevector-u32-set! bv (+ offset 12) (elf-segment-paddr seg) byte-order)
|
508
|
+
(bytevector-u32-set! bv (+ offset 16) (elf-segment-filesz seg) byte-order)
|
509
|
+
(bytevector-u32-set! bv (+ offset 20) (elf-segment-memsz seg) byte-order)
|
510
|
+
(bytevector-u32-set! bv (+ offset 24) (elf-segment-flags seg) byte-order)
|
511
|
+
(bytevector-u32-set! bv (+ offset 28) (elf-segment-align seg) byte-order))
|
512
|
+
|
513
|
+
|
514
|
+
;; typedef struct {
|
515
|
+
;; uint32_t p_type;
|
516
|
+
;; uint32_t p_flags;
|
517
|
+
;; Elf64_Off p_offset;
|
518
|
+
;; Elf64_Addr p_vaddr;
|
519
|
+
;; Elf64_Addr p_paddr;
|
520
|
+
;; uint64_t p_filesz;
|
521
|
+
;; uint64_t p_memsz;
|
522
|
+
;; uint64_t p_align;
|
523
|
+
;; } Elf64_Phdr;
|
524
|
+
|
525
|
+
;; NB: position of `flags' is different!
|
526
|
+
|
527
|
+
(define (parse-elf64-program-header index bv offset byte-order)
|
528
|
+
(if (<= (+ offset 56) (bytevector-length bv))
|
529
|
+
(make-elf-segment index
|
530
|
+
(bytevector-u32-ref bv offset byte-order)
|
531
|
+
(bytevector-u64-ref bv (+ offset 8) byte-order)
|
532
|
+
(bytevector-u64-ref bv (+ offset 16) byte-order)
|
533
|
+
(bytevector-u64-ref bv (+ offset 24) byte-order)
|
534
|
+
(bytevector-u64-ref bv (+ offset 32) byte-order)
|
535
|
+
(bytevector-u64-ref bv (+ offset 40) byte-order)
|
536
|
+
(bytevector-u32-ref bv (+ offset 4) byte-order)
|
537
|
+
(bytevector-u64-ref bv (+ offset 48) byte-order))
|
538
|
+
(error "corrupt ELF (offset out of range)" offset)))
|
539
|
+
|
540
|
+
(define (write-elf64-program-header bv offset byte-order seg)
|
541
|
+
(bytevector-u32-set! bv offset (elf-segment-type seg) byte-order)
|
542
|
+
(bytevector-u64-set! bv (+ offset 8) (elf-segment-offset seg) byte-order)
|
543
|
+
(bytevector-u64-set! bv (+ offset 16) (elf-segment-vaddr seg) byte-order)
|
544
|
+
(bytevector-u64-set! bv (+ offset 24) (elf-segment-paddr seg) byte-order)
|
545
|
+
(bytevector-u64-set! bv (+ offset 32) (elf-segment-filesz seg) byte-order)
|
546
|
+
(bytevector-u64-set! bv (+ offset 40) (elf-segment-memsz seg) byte-order)
|
547
|
+
(bytevector-u32-set! bv (+ offset 4) (elf-segment-flags seg) byte-order)
|
548
|
+
(bytevector-u64-set! bv (+ offset 48) (elf-segment-align seg) byte-order))
|
549
|
+
|
550
|
+
(define (write-elf-program-header bv offset byte-order word-size seg)
|
551
|
+
((case word-size
|
552
|
+
((4) write-elf32-program-header)
|
553
|
+
((8) write-elf64-program-header)
|
554
|
+
(else (error "invalid word size" word-size)))
|
555
|
+
bv offset byte-order seg))
|
556
|
+
|
557
|
+
(define (elf-program-header-len word-size)
|
558
|
+
(case word-size
|
559
|
+
((4) 32)
|
560
|
+
((8) 56)
|
561
|
+
(else (error "bad word size" word-size))))
|
562
|
+
|
563
|
+
(define (elf-segment elf n)
|
564
|
+
(if (not (< -1 n (elf-phnum elf)))
|
565
|
+
(error "bad segment number" n))
|
566
|
+
((case (elf-word-size elf)
|
567
|
+
((4) parse-elf32-program-header)
|
568
|
+
((8) parse-elf64-program-header)
|
569
|
+
(else (error "unhandled pointer size")))
|
570
|
+
n
|
571
|
+
(elf-bytes elf)
|
572
|
+
(+ (elf-phoff elf) (* n (elf-phentsize elf)))
|
573
|
+
(elf-byte-order elf)))
|
574
|
+
|
575
|
+
(define (elf-segments elf)
|
576
|
+
(let lp ((n (elf-phnum elf)) (out '()))
|
577
|
+
(if (zero? n)
|
578
|
+
out
|
579
|
+
(lp (1- n) (cons (elf-segment elf (1- n)) out)))))
|
580
|
+
|
581
|
+
(define-record-type <elf-section>
|
582
|
+
(make-elf-section index name type flags
|
583
|
+
addr offset size link info addralign entsize)
|
584
|
+
elf-section?
|
585
|
+
(index elf-section-index)
|
586
|
+
(name elf-section-name)
|
587
|
+
(type elf-section-type)
|
588
|
+
(flags elf-section-flags)
|
589
|
+
(addr elf-section-addr)
|
590
|
+
(offset elf-section-offset)
|
591
|
+
(size elf-section-size)
|
592
|
+
(link elf-section-link)
|
593
|
+
(info elf-section-info)
|
594
|
+
(addralign elf-section-addralign)
|
595
|
+
(entsize elf-section-entsize))
|
596
|
+
|
597
|
+
(define* (make-elf-section* #:key (index SHN_UNDEF) (name 0) (type SHT_PROGBITS)
|
598
|
+
(flags SHF_ALLOC) (addr 0) (offset 0) (size 0)
|
599
|
+
(link 0) (info 0) (addralign 8) (entsize 0))
|
600
|
+
(make-elf-section index name type flags addr offset size link info addralign
|
601
|
+
entsize))
|
602
|
+
|
603
|
+
;; typedef struct {
|
604
|
+
;; uint32_t sh_name;
|
605
|
+
;; uint32_t sh_type;
|
606
|
+
;; uint32_t sh_flags;
|
607
|
+
;; Elf32_Addr sh_addr;
|
608
|
+
;; Elf32_Off sh_offset;
|
609
|
+
;; uint32_t sh_size;
|
610
|
+
;; uint32_t sh_link;
|
611
|
+
;; uint32_t sh_info;
|
612
|
+
;; uint32_t sh_addralign;
|
613
|
+
;; uint32_t sh_entsize;
|
614
|
+
;; } Elf32_Shdr;
|
615
|
+
|
616
|
+
(define (parse-elf32-section-header index bv offset byte-order)
|
617
|
+
(if (<= (+ offset 40) (bytevector-length bv))
|
618
|
+
(make-elf-section index
|
619
|
+
(bytevector-u32-ref bv offset byte-order)
|
620
|
+
(bytevector-u32-ref bv (+ offset 4) byte-order)
|
621
|
+
(bytevector-u32-ref bv (+ offset 8) byte-order)
|
622
|
+
(bytevector-u32-ref bv (+ offset 12) byte-order)
|
623
|
+
(bytevector-u32-ref bv (+ offset 16) byte-order)
|
624
|
+
(bytevector-u32-ref bv (+ offset 20) byte-order)
|
625
|
+
(bytevector-u32-ref bv (+ offset 24) byte-order)
|
626
|
+
(bytevector-u32-ref bv (+ offset 28) byte-order)
|
627
|
+
(bytevector-u32-ref bv (+ offset 32) byte-order)
|
628
|
+
(bytevector-u32-ref bv (+ offset 36) byte-order))
|
629
|
+
(error "corrupt ELF (offset out of range)" offset)))
|
630
|
+
|
631
|
+
(define (write-elf32-section-header bv offset byte-order sec)
|
632
|
+
(bytevector-u32-set! bv offset (elf-section-name sec) byte-order)
|
633
|
+
(bytevector-u32-set! bv (+ offset 4) (elf-section-type sec) byte-order)
|
634
|
+
(bytevector-u32-set! bv (+ offset 8) (elf-section-flags sec) byte-order)
|
635
|
+
(bytevector-u32-set! bv (+ offset 12) (elf-section-addr sec) byte-order)
|
636
|
+
(bytevector-u32-set! bv (+ offset 16) (elf-section-offset sec) byte-order)
|
637
|
+
(bytevector-u32-set! bv (+ offset 20) (elf-section-size sec) byte-order)
|
638
|
+
(bytevector-u32-set! bv (+ offset 24) (elf-section-link sec) byte-order)
|
639
|
+
(bytevector-u32-set! bv (+ offset 28) (elf-section-info sec) byte-order)
|
640
|
+
(bytevector-u32-set! bv (+ offset 32) (elf-section-addralign sec) byte-order)
|
641
|
+
(bytevector-u32-set! bv (+ offset 36) (elf-section-entsize sec) byte-order))
|
642
|
+
|
643
|
+
|
644
|
+
;; typedef struct {
|
645
|
+
;; uint32_t sh_name;
|
646
|
+
;; uint32_t sh_type;
|
647
|
+
;; uint64_t sh_flags;
|
648
|
+
;; Elf64_Addr sh_addr;
|
649
|
+
;; Elf64_Off sh_offset;
|
650
|
+
;; uint64_t sh_size;
|
651
|
+
;; uint32_t sh_link;
|
652
|
+
;; uint32_t sh_info;
|
653
|
+
;; uint64_t sh_addralign;
|
654
|
+
;; uint64_t sh_entsize;
|
655
|
+
;; } Elf64_Shdr;
|
656
|
+
|
657
|
+
(define (elf-section-header-len word-size)
|
658
|
+
(case word-size
|
659
|
+
((4) 40)
|
660
|
+
((8) 64)
|
661
|
+
(else (error "bad word size" word-size))))
|
662
|
+
|
663
|
+
(define (elf-section-header-addr-offset word-size)
|
664
|
+
(case word-size
|
665
|
+
((4) 12)
|
666
|
+
((8) 16)
|
667
|
+
(else (error "bad word size" word-size))))
|
668
|
+
|
669
|
+
(define (elf-section-header-offset-offset word-size)
|
670
|
+
(case word-size
|
671
|
+
((4) 16)
|
672
|
+
((8) 24)
|
673
|
+
(else (error "bad word size" word-size))))
|
674
|
+
|
675
|
+
(define (parse-elf64-section-header index bv offset byte-order)
|
676
|
+
(if (<= (+ offset 64) (bytevector-length bv))
|
677
|
+
(make-elf-section index
|
678
|
+
(bytevector-u32-ref bv offset byte-order)
|
679
|
+
(bytevector-u32-ref bv (+ offset 4) byte-order)
|
680
|
+
(bytevector-u64-ref bv (+ offset 8) byte-order)
|
681
|
+
(bytevector-u64-ref bv (+ offset 16) byte-order)
|
682
|
+
(bytevector-u64-ref bv (+ offset 24) byte-order)
|
683
|
+
(bytevector-u64-ref bv (+ offset 32) byte-order)
|
684
|
+
(bytevector-u32-ref bv (+ offset 40) byte-order)
|
685
|
+
(bytevector-u32-ref bv (+ offset 44) byte-order)
|
686
|
+
(bytevector-u64-ref bv (+ offset 48) byte-order)
|
687
|
+
(bytevector-u64-ref bv (+ offset 56) byte-order))
|
688
|
+
(error "corrupt ELF (offset out of range)" offset)))
|
689
|
+
|
690
|
+
(define (write-elf64-section-header bv offset byte-order sec)
|
691
|
+
(bytevector-u32-set! bv offset (elf-section-name sec) byte-order)
|
692
|
+
(bytevector-u32-set! bv (+ offset 4) (elf-section-type sec) byte-order)
|
693
|
+
(bytevector-u64-set! bv (+ offset 8) (elf-section-flags sec) byte-order)
|
694
|
+
(bytevector-u64-set! bv (+ offset 16) (elf-section-addr sec) byte-order)
|
695
|
+
(bytevector-u64-set! bv (+ offset 24) (elf-section-offset sec) byte-order)
|
696
|
+
(bytevector-u64-set! bv (+ offset 32) (elf-section-size sec) byte-order)
|
697
|
+
(bytevector-u32-set! bv (+ offset 40) (elf-section-link sec) byte-order)
|
698
|
+
(bytevector-u32-set! bv (+ offset 44) (elf-section-info sec) byte-order)
|
699
|
+
(bytevector-u64-set! bv (+ offset 48) (elf-section-addralign sec) byte-order)
|
700
|
+
(bytevector-u64-set! bv (+ offset 56) (elf-section-entsize sec) byte-order))
|
701
|
+
|
702
|
+
(define (elf-section elf n)
|
703
|
+
(if (not (< -1 n (elf-shnum elf)))
|
704
|
+
(error "bad section number" n))
|
705
|
+
((case (elf-word-size elf)
|
706
|
+
((4) parse-elf32-section-header)
|
707
|
+
((8) parse-elf64-section-header)
|
708
|
+
(else (error "unhandled pointer size")))
|
709
|
+
n
|
710
|
+
(elf-bytes elf)
|
711
|
+
(+ (elf-shoff elf) (* n (elf-shentsize elf)))
|
712
|
+
(elf-byte-order elf)))
|
713
|
+
|
714
|
+
(define (write-elf-section-header bv offset byte-order word-size sec)
|
715
|
+
((case word-size
|
716
|
+
((4) write-elf32-section-header)
|
717
|
+
((8) write-elf64-section-header)
|
718
|
+
(else (error "invalid word size" word-size)))
|
719
|
+
bv offset byte-order sec))
|
720
|
+
|
721
|
+
(define (elf-sections elf)
|
722
|
+
(let lp ((n (elf-shnum elf)) (out '()))
|
723
|
+
(if (zero? n)
|
724
|
+
out
|
725
|
+
(lp (1- n) (cons (elf-section elf (1- n)) out)))))
|
726
|
+
|
727
|
+
;;
|
728
|
+
;; Section Types
|
729
|
+
;;
|
730
|
+
(define SHT_NULL 0) ; Section header table entry unused
|
731
|
+
(define SHT_PROGBITS 1) ; Program data
|
732
|
+
(define SHT_SYMTAB 2) ; Symbol table
|
733
|
+
(define SHT_STRTAB 3) ; String table
|
734
|
+
(define SHT_RELA 4) ; Relocation entries with addends
|
735
|
+
(define SHT_HASH 5) ; Symbol hash table
|
736
|
+
(define SHT_DYNAMIC 6) ; Dynamic linking information
|
737
|
+
(define SHT_NOTE 7) ; Notes
|
738
|
+
(define SHT_NOBITS 8) ; Program space with no data (bss)
|
739
|
+
(define SHT_REL 9) ; Relocation entries, no addends
|
740
|
+
(define SHT_SHLIB 10) ; Reserved
|
741
|
+
(define SHT_DYNSYM 11) ; Dynamic linker symbol table
|
742
|
+
(define SHT_INIT_ARRAY 14) ; Array of constructors
|
743
|
+
(define SHT_FINI_ARRAY 15) ; Array of destructors
|
744
|
+
(define SHT_PREINIT_ARRAY 16) ; Array of pre-constructors
|
745
|
+
(define SHT_GROUP 17) ; Section group
|
746
|
+
(define SHT_SYMTAB_SHNDX 18) ; Extended section indeces
|
747
|
+
(define SHT_NUM 19) ; Number of defined types.
|
748
|
+
(define SHT_LOOS #x60000000) ; Start OS-specific.
|
749
|
+
(define SHT_HIOS #x6fffffff) ; End OS-specific type
|
750
|
+
(define SHT_LOPROC #x70000000) ; Start of processor-specific
|
751
|
+
(define SHT_HIPROC #x7fffffff) ; End of processor-specific
|
752
|
+
(define SHT_LOUSER #x80000000) ; Start of application-specific
|
753
|
+
(define SHT_HIUSER #x8fffffff) ; End of application-specific
|
754
|
+
|
755
|
+
;;
|
756
|
+
;; Section Flags
|
757
|
+
;;
|
758
|
+
(define SHF_WRITE (ash 1 0)) ; Writable
|
759
|
+
(define SHF_ALLOC (ash 1 1)) ; Occupies memory during execution
|
760
|
+
(define SHF_EXECINSTR (ash 1 2)) ; Executable
|
761
|
+
(define SHF_MERGE (ash 1 4)) ; Might be merged
|
762
|
+
(define SHF_STRINGS (ash 1 5)) ; Contains nul-terminated strings
|
763
|
+
(define SHF_INFO_LINK (ash 1 6)) ; `sh_info' contains SHT index
|
764
|
+
(define SHF_LINK_ORDER (ash 1 7)) ; Preserve order after combining
|
765
|
+
(define SHF_OS_NONCONFORMING (ash 1 8)) ; Non-standard OS specific handling required
|
766
|
+
(define SHF_GROUP (ash 1 9)) ; Section is member of a group.
|
767
|
+
(define SHF_TLS (ash 1 10)) ; Section hold thread-local data.
|
768
|
+
|
769
|
+
;;
|
770
|
+
;; Dynamic entry types. The DT_GUILE types are non-standard.
|
771
|
+
;;
|
772
|
+
(define DT_NULL 0) ; Marks end of dynamic section
|
773
|
+
(define DT_NEEDED 1) ; Name of needed library
|
774
|
+
(define DT_PLTRELSZ 2) ; Size in bytes of PLT relocs
|
775
|
+
(define DT_PLTGOT 3) ; Processor defined value
|
776
|
+
(define DT_HASH 4) ; Address of symbol hash table
|
777
|
+
(define DT_STRTAB 5) ; Address of string table
|
778
|
+
(define DT_SYMTAB 6) ; Address of symbol table
|
779
|
+
(define DT_RELA 7) ; Address of Rela relocs
|
780
|
+
(define DT_RELASZ 8) ; Total size of Rela relocs
|
781
|
+
(define DT_RELAENT 9) ; Size of one Rela reloc
|
782
|
+
(define DT_STRSZ 10) ; Size of string table
|
783
|
+
(define DT_SYMENT 11) ; Size of one symbol table entry
|
784
|
+
(define DT_INIT 12) ; Address of init function
|
785
|
+
(define DT_FINI 13) ; Address of termination function
|
786
|
+
(define DT_SONAME 14) ; Name of shared object
|
787
|
+
(define DT_RPATH 15) ; Library search path (deprecated)
|
788
|
+
(define DT_SYMBOLIC 16) ; Start symbol search here
|
789
|
+
(define DT_REL 17) ; Address of Rel relocs
|
790
|
+
(define DT_RELSZ 18) ; Total size of Rel relocs
|
791
|
+
(define DT_RELENT 19) ; Size of one Rel reloc
|
792
|
+
(define DT_PLTREL 20) ; Type of reloc in PLT
|
793
|
+
(define DT_DEBUG 21) ; For debugging ; unspecified
|
794
|
+
(define DT_TEXTREL 22) ; Reloc might modify .text
|
795
|
+
(define DT_JMPREL 23) ; Address of PLT relocs
|
796
|
+
(define DT_BIND_NOW 24) ; Process relocations of object
|
797
|
+
(define DT_INIT_ARRAY 25) ; Array with addresses of init fct
|
798
|
+
(define DT_FINI_ARRAY 26) ; Array with addresses of fini fct
|
799
|
+
(define DT_INIT_ARRAYSZ 27) ; Size in bytes of DT_INIT_ARRAY
|
800
|
+
(define DT_FINI_ARRAYSZ 28) ; Size in bytes of DT_FINI_ARRAY
|
801
|
+
(define DT_RUNPATH 29) ; Library search path
|
802
|
+
(define DT_FLAGS 30) ; Flags for the object being loaded
|
803
|
+
(define DT_ENCODING 32) ; Start of encoded range
|
804
|
+
(define DT_PREINIT_ARRAY 32) ; Array with addresses of preinit fc
|
805
|
+
(define DT_PREINIT_ARRAYSZ 33) ; size in bytes of DT_PREINIT_ARRAY
|
806
|
+
(define DT_NUM 34) ; Number used
|
807
|
+
(define DT_LOGUILE #x37146000) ; Start of Guile-specific
|
808
|
+
(define DT_GUILE_GC_ROOT #x37146000) ; Offset of GC roots
|
809
|
+
(define DT_GUILE_GC_ROOT_SZ #x37146001) ; Size in machine words of GC roots
|
810
|
+
(define DT_GUILE_ENTRY #x37146002) ; Address of entry thunk
|
811
|
+
(define DT_GUILE_VM_VERSION #x37146003) ; Bytecode version
|
812
|
+
(define DT_GUILE_FRAME_MAPS #x37146004) ; Offset of .guile.frame-maps
|
813
|
+
(define DT_HIGUILE #x37146fff) ; End of Guile-specific
|
814
|
+
(define DT_LOOS #x6000000d) ; Start of OS-specific
|
815
|
+
(define DT_HIOS #x6ffff000) ; End of OS-specific
|
816
|
+
(define DT_LOPROC #x70000000) ; Start of processor-specific
|
817
|
+
(define DT_HIPROC #x7fffffff) ; End of processor-specific
|
818
|
+
|
819
|
+
|
820
|
+
(define (string-table-ref bv offset)
|
821
|
+
(let lp ((end offset))
|
822
|
+
(if (zero? (bytevector-u8-ref bv end))
|
823
|
+
(let ((out (make-bytevector (- end offset))))
|
824
|
+
(bytevector-copy! bv offset out 0 (- end offset))
|
825
|
+
(utf8->string out))
|
826
|
+
(lp (1+ end)))))
|
827
|
+
|
828
|
+
(define (elf-section-by-name elf name)
|
829
|
+
(let ((off (elf-section-offset (elf-section elf (elf-shstrndx elf)))))
|
830
|
+
(let lp ((n (elf-shnum elf)))
|
831
|
+
(and (> n 0)
|
832
|
+
(let ((section (elf-section elf (1- n))))
|
833
|
+
(if (equal? (string-table-ref (elf-bytes elf)
|
834
|
+
(+ off (elf-section-name section)))
|
835
|
+
name)
|
836
|
+
section
|
837
|
+
(lp (1- n))))))))
|
838
|
+
|
839
|
+
(define (elf-sections-by-name elf)
|
840
|
+
(let* ((sections (elf-sections elf))
|
841
|
+
(off (elf-section-offset (list-ref sections (elf-shstrndx elf)))))
|
842
|
+
(map (lambda (section)
|
843
|
+
(cons (string-table-ref (elf-bytes elf)
|
844
|
+
(+ off (elf-section-name section)))
|
845
|
+
section))
|
846
|
+
sections)))
|
847
|
+
|
848
|
+
(define-record-type <elf-symbol>
|
849
|
+
(make-elf-symbol name value size info other shndx)
|
850
|
+
elf-symbol?
|
851
|
+
(name elf-symbol-name)
|
852
|
+
(value elf-symbol-value)
|
853
|
+
(size elf-symbol-size)
|
854
|
+
(info elf-symbol-info)
|
855
|
+
(other elf-symbol-other)
|
856
|
+
(shndx elf-symbol-shndx))
|
857
|
+
|
858
|
+
(define* (make-elf-symbol* #:key (name 0) (value 0) (size 0)
|
859
|
+
(binding STB_LOCAL) (type STT_NOTYPE)
|
860
|
+
(info (logior (ash binding 4) type))
|
861
|
+
(visibility STV_DEFAULT) (other visibility)
|
862
|
+
(shndx SHN_UNDEF))
|
863
|
+
(make-elf-symbol name value size info other shndx))
|
864
|
+
|
865
|
+
;; typedef struct {
|
866
|
+
;; uint32_t st_name;
|
867
|
+
;; Elf32_Addr st_value;
|
868
|
+
;; uint32_t st_size;
|
869
|
+
;; unsigned char st_info;
|
870
|
+
;; unsigned char st_other;
|
871
|
+
;; uint16_t st_shndx;
|
872
|
+
;; } Elf32_Sym;
|
873
|
+
|
874
|
+
(define (elf-symbol-len word-size)
|
875
|
+
(case word-size
|
876
|
+
((4) 16)
|
877
|
+
((8) 24)
|
878
|
+
(else (error "bad word size" word-size))))
|
879
|
+
|
880
|
+
(define (elf-symbol-value-offset word-size)
|
881
|
+
(case word-size
|
882
|
+
((4) 4)
|
883
|
+
((8) 8)
|
884
|
+
(else (error "bad word size" word-size))))
|
885
|
+
|
886
|
+
(define (parse-elf32-symbol bv offset stroff byte-order)
|
887
|
+
(if (<= (+ offset 16) (bytevector-length bv))
|
888
|
+
(make-elf-symbol (let ((name (bytevector-u32-ref bv offset byte-order)))
|
889
|
+
(if stroff
|
890
|
+
(string-table-ref bv (+ stroff name))
|
891
|
+
name))
|
892
|
+
(bytevector-u32-ref bv (+ offset 4) byte-order)
|
893
|
+
(bytevector-u32-ref bv (+ offset 8) byte-order)
|
894
|
+
(bytevector-u8-ref bv (+ offset 12))
|
895
|
+
(bytevector-u8-ref bv (+ offset 13))
|
896
|
+
(bytevector-u16-ref bv (+ offset 14) byte-order))
|
897
|
+
(error "corrupt ELF (offset out of range)" offset)))
|
898
|
+
|
899
|
+
(define (write-elf32-symbol bv offset byte-order sym)
|
900
|
+
(bytevector-u32-set! bv offset (elf-symbol-name sym) byte-order)
|
901
|
+
(bytevector-u32-set! bv (+ offset 4) (elf-symbol-value sym) byte-order)
|
902
|
+
(bytevector-u32-set! bv (+ offset 8) (elf-symbol-size sym) byte-order)
|
903
|
+
(bytevector-u8-set! bv (+ offset 12) (elf-symbol-info sym))
|
904
|
+
(bytevector-u8-set! bv (+ offset 13) (elf-symbol-other sym))
|
905
|
+
(bytevector-u16-set! bv (+ offset 14) (elf-symbol-shndx sym) byte-order))
|
906
|
+
|
907
|
+
;; typedef struct {
|
908
|
+
;; uint32_t st_name;
|
909
|
+
;; unsigned char st_info;
|
910
|
+
;; unsigned char st_other;
|
911
|
+
;; uint16_t st_shndx;
|
912
|
+
;; Elf64_Addr st_value;
|
913
|
+
;; uint64_t st_size;
|
914
|
+
;; } Elf64_Sym;
|
915
|
+
|
916
|
+
(define (parse-elf64-symbol bv offset stroff byte-order)
|
917
|
+
(if (<= (+ offset 24) (bytevector-length bv))
|
918
|
+
(make-elf-symbol (let ((name (bytevector-u32-ref bv offset byte-order)))
|
919
|
+
(if stroff
|
920
|
+
(string-table-ref bv (+ stroff name))
|
921
|
+
name))
|
922
|
+
(bytevector-u64-ref bv (+ offset 8) byte-order)
|
923
|
+
(bytevector-u64-ref bv (+ offset 16) byte-order)
|
924
|
+
(bytevector-u8-ref bv (+ offset 4))
|
925
|
+
(bytevector-u8-ref bv (+ offset 5))
|
926
|
+
(bytevector-u16-ref bv (+ offset 6) byte-order))
|
927
|
+
(error "corrupt ELF (offset out of range)" offset)))
|
928
|
+
|
929
|
+
(define (write-elf64-symbol bv offset byte-order sym)
|
930
|
+
(bytevector-u32-set! bv offset (elf-symbol-name sym) byte-order)
|
931
|
+
(bytevector-u8-set! bv (+ offset 4) (elf-symbol-info sym))
|
932
|
+
(bytevector-u8-set! bv (+ offset 5) (elf-symbol-other sym))
|
933
|
+
(bytevector-u16-set! bv (+ offset 6) (elf-symbol-shndx sym) byte-order)
|
934
|
+
(bytevector-u64-set! bv (+ offset 8) (elf-symbol-value sym) byte-order)
|
935
|
+
(bytevector-u64-set! bv (+ offset 16) (elf-symbol-size sym) byte-order))
|
936
|
+
|
937
|
+
(define (write-elf-symbol bv offset byte-order word-size sym)
|
938
|
+
((case word-size
|
939
|
+
((4) write-elf32-symbol)
|
940
|
+
((8) write-elf64-symbol)
|
941
|
+
(else (error "invalid word size" word-size)))
|
942
|
+
bv offset byte-order sym))
|
943
|
+
|
944
|
+
(define (elf-symbol-table-len section)
|
945
|
+
(let ((len (elf-section-size section))
|
946
|
+
(entsize (elf-section-entsize section)))
|
947
|
+
(unless (and (not (zero? entsize)) (zero? (modulo len entsize)))
|
948
|
+
(error "bad symbol table" section))
|
949
|
+
(/ len entsize)))
|
950
|
+
|
951
|
+
(define* (elf-symbol-table-ref elf section n #:optional strtab)
|
952
|
+
(let ((bv (elf-bytes elf))
|
953
|
+
(byte-order (elf-byte-order elf))
|
954
|
+
(stroff (and strtab (elf-section-offset strtab)))
|
955
|
+
(base (elf-section-offset section))
|
956
|
+
(len (elf-section-size section))
|
957
|
+
(entsize (elf-section-entsize section)))
|
958
|
+
(unless (<= (* (1+ n) entsize) len)
|
959
|
+
(error "out of range symbol table access" section n))
|
960
|
+
(case (elf-word-size elf)
|
961
|
+
((4)
|
962
|
+
(unless (<= 16 entsize)
|
963
|
+
(error "bad entsize for symbol table" section))
|
964
|
+
(parse-elf32-symbol bv (+ base (* n entsize)) stroff byte-order))
|
965
|
+
((8)
|
966
|
+
(unless (<= 24 entsize)
|
967
|
+
(error "bad entsize for symbol table" section))
|
968
|
+
(parse-elf64-symbol bv (+ base (* n entsize)) stroff byte-order))
|
969
|
+
(else (error "bad word size" elf)))))
|
970
|
+
|
971
|
+
;; Legal values for ST_BIND subfield of st_info (symbol binding).
|
972
|
+
|
973
|
+
(define STB_LOCAL 0) ; Local symbol
|
974
|
+
(define STB_GLOBAL 1) ; Global symbol
|
975
|
+
(define STB_WEAK 2) ; Weak symbol
|
976
|
+
(define STB_NUM 3) ; Number of defined types.
|
977
|
+
(define STB_LOOS 10) ; Start of OS-specific
|
978
|
+
(define STB_GNU_UNIQUE 10) ; Unique symbol.
|
979
|
+
(define STB_HIOS 12) ; End of OS-specific
|
980
|
+
(define STB_LOPROC 13) ; Start of processor-specific
|
981
|
+
(define STB_HIPROC 15) ; End of processor-specific
|
982
|
+
|
983
|
+
;; Legal values for ST_TYPE subfield of st_info (symbol type).
|
984
|
+
|
985
|
+
(define STT_NOTYPE 0) ; Symbol type is unspecified
|
986
|
+
(define STT_OBJECT 1) ; Symbol is a data object
|
987
|
+
(define STT_FUNC 2) ; Symbol is a code object
|
988
|
+
(define STT_SECTION 3) ; Symbol associated with a section
|
989
|
+
(define STT_FILE 4) ; Symbol's name is file name
|
990
|
+
(define STT_COMMON 5) ; Symbol is a common data object
|
991
|
+
(define STT_TLS 6) ; Symbol is thread-local data objec
|
992
|
+
(define STT_NUM 7) ; Number of defined types.
|
993
|
+
(define STT_LOOS 10) ; Start of OS-specific
|
994
|
+
(define STT_GNU_IFUNC 10) ; Symbol is indirect code object
|
995
|
+
(define STT_HIOS 12) ; End of OS-specific
|
996
|
+
(define STT_LOPROC 13) ; Start of processor-specific
|
997
|
+
(define STT_HIPROC 15) ; End of processor-specific
|
998
|
+
|
999
|
+
;; Symbol visibility specification encoded in the st_other field.
|
1000
|
+
|
1001
|
+
(define STV_DEFAULT 0) ; Default symbol visibility rules
|
1002
|
+
(define STV_INTERNAL 1) ; Processor specific hidden class
|
1003
|
+
(define STV_HIDDEN 2) ; Sym unavailable in other modules
|
1004
|
+
(define STV_PROTECTED 3) ; Not preemptible, not exported
|
1005
|
+
|
1006
|
+
(define (elf-symbol-binding sym)
|
1007
|
+
(ash (elf-symbol-info sym) -4))
|
1008
|
+
|
1009
|
+
(define (elf-symbol-type sym)
|
1010
|
+
(logand (elf-symbol-info sym) #xf))
|
1011
|
+
|
1012
|
+
(define (elf-symbol-visibility sym)
|
1013
|
+
(logand (elf-symbol-other sym) #x3))
|
1014
|
+
|
1015
|
+
(define NT_GNU_ABI_TAG 1)
|
1016
|
+
(define NT_GNU_HWCAP 2)
|
1017
|
+
(define NT_GNU_BUILD_ID 3)
|
1018
|
+
(define NT_GNU_GOLD_VERSION 4)
|
1019
|
+
|
1020
|
+
(define-record-type <elf-note>
|
1021
|
+
(make-elf-note name desc type)
|
1022
|
+
elf-note?
|
1023
|
+
(name elf-note-name)
|
1024
|
+
(desc elf-note-desc)
|
1025
|
+
(type elf-note-type))
|
1026
|
+
|
1027
|
+
(define (parse-elf-note elf section)
|
1028
|
+
(let ((bv (elf-bytes elf))
|
1029
|
+
(byte-order (elf-byte-order elf))
|
1030
|
+
(offset (elf-section-offset section)))
|
1031
|
+
(unless (<= (+ offset 12) (bytevector-length bv))
|
1032
|
+
(error "corrupt ELF (offset out of range)" offset))
|
1033
|
+
(let ((namesz (bytevector-u32-ref bv offset byte-order))
|
1034
|
+
(descsz (bytevector-u32-ref bv (+ offset 4) byte-order))
|
1035
|
+
(type (bytevector-u32-ref bv (+ offset 8) byte-order)))
|
1036
|
+
(unless (<= (+ offset 12 namesz descsz) (bytevector-length bv))
|
1037
|
+
(error "corrupt ELF (offset out of range)" offset))
|
1038
|
+
(let ((name (make-bytevector (1- namesz)))
|
1039
|
+
(desc (make-bytevector descsz)))
|
1040
|
+
(bytevector-copy! bv (+ offset 12) name 0 (1- namesz))
|
1041
|
+
(bytevector-copy! bv (+ offset 12 namesz) desc 0 descsz)
|
1042
|
+
(make-elf-note (utf8->string name) desc type)))))
|