Hello world :-) Sorry for a bit of absence I was out for a delegation getting back to the living :-)
0 from me not to block as there is a preference towards change and it seems remaining part of the bigger update in progress that should be closed.. if the community prefers to have it in the minor update (not 13.0) so be it :-) @anchao thank you for good problem description and discussion / vote on the mailing list! As this is breaking change this approach seems to work well and prevent surprises after release is made :-) Here are some references to LibELF approaches from FreeBSD, its not part of libc but a contrib/elftoolchain, maybe could provide some inspiration :-) https://wiki.freebsd.org/LibElf https://sourceforge.net/p/elftoolchain/wiki/Home/ https://svnweb.freebsd.org/base/head/contrib/elftoolchain/ https://sourceforge.net/p/elftoolchain/wiki/libelf/ Thank you :-) Tomek On Mon, Apr 7, 2025 at 9:13 AM chao an <magicd...@gmail.com> wrote: > > Hi community, > > Some green hand and individual developer who are not familiar with nuttx may > be confused by the naming of modlib, in currect implement, modlib as an elf > loader and parser, does not provide any features other than elf. > > In this pull request, I plan to rename modlib to elf, and adjust it from the > architecture level as follows: > > https://github.com/apache/nuttx/pull/15765 > > > > > In addition from other popular operating systems, different loadable types > are all implemented in binfmt. Therefore, it is also impossible for modlib to > support formats other than ELF in the future: > > https://github.com/torvalds/linux/blob/master/fs/binfmt_elf.c > https://github.com/torvalds/linux/blob/master/fs/binfmt_elf_fdpic.c > https://github.com/torvalds/linux/blob/master/fs/binfmt_flat.c > https://github.com/torvalds/linux/blob/master/fs/binfmt_misc.c > https://github.com/torvalds/linux/blob/master/fs/binfmt_script.c > https://github.com/alexbousso/kernel_2.4.18-14/blob/master/fs/binfmt_coff.c > > This is where they belong: > https://github.com/apache/nuttx/tree/master/binfmt > > > So I need your vote here: > If you prefer modlib, please reply with -1. > If you recommend libelf, please reply with +1. > > BRs, -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info