[Bug 227093] powerpc64/pseries: Symbol table not relocated

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 10 04:00:53 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227093

--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:

Author: jhibbits
Date: Thu May 10 03:59:49 UTC 2018
New revision: 333447
URL: https://svnweb.freebsd.org/changeset/base/333447

Log:
  Fix PPC symbol resolution

  Summary:
  There were 2 issues that were preventing correct symbol resolution
  on PowerPC/pseries:

  1- memory corruption at chrp_attach() - this caused the inital
     part of the symbol table to become zeroed, which would cause
     the kernel linker to fail to parse it.
     (this was probably zeroing out other memory parts as well)

  2- DDB symbol resolution wasn't working because symtab contained
     not relocated addresses but it was given relocated offsets.
     Although relocating the symbol table fixed this, it broke the
     linker, that already handled this case.
     Thus, the fix for this consists in adding a new DDB macro:
     DB_STOFFS(offs) that converts a (potentially) relocated offset
     into one that can be compared with symbol table values.

  PR:           227093
  Submitted by: Leandro Lupori <leandro.lupori_gmail.com>
  Differential Revision: https://reviews.freebsd.org/D15372

Changes:
  head/sys/ddb/db_main.c
  head/sys/ddb/ddb.h
  head/sys/powerpc/include/db_machdep.h
  head/sys/powerpc/pseries/platform_chrp.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ppc mailing list