40b664f64b
It turns out relocating the symbol table itself can cause issues, like fbt crashing because it applies the offsets to the kernel twice. This had been previously brought up in rS333447 when the stoffs hack was added, but I had been unaware of this and reimplemented symtab relocation. Instead of relocating the symbol table, keep track of the relocation base in ddb, so the ddb symbols behave like the kernel linker-provided symbols. This is intended to be NFC on platforms other than PowerPC, which do not use fully relocatable kernels. (The relbase will always be 0) * Remove the rest of the stoffs hack. * Remove my half-baked displace_symbol_table() function. * Extend ddb initialization to cope with having a relocation offset on the kernel symbol table. * Fix my kernel-as-initrd hack to work with booke64 by using a temporary mapping to access the data. * Fix another instance of __powerpc__ that is actually RELOCATABLE_KERNEL. * Change the behavior or X_db_symbol_values to apply the relocation base when updating valp, to match link_elf_symbol_values() behavior. Reviewed by: jhibbits Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D25223 |
||
---|---|---|
.. | ||
altivec.c | ||
autoconf.c | ||
bus_machdep.c | ||
busdma_machdep.c | ||
clock.c | ||
copyinout.c | ||
cpu_subr64.S | ||
cpu.c | ||
db_disasm.c | ||
db_hwwatch.c | ||
db_interface.c | ||
db_trace.c | ||
dump_machdep.c | ||
elf32_machdep.c | ||
elf64_machdep.c | ||
elf_common.c | ||
exec_machdep.c | ||
fpu.c | ||
gdb_machdep.c | ||
genassym.c | ||
in_cksum.c | ||
interrupt.c | ||
intr_machdep.c | ||
iommu_if.m | ||
machdep.c | ||
mem.c | ||
minidump_machdep.c | ||
mp_machdep.c | ||
nexus.c | ||
openpic.c | ||
pic_if.m | ||
platform_if.m | ||
platform.c | ||
pmap_dispatch.c | ||
ptrace_machdep.c | ||
sc_machdep.c | ||
setjmp.S | ||
sigcode32.S | ||
sigcode64.S | ||
stack_machdep.c | ||
support.S | ||
swtch32.S | ||
swtch64.S | ||
syncicache.c | ||
sys_machdep.c | ||
trap.c | ||
uio_machdep.c | ||
uma_machdep.c | ||
vm_machdep.c |