Commit ebf9c89
committed
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@openai.com>
Signed-off-by: Lucas Holt <luke@foolishgames.com>1 parent 07fa6c3 commit ebf9c89
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1765 | 1765 | | |
1766 | 1766 | | |
1767 | 1767 | | |
1768 | | - | |
| 1768 | + | |
| 1769 | + | |
1769 | 1770 | | |
1770 | 1771 | | |
1771 | 1772 | | |
| |||
1797 | 1798 | | |
1798 | 1799 | | |
1799 | 1800 | | |
1800 | | - | |
| 1801 | + | |
1801 | 1802 | | |
1802 | 1803 | | |
1803 | 1804 | | |
| |||
0 commit comments