dmrlawson Did you read my link to balena.io? It provides some fixes and workarounds.
Thanks. I'm not sure if that helps, though I may be misunderstanding. They mention they contributed some fixes to the kernel configuration but the article was written nearly a year ago. Since then there's been an official (beta) release of the Raspberry Pi OS which works pretty well.
The problem I'm getting happens before the kernel is built (I think) and has to do with linking the compiled code (for gdb). I'm wondering if it's a libc thing, but I'm not overly familiar with how that works, and I might be looking at it the wrong way entirely.
EDIT: or are you suggesting trying to move to balenaOS?