1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00
freebsd/stand/common
Kyle Evans 0701dbda94 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
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D36975
2022-10-13 22:07:52 -05:00
..
bcache.c loader: bcache: Fix debug printf 2021-12-16 11:50:43 +01:00
boot.c stand: Remove a double word in a source code comment 2022-04-09 09:27:34 +02:00
bootstrap.h stand: Add interp_has_builtin_cmd to see if we have a command 2022-09-01 11:08:19 -06:00
commands.c stand: Move quit command to common commands 2022-07-30 04:48:35 -06:00
console.c Handle MODULE_VERBOSE_TWIDDLE in module_verbose_set 2022-02-23 21:26:41 -08:00
dev_net.c stand: Use c99 structure initialization for network device 2022-07-24 16:53:34 -06:00
dev_net.h
devopen.c
disk.c stand: Change disk_fmtdev to take a struct devdesc * 2022-08-11 10:27:15 -06:00
disk.h stand: Change disk_fmtdev to take a struct devdesc * 2022-08-11 10:27:15 -06:00
gfx_fb_stub.c loader: move all gfx_fb.c stubs to common/gfx_fb_stub.c 2021-12-14 15:27:47 -07:00
gfx_fb.c gfx_fb: Fix a typo in a source code comment 2021-12-22 10:00:42 +01:00
gfx_fb.h loader.efi: to preserve heap space, use AllocatePages() for shadow_fb 2021-12-22 11:39:28 +02:00
help.common
install.c
interp_backslash.c
interp_forth.c
interp_lua.c
interp_parse.c
interp_simple.c
interp.c stand: Add interp_has_builtin_cmd to see if we have a command 2022-09-01 11:08:19 -06:00
isapnp.c stand: Fix a common typo in source code comments 2022-06-05 09:49:51 +02:00
isapnp.h
load_elf32_obj.c
load_elf32.c
load_elf64_obj.c
load_elf64.c
load_elf_obj.c Add support for module_verbose 2022-02-13 12:45:57 -08:00
load_elf.c loader: fix elf lookup_symbol type filtering 2022-10-13 22:07:52 -05:00
ls.c
Makefile.depend
md.c stand: Add disk_fmtdev for dv_fmtdev for all the disk devices 2022-08-11 10:27:16 -06:00
merge_help.awk
metadata.c stand: fix mismerge 2022-09-16 10:54:04 -06:00
misc.c
modinfo.c stand: collapse all copies of *copyenv into md_copyenv 2022-09-16 09:18:56 -06:00
modinfo.h stand: collapse all copies of *copyenv into md_copyenv 2022-09-16 09:18:56 -06:00
module.c module_verbose should also affect non-ELF modules. 2022-02-14 10:44:46 -08:00
newvers.sh
nvstore.c
part.c
part.h
paths.h
pnp.c
rbx.h
readin.h
reloc_elf32.c
reloc_elf64.c
reloc_elf.c
self_reloc.c
tslog.c
vdisk.c stand: Add disk_fmtdev for dv_fmtdev for all the disk devices 2022-08-11 10:27:16 -06:00
zfs_cmd.c