[Midnightbsd-cvs] [MidnightBSD/src] fe70e9: Libexec/rtld freebsd noinit (#356)

Lucas Holt noreply at github.com
Fri May 15 18:20:39 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: fe70e94cef4c564c76b3b314d4ff503c5ce73d2c
      https://github.com/MidnightBSD/src/commit/fe70e94cef4c564c76b3b314d4ff503c5ce73d2c
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-05-15 (Fri, 15 May 2026)

  Changed paths:
    M lib/libsqlite3/Makefile
    M libexec/rtld-elf/rtld.c

  Log Message:
  -----------
  Libexec/rtld freebsd noinit (#356)

* lib/libsqlite3: enable PREUPDATE_HOOK and COLUMN_METADATA

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 at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>

* rtld: honor FreeBSD no-init notes

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 at openai.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>

---------

Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list