flatmush / dingoo-sdk

Automatically exported from code.google.com/p/dingoo-sdk
2 stars 3 forks source link

fread/fwrite linking to broken OS versions #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Need to remove fread/fwrite/etc. from the import tables in elf2app and
rename our own versions so that other libs and things link correctly to our
correct versions of fread/fwrite.

Original issue reported on code.google.com by Flatmush@googlemail.com on 12 Apr 2010 at 3:51

GoogleCodeExporter commented 9 years ago
I just tried to do this (removed them in import and changed stdio) but I'm 
getting a 
multiple definition problem between dingoo.o and libc.o.
So either if you know what I might've done wrong you can comment, or I'll just 
wait 
till you fix it.

Original comment by hart...@gmail.com on 12 Apr 2010 at 6:12

GoogleCodeExporter commented 9 years ago
I realised after I said about it that we need to change dingoo.o, which is a 
pain
since I'm not certain how the original dingoo.o was created by zaxxon, but I 
have an
idea so I'll try to add building dingoo.o to the install process.

Original comment by Flatmush@googlemail.com on 12 Apr 2010 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by Flatmush@googlemail.com on 12 Apr 2010 at 9:38

GoogleCodeExporter commented 9 years ago
Fixed this by modifying dynamic link tables, kinda a hack but it works fine 
with no
known bad side-effects and is far easier than modifying dingoo.o which we don't 
know
how to do at the minute. This approach also means it's still possible to access 
the
old broken functions at runtime if we wanted to.

Original comment by Flatmush@googlemail.com on 13 Apr 2010 at 7:04