[CM] Identify binary plugins

Woody Douglass wdouglass at carnegierobotics.com
Thu Mar 24 05:05:35 PDT 2022

one more pass at this; dlopen uses the "magic numbers" at the beginning
of a file to identify the executable format; i think it's safe for s7
to do the same. I've modified the patch to include MacOS and Windows
exectuable file formats.

as an aside, ELF files can be executable! and dlopen can load them just
like a dll (as long as they have a dynamic symbol table). I can't see a
reason for s7 to take advantage of this, but I also can't see a reason
to prevent someone from loading an executable as an s7 extension either

Take a look at the revised patch, attached.

Woody Douglass

On Wed, 2022-03-23 at 15:16 -0700, bil at ccrma.Stanford.EDU wrote:
> I'll add dylib as an acceptable extension.
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-identify-elf.patch
Type: text/x-patch
Size: 2080 bytes
Desc: 0004-identify-elf.patch
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20220324/4abc218c/attachment-0001.bin>

More information about the Cmdist mailing list