hppa: Fix initialization of dp register [BZ 29635]
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 1 Oct 2022 19:49:25 +0000 (19:49 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 1 Oct 2022 19:49:25 +0000 (19:49 +0000)
commitb7bd94068e55d5fa8681e2ab4802d31852ea404e
tree08a38c8637184e63d8328c3a754ecdef5ad49170
parentba70f6959876b6daba180afbe427710e4383e357
hppa: Fix initialization of dp register [BZ 29635]

After upgrading glibc to Debian 2.35-1, gdb faulted on
startup and dropped core in a function call in the main
application.  This was caused by not initializing the
global dp register for the main application early enough.

Restore the code to initialize dp in _dl_start_user.
It was removed when code was added to initialize dp in
elf_machine_runtime_setup.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
sysdeps/hppa/dl-machine.h