1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/gnu
Andriy Gapon 7996bf419b kgdb: correctly map sections to addresses in elf object modules (amd64)
Unlike for modules with dso type, in elf object modules all the sections
have virtual address of zero.  So, it is insufficient to add module base
address to section virtual address (as recorded in section header) to
get section address in kernel memory.
Instead, we should apply the same calculations that are performed by
kernel loaders (in boot code and in kernel) when they lay out sections
in memory.

Discussed with:	jhb, np
MFC after:	3 weeks
2010-07-23 17:21:23 +00:00
..
lib Disable building libobjc with clang as it's not yet supported. 2010-07-22 18:49:27 +00:00
usr.bin kgdb: correctly map sections to addresses in elf object modules (amd64) 2010-07-23 17:21:23 +00:00
COPYING
COPYING.LIB
Makefile
Makefile.inc