In function 'store_ptr', inlined from '_rtld_relocate_nonplt_self' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:208:4: /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:120:8: error: 'memcpy' forming offset [9, 12] is out of the bounds [0, 8] of object 'val' with type 'Elf64_Sxword' {aka 'long int'} [-Werror=array-bounds] (void)memcpy(where, (const uint8_t *)((&val)+1) - len, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c: In function '_rtld_relocate_nonplt_self': /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:134:1: note: 'val' declared here _rtld_relocate_nonplt_self(Elf_Dyn *dynp, Elf_Addr relocbase) ^~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'store_ptr', inlined from '_rtld_relocate_nonplt_objects' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:414:4: /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:120:8: error: 'memcpy' forming offset [9, 16] is out of the bounds [0, 8] of object 'val' with type 'Elf64_Sxword' {aka 'long int'} [-Werror=array-bounds] (void)memcpy(where, (const uint8_t *)((&val)+1) - len, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c: In function '_rtld_relocate_nonplt_objects': /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:227:1: note: 'val' declared here _rtld_relocate_nonplt_objects(Obj_Entry *obj) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'store_ptr', inlined from '_rtld_relocate_nonplt_objects' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:434:4: /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:120:8: error: 'memcpy' forming offset [9, 16] is out of the bounds [0, 8] of object 'val' with type 'Elf64_Sxword' {aka 'long int'} [-Werror=array-bounds] (void)memcpy(where, (const uint8_t *)((&val)+1) - len, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c: In function '_rtld_relocate_nonplt_objects': /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:227:1: note: 'val' declared here _rtld_relocate_nonplt_objects(Obj_Entry *obj) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'store_ptr', inlined from '_rtld_relocate_nonplt_objects' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:456:4: /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:120:8: error: 'memcpy' forming offset [9, 16] is out of the bounds [0, 8] of object 'val' with type 'Elf64_Sxword' {aka 'long int'} [-Werror=array-bounds] (void)memcpy(where, (const uint8_t *)((&val)+1) - len, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c: In function '_rtld_relocate_nonplt_objects': /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:227:1: note: 'val' declared here _rtld_relocate_nonplt_objects(Obj_Entry *obj) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'load_ptr.part.0', inlined from 'load_ptr' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:81:1, inlined from '_rtld_relocate_nonplt_objects' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:409:19: /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:98:8: error: 'memcpy' forming offset [9, 16] is out of the bounds [0, 8] of object 'val' with type 'Elf64_Sxword' {aka 'long int'} [-Werror=array-bounds] (void)memcpy((uint8_t *)((&val)+1) - len, where, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c: In function '_rtld_relocate_nonplt_objects': /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:83:13: note: 'val' declared here Elf_Sxword val; ^~~ In function 'load_ptr.part.0', inlined from 'load_ptr' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:81:1, inlined from '_rtld_relocate_nonplt_objects' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:427:19: /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:98:8: error: 'memcpy' forming offset [9, 16] is out of the bounds [0, 8] of object 'val' with type 'Elf64_Sxword' {aka 'long int'} [-Werror=array-bounds] (void)memcpy((uint8_t *)((&val)+1) - len, where, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c: In function '_rtld_relocate_nonplt_objects': /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:83:13: note: 'val' declared here Elf_Sxword val; ^~~ In function 'load_ptr.part.0', inlined from 'load_ptr' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:81:1, inlined from '_rtld_relocate_nonplt_objects' at /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:448:19: /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:98:8: error: 'memcpy' forming offset [9, 16] is out of the bounds [0, 8] of object 'val' with type 'Elf64_Sxword' {aka 'long int'} [-Werror=array-bounds] (void)memcpy((uint8_t *)((&val)+1) - len, where, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c: In function '_rtld_relocate_nonplt_objects': /usr/src/libexec/ld.elf_so/arch/mips/mips_reloc.c:83:13: note: 'val' declared here Elf_Sxword val; ^~~ cc1: all warnings being treated as errors