Skip to content

Conversation

@keith-packard
Copy link
Contributor

Update picolibc to 1.8.10. This required re-working the mapping of CT options to picolibc meson options. That's done in the first patch in a fashion compatible with older picolibc and 1.8.10.

config LIBC_PICOLIBC_REGISTER_FINI
bool
prompt "Enable finalization function registration using atexit"
prompt "Enable finalization function registration using atexit [unused]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove these in the next ct-ng release?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hesitated to remove them for fear of breaking existing configurations, but if that wouldn't cause any issues, then, yes, we should remove them. They've never been useful.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think it's probably a good idea to keep them as no-op for now. Lets see if we can collectively remember to drop them after the next release :)

Picolibc 1.8.10 reworked the configuration option for single/multi
thread support and removed some unused options for exit handler
support.

Map LIBC_PICOLIBC_MULTITHREAD to the new single-thread option or the old
newlib-retargetable-locking+newlib-multithread options depending on whether
the picolibc version knows about the single-thread option.

Remove support for newlib-register-fini, newlib-atexit-dynamic-alloc,
newlib-global-atexit and lite-exit options as all of those relate to
the legacy exit handler code. There hasn't ever been any way to enable
this using crosstool-ng, so none of these options have ever done
anything.

The help strings for each of of the unused configuration variables
have been updated.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
@cpackham cpackham merged commit cd0332b into crosstool-ng:master Apr 26, 2025
22 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants