Separate SHT_INIT_ARRAY/SHT_FINI_ARRAY/SHT_X86_64_UNWIND out.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Nov 23 2024
Nov 14 2024
Nov 12 2024
Nov 10 2024
Remove duplicated fsanitize flags during module build
Nov 5 2024
In D47383#1081811, @jhb wrote:We can probably just do this all the time without needing the flag? I think kldxref just doesn't care, or more likely ef_object.c in kldxref wasn't updated when the kernel linker changed.
Nov 4 2024
Addresses jhb@'s comments
Nov 1 2024
Oct 25 2024
Oct 23 2024
Oct 20 2024
Oct 18 2024
Updated to adapt to NOSAN's introduction
Oct 10 2024
Oct 8 2024
Oct 4 2024
Comments update.
Fix per markj@'s comment. ef_print_phdr related part now is left unchanged for now.
Oct 3 2024
Oct 2 2024
Bootstrap it everytime, and remove the __FreeBSD_version bump as well given this library is private.
Sep 27 2024
Remove include headers installation
Sep 24 2024
Update commit message. If it is not reflected on Phabricator I will do it one more time.
In D46719#1066156, @markj wrote:This is missing some description of libkldelf's intended functionality, either in the commit message or in a man page (maybe a man page is not required for private libraries). It's hard to tell at a glance what this library does, at least for me who is not familiar with kldxref internals.
I don't have any objection to the change itself, it seems fine and will be useful for debuggers and related tools. libdtrace might be able to take advantage of it as well, replacing some existing code.
Update Makefile.depend as well.
Sep 23 2024
Fix indentiation issue in mtree files
In D46719#1066014, @imp wrote:Do we need ef_mips.c still ?
Updated to be a private library.
Sep 22 2024
I think I have to make it PRIVATELIB to be more useful.
Sep 21 2024
per jhb@'s suggestion.
Sep 20 2024
Sep 13 2024
In D46537#1063010, @jhb wrote:Is it to have libkvm resolve symbols in loaded modules by name via kvm_nlist*() when looking at a crash dump?
Sep 5 2024
Or, I might just do it the way like how other debugger does - not using elf_file but doing adjustments with only ELF parsing libraries rather.
In D46537#1060920, @markj wrote:In D46537#1060919, @khng wrote:In D46537#1060911, @markj wrote:These exposed part could be consumed by libkvm easily to look for symbols in a vmcore.
Could you please explain further? libkvm should have access to the kernel and KLD binaries, why does it need to inspect symbol tables in a vmcore?
Which in case of non-live kvm_open() libkvm does not call into kldsym(2). Currently we do not populate the linker_files list in the vmcore. In this scenario usually callers call the kvm_open function with a vmcore and a kernel ELF binary path, so libkvm will never have knowledge of the loaded modules.
I do not follow the bit about "populating the linker_files list". The list should certainly be in the vmcore, that's how kgdb is able to figure out which KLDs were loaded.
In D46537#1060911, @markj wrote:These exposed part could be consumed by libkvm easily to look for symbols in a vmcore.
Could you please explain further? libkvm should have access to the kernel and KLD binaries, why does it need to inspect symbol tables in a vmcore?
Sep 4 2024
Aug 15 2024
Or that can be addressed by malloc_usable_size() ?
Or you probably want to expose a proper API rather?