• Butterfly
    Butterfly
    munk
    Posts: 94 from 2006/3/27
    Quote:

    Andreas_Wolf wrote:
    >>> I remember there were mixed 68k/PPC elfs even

    >> No, there were not. [...]
    >> https://en.wikipedia.org/wiki/Amiga_Hunk#Extended_Hunk_format

    > This is blatantly wrong! Check mpega_libmad for powerUP which is a
    > shared library with the PPC part being an ELF file included _in_ the
    > HUNK structure. This required an additional program (eg. Data2Object).
    > This technique can be used for "normal" programs as well.
    > Sometimes information on wikipedia is indeed wrong.

    Thanks for correction. I should have known better than to think that claims on Wikipedia going unchallenged for 7 years means they're probably true ;-)

    I did not check when this misinformation was entered in wikipedia, but apparently the impossible was done years before.

    Furthermore, there seems to be a very well hidden "secret": The last SAS/C patchset for PPC available on AmiNet added support for mixing m68k and PPC code in one executable for powerUP. This is a custom extension of the SAS/C compiler and had to be activated when compiling with scppc with the HUNKOBJ keyword (without this argument scppc produces normal ELF objects). There is little documentation for this feature thus using it is challenging, especially for a shared library, but nevertheless it can be done.

    I never checked the structure of the HUNKOBJ objects. It is probably possible to add some basic support for these objects to the amigaos binutils port.
  • »16.07.18 - 18:12
    Profile