[Bug 207898] kernel linker behaves differently on amd64 vs. i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Dec 2021 22:00:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207898
--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=95c20faf11a1af6924f97ec4aafc32d899fea8b0
commit 95c20faf11a1af6924f97ec4aafc32d899fea8b0
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-07 08:37:48 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-08 21:32:29 +0000
kernel linker: do not read debug symbol tables for non-debug symbols
In particular, this prevents resolving locals from other files.
To access debug symbol tables, add LINKER_LOOKUP_DEBUG_SYMBOL and
LINKER_DEBUG_SYMBOL_VALUES kobj methods, which are allowed to use
any types of present symbols in all tables.
PR: 207898
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32878
sys/kern/kern_linker.c | 2 +-
sys/kern/link_elf.c | 79 +++++++++++++++++++++++++++++++++++++++----------
sys/kern/link_elf_obj.c | 61 +++++++++++++++++++++++++++++++-------
sys/kern/linker_if.m | 12 ++++++++
4 files changed, 126 insertions(+), 28 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.