workaround: MIPS.r3000 early uClibc forgot memset(,0,) of local array

ldso/ldso/ldso.c: _dl_get_ready_to_run()
    _dl_memset(app_tpnt, 0, sizeof(*app_tpnt));
	modified:   stub/src/mipsel.r3000-linux.elf-fold.S

	modified:   stub/mips.r3000-linux.elf-fold.h
	modified:   stub/mipsel.r3000-linux.elf-fold.h
This commit is contained in:
John Reiser
2020-05-26 14:49:25 -07:00
parent cd58a66fda
commit 16b18e9396
3 changed files with 14 additions and 7 deletions
+3 -3
View File
@@ -32,8 +32,8 @@
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_SIZE 2892
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_ADLER32 0xa2e27f2f
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_CRC32 0x719a099a
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_ADLER32 0x40e97fad
#define STUB_MIPS_R3000_LINUX_ELF_FOLD_CRC32 0x749d56f7
unsigned char stub_mips_r3000_linux_elf_fold[2892] = {
/* 0x0000 */ 127, 69, 76, 70, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -66,7 +66,7 @@ unsigned char stub_mips_r3000_linux_elf_fold[2892] = {
/* 0x01b0 */ 175,169, 0, 20, 36, 7, 0, 2, 36, 6, 0, 1, 0, 28, 40, 34,
/* 0x01c0 */ 0, 0, 32, 33, 36, 2, 15,250, 0, 0, 0, 12,143,164, 0, 16,
/* 0x01d0 */ 36, 2, 15,166, 0, 0, 0, 12,143,165, 0, 28,143,164, 0, 24,
/* 0x01e0 */ 39,189, 0, 32, 3,160, 8, 33, 39,189,254, 0, 39,189, 0, 4,
/* 0x01e0 */ 39,189, 0, 32, 3,160, 8, 33, 39,189,252,128, 39,189, 0, 4,
/* 0x01f0 */ 23,161,255,254,175,160,255,252,142,129,255,252, 0, 0, 0, 0,
/* 0x0200 */ 16, 32, 0, 3, 0, 0, 0, 0, 0, 32, 0, 8, 36, 2, 15,251,
/* 0x0210 */ 3,192, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,