diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2022-10-14 03:06:13 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2022-10-17 15:40:41 +0000 |
| commit | 2b31059ea701957584e68a75857206d80a230211 (patch) | |
| tree | b2593502e2af3a0c8f325b29ea07c8ca92c6a72f /etc | |
| parent | 63d9ad6e46d28c5310def9f5db954debf3d1c569 (diff) | |
loader: fix elf lookup_symbol type filtering
The existing logic doesn't seem to make much sense, as we won't filter
on the type if st_shndx != SHN_UNDEF. In practice, this breaks booting
12.3 kernels on newer loaders, as they do have a `kernphys` symbol of
the wrong type (NOTYPE, rather than OBJECT) -- we end up deriving the
wrong value for copy_staging.
It's unclear if this version makes any more sense, but it seems to match
what rtld's matched_symbol() does. Loader doesn't need to care about
STT_FUNC w/ UND shndx, because we won't encounter those; in kmods,
undefined (kernel) functions are NOTYPE.
Reported by: Christian McDonald <cmcdonald netgate com>
Reviewed by: imp, kib, tsoome
(cherry picked from commit 0701dbda94f21de8ddab3113f79262a26cc7b96c)
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions
