[Scummvm-devel] ScummVM-PS2 Mysteries #1: dynamic plugins dependency on C symbol

sunmax at libero.it sunmax at libero.it
Sat Jan 25 18:57:05 CET 2014


Hi there Team,

wish someone can spread some light on this:

Commit 86240bb (86240bb0dc0103e5099d23770cc04cfd907d2c61) broke dynamic plugins on PS2 in the most sutble way, by removing the last "C" symbol (snprintf) in dialog.cpp.

When ee-gcc linker assemble the plugin ELF for PS2, without any C symbol in the file (and likley other files linked together), the result is a "broken" plugin, which will crash on start. The resulting binary is completely different (200k smaller!), so it seems that if there is no "C" left, some necessary bits & pieces (likely from libc) are left out, and dynamic plugins no longer load properly.

I'm not really a wiz with the plugins loaders script, I could not spot anything obviously wrong.

So far we "worked it around", by re-introducing a bogus snprintf for PS2.

If someone has any hint, I'm glad to investigate this further.

Thanks,
-max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20140125/00e5229d/attachment.html>


More information about the Scummvm-devel mailing list