Libexec/rtld freebsd noinit#356
Merged
Merged
Conversation
SQLITE_ENABLE_SESSION alone is insufficient; SQLite's documentation requires SQLITE_ENABLE_PREUPDATE_HOOK to be defined alongside it for the session/changeset/patchset API (sqlite3session_*, sqlite3changeset_*) to be fully functional. SQLITE_ENABLE_COLUMN_METADATA enables sqlite3_column_origin_name(), sqlite3_column_database_name(), and sqlite3_column_table_name(), which Node.js 24 and other consumers depend on. AI-Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Lucas Holt <luke@foolishgames.com>
Accept FreeBSD note vendor sizing when parsing ELF notes so FreeBSD binaries carrying NT_FREEBSD_NOINIT_TAG set crt_no_init. This lets rtld run the main executable init arrays instead of leaving C++ globals uninitialized. AI-Assisted-by: Codex <noreply@openai.com> Signed-off-by: Lucas Holt <luke@foolishgames.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideExtends rtld’s ELF note parsing to recognize a FreeBSD vendor note for the no-init CRT tag, and enables additional SQLite3 features via build flags. Flow diagram for rtld ELF no-init note handlingflowchart TD
A[digest_notes receives ELF note] --> B{Vendor size matches
NOTE_MIDNIGHTBSD_VENDOR or NOTE_FREEBSD_VENDOR
and desc size matches int32_t}
B -- no --> C[Skip note]
B -- yes --> D{note->n_type}
D -- NT_MIDNIGHTBSD_NOINIT_TAG --> E[obj->crt_no_init = true]
D -- other --> F[Handle other supported tags]
E --> G[Continue scanning notes]
F --> G[Continue scanning notes]
C --> G
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Update runtime linker ELF note handling and enable additional SQLite3 features.
New Features:
Bug Fixes:
Enhancements: