mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Declare binary data symbols as arrays to correctly represent linker-provided symbols of unknown size. This resolves compiler warnings about reading 22-24 bytes from a 1-byte region when including stage* loaders. DEBUG: In function ‘memcpy’, DEBUG: inlined from ‘boot_init_eckd_ldl_stage0’ at boot.c:181:2, DEBUG: inlined from ‘install_svdump_eckd_ldl’ at install.c:891:2, DEBUG: inlined from ‘install_dump’ at install.c:1221:9, DEBUG: inlined from ‘main’ at zipl.c:185:9: DEBUG: /usr/include/bits/string_fortified.h:29:10: warning: ‘__builtin_memcpy’ reading 22 bytes from a region of size 1 [-Wstringop-overread] DEBUG: 29 | return __builtin___memcpy_chk (__dest, __src, __len, DEBUG: | ^ Signed-off-by: Marc Hartmayer <marc@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>