1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00
guile/module
Ludovic Courtès 3cd64feb2e linker: Do not store entire ELF in memory when writing to a file.
This reduces the amount of memory that needs to be allocated while
writing the ELF file to disk.

Note: We're abusing #:page-aligned? in 'link-elf' to choose whether to
return a bytevector or a procedure.

* module/system/vm/linker.scm (process-reloc): Subtract SECTION-OFFSET
when writing to BV.
(write-linker-object): Pass BV directly to the linker object writer.
(link-elf): When PAGE-ALIGNED? is false, call 'bytevector-slice' from
here.  When it is true, return a procedure that takes a port and writes
to it, without having to allocate a bytevector for the whole ELF
container.
* module/language/bytecode/spec.scm (bytecode->value): Handle X being a
procedure instead of a bytevector.
(bytecode) <#:printer>: Likewise.
* test-suite/tests/linker.test (link-elf-with-one-main-section): Pass
 #:page-aligned? #f.
2023-01-17 17:49:05 +01:00
..
ice-9 Bump user-visible copyright years to 2023. 2023-01-13 16:15:07 +01:00
language linker: Do not store entire ELF in memory when writing to a file. 2023-01-17 17:49:05 +01:00
oop goops: Preserve all slot options in redefinable classes. 2021-03-19 21:45:53 +01:00
rnrs Add 'bytevector-slice'. 2023-01-14 16:14:17 +01:00
scheme Add function vector-copy! to core 2021-08-06 17:13:21 +02:00
scripts Bump user-visible copyright years to 2023. 2023-01-13 16:15:07 +01:00
srfi srfi-35: Fix expansion of 'condition' for compound conditions. 2022-10-01 18:04:16 +02:00
sxml sxml: Make parser thread-safe. 2021-10-22 13:52:40 +02:00
system linker: Do not store entire ELF in memory when writing to a file. 2023-01-17 17:49:05 +01:00
texinfo texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00
web web: 'tls-wrap' retries handshake upon non-fatal errors. 2022-08-04 15:59:23 +02:00
Makefile.am Rework bootstrap to be reproducible 2022-02-01 14:50:40 +01:00
rnrs.scm Define top-level bindings for aux syntax: else, =>, _, ... 2019-09-12 21:50:51 +02:00
statprof.scm Statprof reports primitive names 2020-06-04 11:46:34 +02:00
texinfo.scm texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00