Skip to content

gdb: fix runtime search path on cross architectures#60503

Open
oreo639 wants to merge 1 commit into
void-linux:masterfrom
oreo639:gdb-cross
Open

gdb: fix runtime search path on cross architectures#60503
oreo639 wants to merge 1 commit into
void-linux:masterfrom
oreo639:gdb-cross

Conversation

@oreo639
Copy link
Copy Markdown
Member

@oreo639 oreo639 commented May 11, 2026

Testing the changes

  • I tested the changes in this PR: YES

cc: @Duncaen

Currently gdb fails to load libraries on architectures where gdb has been cross compiled, such as armv7l-musl and aarch64, unless set solib-search-path or set sysroot is done manually.
This is due to --with-sysroot setting the sysroot used for both compile time and run time. This is an known issue with binutils, where --with-build-sysroot is used instead of --with-sysroot. The same should be done for gdb.

Before this change show sysroot on armv7l-musl outputs /usr/armv7l-linux-musleabihf, after this change, it outputs target: as it does on x86_64.

@Duncaen
Copy link
Copy Markdown
Member

Duncaen commented May 11, 2026

Added the change to the gdb update #60507.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants