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

[email protected]
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227093

--- Comment #4 from [email protected] ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.