toolchain: musl: Fix symbol loading in gdb
authorHauke Mehrtens <hmehrtens@maxlinear.com>
Tue, 10 Jan 2023 18:50:12 +0000 (19:50 +0100)
committerRISCi_ATOM <bob@bobcall.me>
Mon, 15 May 2023 15:16:50 +0000 (11:16 -0400)
commitfb953fedc878f30c69885009bc8920a0ed5580e8
tree89be2817a44dc75b13c05140d4b95068a147b323
parentd1d40a18f3b215631dded80ee35788d1d30f7745
toolchain: musl: Fix symbol loading in gdb

Fix DT_DEBUG handling on MIPS in musl libc.
With this change gdb will load the symbol files for shared libraries on MIPS too.

This patch was taken from this thread: https://www.openwall.com/lists/musl/2022/01/09/4

Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
(cherry picked from commit fcdd407e8e16b90e1995789ba217be5591a88d2f)
toolchain/musl/patches/800-mips_pie_debug.patch [new file with mode: 0644]