aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-01-15 12:32:32 +0000
committerRon Yorston <rmy@pobox.com>2024-01-15 12:32:32 +0000
commit7b345e7e35a613fe2a947017c01341a25ef99752 (patch)
treedfcd993a9f63c4b04235cb6128ef48b6306d6865
parent03d68fb5cf6e47af479aa8a99a4b6aaba7da455a (diff)
downloadbusybox-w32-7b345e7e35a613fe2a947017c01341a25ef99752.tar.gz
busybox-w32-7b345e7e35a613fe2a947017c01341a25ef99752.tar.bz2
busybox-w32-7b345e7e35a613fe2a947017c01341a25ef99752.zip
ash: code shrink forkshell debug
Remove a check that there are no relocations for addresses in the funcstring block. At one point during development the relocation block had entries for that area, but not any more. This only affects non-default builds with forkshell debug enabled.
-rw-r--r--shell/ash.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 90f4c9773..8a8f84a8f 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -17277,12 +17277,6 @@ forkshell_prepare(struct forkshell *fs)
17277 forkshell_print(fp, new, annot); 17277 forkshell_print(fp, new, annot);
17278 17278
17279 for (i = 0; i < relocatesize; ++i) { 17279 for (i = 0; i < relocatesize; ++i) {
17280 /* check relocations are only present for structure and funcblock */
17281 if (i >= sizeof(*new)+new->funcblocksize && annot[i] != NULL) {
17282 fprintf(fp, "\nnon-NULL annotation at offset %d (> %d) %s\n",
17283 i, (int)sizeof(*new)+new->funcblocksize, annot[i]);
17284 break;
17285 }
17286 if (relocate[i] == FREE) { 17280 if (relocate[i] == FREE) {
17287 free((void *)annot[i]); 17281 free((void *)annot[i]);
17288 } 17282 }