static-PIE: Update DT_DEBUG for debugger [BZ #23206]
commit7f7b5d8ded77db90c1fbfeaaeb3d58b6db84da47
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 29 May 2018 13:33:42 +0000 (29 06:33 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 29 May 2018 13:33:57 +0000 (29 06:33 -0700)
treeb4ef8d98fe75f5047fbb33e20e66ab5ec5ef08bf
parente48903000b248f6cdc78238b006b86b63fcdbf8c
static-PIE: Update DT_DEBUG for debugger [BZ #23206]

This is needed to support debugging dlopened shared libraries in static
PIE.

[BZ #23206]
* elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
_r_debug and update DT_DEBUG for debugger.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
elf/dl-reloc-static-pie.c