libio: Fix oversized __io_vtables
authorAdam Jackson <ajax@redhat.com>
Fri, 8 Sep 2023 19:55:19 +0000 (15:55 -0400)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 8 Sep 2023 21:00:04 +0000 (23:00 +0200)
commit8cb69e054386f980f9ff4d93b157861d72b2019e
treec563b8054c631cf373e762e4b937035e9aa61e73
parentdeeaa5e90fcb45c7e58e4fd84d83bda46834680c
libio: Fix oversized __io_vtables

IO_VTABLES_LEN is the size of the struct array in bytes, not the number
of __IO_jump_t's in the array. Drops just under 384kb from .rodata on
LP64 machines.

Fixes: 3020f72618e ("libio: Remove the usage of __libc_IO_vtables")
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Tested-by: Florian Weimer <fweimer@redhat.com>
libio/vtables.c