aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-01-18 10:30:42 +0000
committerRon Yorston <rmy@pobox.com>2020-01-18 11:18:57 +0000
commitdd15e2a2d6fcd93486f01f8ad8f8c2b7f6a7a317 (patch)
tree0a0dbb1e8613381236b528027b14078677ffb8b7 /win32
parentfbdd9862764c4693d8d1c1825adbadc0abb3d5ce (diff)
downloadbusybox-w32-dd15e2a2d6fcd93486f01f8ad8f8c2b7f6a7a317.tar.gz
busybox-w32-dd15e2a2d6fcd93486f01f8ad8f8c2b7f6a7a317.tar.bz2
busybox-w32-dd15e2a2d6fcd93486f01f8ad8f8c2b7f6a7a317.zip
ash: reduce size of forkshell relocation map
The functions to calculate the size of the forkshell data block returned the total size of funcblock and funcstring. The relocation map only needs to cover the size of the forkshell structure plus funcblock, not funcstring. Revise the *_size() functions to distinguish between funcblock and funcstring. Avoid complicating the calculation of node sizes (calcsize() and related functions). This slightly overestimates the size of funcblock by including strings stored in node structures. This change increases the binary by 96 bytes but can save several thousand bytes at runtime.
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions