diff options
author | Ron Yorston <rmy@pobox.com> | 2020-01-18 10:30:42 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-01-18 11:18:57 +0000 |
commit | dd15e2a2d6fcd93486f01f8ad8f8c2b7f6a7a317 (patch) | |
tree | 0a0dbb1e8613381236b528027b14078677ffb8b7 /win32 | |
parent | fbdd9862764c4693d8d1c1825adbadc0abb3d5ce (diff) | |
download | busybox-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