psp-fixup-imports: make "could not fixup imports" non-fatal

i've hit this error when running psp-fixup-imports on one of the examples
in psgpl tests directory, in particular eglpbuffers.elf. i have been
unable to make the error go away by re-arranging libraries in the
command line passed to collect2/psp-ld, however it turned out that simply
disabling the error produced a working binary.

therefore, just make it print a fat warning and continue anyway.
This commit is contained in:
rofl0r
2022-03-23 18:30:03 +00:00
parent 4ff1371352
commit 6f77784f04

View File

@@ -721,9 +721,9 @@ int fixup_imports(void)
{ {
if((pLastImport) && (pImport != pLastImport)) if((pLastImport) && (pImport != pLastImport))
{ {
fprintf(stderr, "Error, could not fixup imports, stubs out of order.\n"); fprintf(stderr, "Warning: could not fixup imports, stubs out of order.\n");
fprintf(stderr, "Ensure the SDK libraries are linked in last to correct this error\n"); fprintf(stderr, "Ensure the SDK libraries are linked in last to correct this.\n");
return 0; fprintf(stderr, "Continuing, your binary may or not work.\n");
} }
} }