freebsd-dev/sys/arm/arm
Brandon Bergren 40b664f64b [PowerPC] More relocation fixes
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
2020-06-21 03:39:26 +00:00
..
autoconf.c
bcopy_page.S
bcopyinout_xscale.S Revert r336773: it removed too much. 2018-07-27 21:25:01 +00:00
bcopyinout.S Revert r336773: it removed too much. 2018-07-27 21:25:01 +00:00
blockio.S
bus_space_asm_generic.S
bus_space_base.c
bus_space_generic.c
busdma_machdep.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
copystr.S copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
cpu_asm-v6.S
cpufunc_asm_arm9.S Remove old CPU_ values from the arm cpufunc code. These have been removed. 2018-07-28 12:00:32 +00:00
cpufunc_asm_arm11x6.S
cpufunc_asm_armv4.S Fix the spelling of armv4_idcache_inv_all in an END macro. 2018-08-14 15:42:27 +00:00
cpufunc_asm_armv5_ec.S Only build the cache handling code we need when building the arm ELF 2018-07-28 12:50:09 +00:00
cpufunc_asm_armv7.S Remove the dead code from ARM cpufunc_* files. 2018-07-18 10:33:07 +00:00
cpufunc_asm_pj4b.S
cpufunc_asm_sheeva.S Only build the cache handling code we need when building the arm ELF 2018-07-28 12:50:09 +00:00
cpufunc_asm.S Remove an old comment now the code it references has been removed. 2018-08-14 15:48:13 +00:00
cpufunc.c Use the cp15 functions to read cp15 registers rather than using assembly 2018-07-28 17:21:34 +00:00
cpuinfo.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
db_disasm.c
db_interface.c
db_trace.c
debug_monitor.c
disassem.c
dump_machdep.c Revert r336773: it removed too much. 2018-07-27 21:25:01 +00:00
elf_machdep.c [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic(). 2020-03-18 02:58:18 +00:00
elf_note.S
exception.S Revert r336773: it removed too much. 2018-07-27 21:25:01 +00:00
fiq_subr.S
fiq.c
fusu.S Provide protection against starvation of the ll/sc loops when accessing userpace. 2019-07-12 18:43:24 +00:00
gdb_machdep.c
genassym.c
generic_timer.c Only set up the interrupts that will actually be used in arm generic_timer. 2019-04-17 15:27:11 +00:00
gic_acpi.c Add missing ACPI GICv2 MSI/MSI-X attachment 2019-06-28 01:17:33 +00:00
gic_common.h
gic_fdt.c Remove teh non-INTRNG code from the ARM GIC interrupt controller driver. 2018-07-30 10:55:02 +00:00
gic.c Remove the check that the Arm generic interrupt controller variant is 2018-09-06 17:25:01 +00:00
gic.h Remove teh non-INTRNG code from the ARM GIC interrupt controller driver. 2018-07-30 10:55:02 +00:00
hypervisor-stub.S
identcpu-v4.c Remove cpu_pfr from arm. It's unused. 2018-08-14 16:01:25 +00:00
identcpu-v6.c Fix the following -Werror warning from clang 10.0.0: 2020-02-27 19:58:20 +00:00
in_cksum_arm.S
in_cksum.c
intr.c follow-up to r336635, update TAILQ to CK_SLIST for ie_handlers 2018-07-23 15:36:55 +00:00
locore-v4.S Set a "kernbase" symbol in 32-bit arm locore.S and use it with ldscript.arm. 2019-12-30 23:20:46 +00:00
locore-v6.S Set a "kernbase" symbol in 32-bit arm locore.S and use it with ldscript.arm. 2019-12-30 23:20:46 +00:00
locore.S
machdep_boot.c [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00
machdep_intr.c
machdep_kdb.c Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
machdep_ptrace.c
machdep.c Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
mem.c Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
minidump_machdep.c Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
mp_machdep.c arm: Don't enable interrupts in init_secondary(). 2020-05-06 15:10:05 +00:00
mpcore_timer.c Add a missing \n to a bootverbose printf. 2019-01-07 16:36:45 +00:00
mpcore_timervar.h
nexus.c
nexusvar.h
ofw_machdep.c
pl190.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
pl310.c Revert r339421 due to unintended files included to commit. 2018-10-18 15:17:58 +00:00
platform_if.m
platform_pl310_if.m
platform.c
pmap-v4.c Remove page locking from pmap_mincore(). 2019-10-16 22:03:27 +00:00
pmap-v6.c Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
pmu.c
ptrace_machdep.c Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
sc_machdep.c sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
setcpsr.S
setstack.s
stack_machdep.c Reimplement stack capture of running threads on i386 and amd64. 2020-01-31 15:43:33 +00:00
stdatomic.c
support.S
swtch-v4.S
swtch-v6.S
swtch.S
sys_machdep.c
syscall.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
trap-v4.c Improve MD page fault handlers. 2019-09-27 18:43:36 +00:00
trap-v6.c Improve MD page fault handlers. 2019-09-27 18:43:36 +00:00
uio_machdep.c
undefined.c Raise a proper SIGTRAP / TRAP_TRACE signal for a PT_STEP step on arm. 2018-07-25 18:11:37 +00:00
unwind.c Rewrite arm kernel stack unwind code to work when unwinding through modules. 2019-12-15 21:16:35 +00:00
vfp.c Use the correct register when storing the arm VFP state. 2018-08-27 10:08:27 +00:00
vm_machdep.c amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00