Re: [PATCH] linux-user: Fix GDB complaining about system-supplied DSO string table index

2024-10-23 Thread Richard Henderson
On 10/23/24 07:46, Ilya Leoshkevich wrote: When debugging qemu-user processes using gdbstub, the following warning appears every time: warning: BFD: warning: system-supplied DSO at 0x7f8253cc3000 has a corrupt string table index The reason is that QEMU does not map the VDSO's section head

Re: [PATCH] linux-user: Fix GDB complaining about system-supplied DSO string table index

2024-10-23 Thread Ilya Leoshkevich
On Wed, 2024-10-23 at 12:03 -0700, Richard Henderson wrote: > On 10/23/24 07:46, Ilya Leoshkevich wrote: > > [...] > > > - Fix up VDSO's PHDR size in gen-vdso. This is the simplest > > solution, > >    so do it. The only tricky part is byte-swaps: they need to be > > either > >    done on local

[PATCH] linux-user: Fix GDB complaining about system-supplied DSO string table index

2024-10-23 Thread Ilya Leoshkevich
When debugging qemu-user processes using gdbstub, the following warning appears every time: warning: BFD: warning: system-supplied DSO at 0x7f8253cc3000 has a corrupt string table index The reason is that QEMU does not map the VDSO's section headers. The VDSO's ELF header's e_shoff points to