You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "anchao (via GitHub)" <gi...@apache.org> on 2025/02/05 07:38:32 UTC
[PR] libc/elf: rename modlib to elf [nuttx-apps]
anchao opened a new pull request, #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985
## Summary
libc/elf: rename modlib to elf
Renaming "modlib" to "elf" is more in line with the implementation content,
which makes it easier for independent developers to understand the capabilities of this module.
CONFIG_LIBC_MODLIB -> CONFIG_LIBC_ELF
Signed-off-by: chao an [anchao.archer@bytedance.com](mailto:anchao.archer@bytedance.com)
## Impact
N/A
## Testing
sim/sotest
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BREAKING]libc/elf: rename modlib to elf [nuttx-apps]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985#issuecomment-2782755493
We'll change "Draft Mode" to "Ready for Review" after the voting. Thanks :-)
- https://github.com/apache/nuttx/pull/15765
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BREAKING]libc/elf: rename modlib to elf [nuttx-apps]
Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985#issuecomment-2694740455
> @anchao could you please verify, it is failing in the CI
Thanks @acassis , this PR depends on apps repo https://github.com/apache/nuttx/pull/15765, so it may not be possible to pass CI separately
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BREAKING]libc/elf: rename modlib to elf [nuttx-apps]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen merged PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BREAKING]libc/elf: rename modlib to elf [nuttx-apps]
Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985#issuecomment-2782635706
> Could there be an email to the mailing list to point out the (proposed) breaking change? Some members of the community don't monitor GitHub. Thanks!
@hartmannathan Thanks for your suggestion, I sent an email to the dev list
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] libc/elf: rename modlib to elf [nuttx-apps]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985#issuecomment-2685524162
@anchao could you please verify, it is failing in the CI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] libc/elf: rename modlib to elf [nuttx-apps]
Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985#issuecomment-2641700861
> Thanks @anchao :-)
>
> * Why this change is really necessary? What it fixes / improves?
> * Modlib library [1] is meant for loadable modules of various formats. So far we only support ELF but other formats may be added. When other formats are added then elf name will be confusing again. We should stick to name modlib as this is loadable module component, not just elf handler.
> * How does that change impact existing configurations and backward-compatibility (i.e. older nuttx-apps)? You marked impact `N/A` but this seems breaking change so description is invalid? Also providing reference to different change is not an impact factor just a reference / dependency and should belong to summary section.
> * This change will breaks existing libc and configuration. It will break compatibility with nuttx-apps out of sync with nuttx. This change should be marked as breaking change. It would be good to first discuss this kind of change on mailing lists.
> * Where are build / runtime test logs? Did you verify build and runtime with latest release of nuttx-apps to see if it does not break things?
> * How does that align with other standards (libc) and OS/RTOS implementations?
> * How does that align with existing libelf API / compatibility?
>
> [1] https://nuttx.apache.org/docs/latest/applications/examples/module/index.html [2] https://github.com/apache/nuttx/tree/fdc0b608b5893a207ea37a276e0adade6ded3b62/libs/libc/modlib
NuttX have 2 elf implementations before, one is libelf and other one is modlib, 90% of the code was repeated. Modlib has more features than libelf, including dynamic loading, so the libelf code was completely deleted in the following commit:
https://github.com/apache/nuttx/pull/14100
but actually modlib is the implementation of elf. In this commit, I changed the name of modlib back to libelf, so that readers can know more clearly what the internal implementation is
In other words, you asked this question because you don't know what happened in modlib, so libelf is a more suitable name
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] libc/elf: rename modlib to elf [nuttx-apps]
Posted by "nuttxpr (via GitHub)" <gi...@apache.org>.
nuttxpr commented on PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985#issuecomment-2635989079
[**\[Experimental Bot, please feedback here\]**](https://github.com/search?q=repo%3Aapache%2Fnuttx+13552&type=issues)
No, this PR does not fully meet the NuttX requirements. While it provides a summary and testing information, it lacks crucial details.
Here's what's missing:
* **Summary:** While the "what" is explained, the "why" is weak. Why is "elf" a *better* name than "modlib"? What confusion does the current name cause? More context is needed. The summary also needs the related NuttX issue number.
* **Impact:** "N/A, depends on another PR" is insufficient. Even with a dependency, this PR *will* have an impact. At minimum, it will change the configuration option name, which has build system impact. All impact sections should be explicitly addressed with "YES" or "NO" and a description if "YES." Consider the impact if/when the other PR is merged. Will this rename break anything? Will documentation need updates?
* **Testing:** "sim/sotest" is inadequate. Provide specifics: Which sim? Which sotest? What commands were run? Actual log output, even if minimal, is required *before* and *after* the change. The current entry provides no evidence of testing. It also needs details about the build host used.
Therefore, the PR needs revision before it can be considered complete.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [BREAKING]libc/elf: rename modlib to elf [nuttx-apps]
Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on PR #2985:
URL: https://github.com/apache/nuttx-apps/pull/2985#issuecomment-2795607551
> @anchao Please close [the voting](https://lists.apache.org/thread/oh3cjvpfl0fz2rd3qlf034y6shcxwc0h). Thanks :-)
>
> This Breaking PR compiles with the [NuttX Breaking Changes Handling Process](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md#113-breaking-changes-handling-process):
>
> * [CI Checks are successful](https://gist.github.com/search?q=user%3Anuttxpr+8b9d2c0cfc74361c212733fdcd119c9f6da628b4&ref=searchresults)
> * Tested OK with OSTest on Real Hardware: [Avaota-A1 A527 Arm64 SBC](https://gist.github.com/lupyuen/ae0a726e84bb318d4dfad101836fdfe9) and [Oz64 SG2000 64-bit RISC-V SBC](https://gist.github.com/lupyuen/b8d23be87a9b29ec8e025002ec029de1)
> * [No Blocking Binding Vote](https://lists.apache.org/thread/oh3cjvpfl0fz2rd3qlf034y6shcxwc0h)
@lupyuen Done, thank you very much for the extra work on this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org