summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-07-23 17:21:23 +0000
committeravg <avg@FreeBSD.org>2010-07-23 17:21:23 +0000
commite702b156d5207a8b61360c3cc17e5805301f7b52 (patch)
tree527f0802b5d188afc6170acf6b250304436125de /cddl
parentb44b5ccee0f75a8542e6952669892eea0b6cca77 (diff)
downloadFreeBSD-src-e702b156d5207a8b61360c3cc17e5805301f7b52.zip
FreeBSD-src-e702b156d5207a8b61360c3cc17e5805301f7b52.tar.gz
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
Diffstat (limited to 'cddl')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud