X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=loader%2Fpatches.c;fp=loader%2Fpatches.c;h=b7ea613ff641637e15c1f18ebfc62991095a8c8f;hb=c3831532675b527bd34ee92377b1b6d323345cb1;hp=ada00436de973455d607f70ad41a748bdc0ea90e;hpb=b4f4cb40a6f3f4ecc05c7b6c8f2e852282234519;p=ginge.git diff --git a/loader/patches.c b/loader/patches.c index ada0043..b7ea613 100644 --- a/loader/patches.c +++ b/loader/patches.c @@ -130,6 +130,13 @@ static const unsigned int sig_mask_chdir[] = { 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000 }; +static const unsigned int sig_readlink[] = { + 0xef900055, // svc 0x900055 + 0xe3700a01, // cmn r0, #0x1000 + 0x312fff1e, // bxcc lr +}; +#define sig_mask_readlink sig_mask_all + /* special */ static const unsigned int sig_cache1[] = { 0xee073f5e, // mcr 15, 0, r3, cr7, cr14, 2 @@ -190,6 +197,7 @@ static const struct { PATCH (sigaction), // PATCH_(execve, execve2, 0), // hangs PATCH (chdir), + PATCH (readlink), PATCH_(cache1, NULL, 2), PATCH_(cache2, NULL, 2), };