[PATCH] elf: Add -z [dt-debugsz|nodt-debugsz] to emit DT_DEBUGSZ
H.J. Lu
hjl.tools@gmail.com
Sun Aug 15 12:50:16 GMT 2021
On Sun, Aug 15, 2021 at 4:55 AM Florian Weimer <fw@deneb.enyo.de> wrote:
>
> * H. J. Lu via Gdb-patches:
>
> > Add -z [dt-debugsz|nodt-debugsz] to emit a DT_DEBUGSZ dynamic tag so
> > that the dynamic linker can set its value to the size of the structure
> > of debugger interface, whose address is stored in the DT_DEBUG dynamic
> > tag, used by the dynamic linker.
>
> I do not think this is necessary. We can increase the version number
> in the existing DT_DEBUG structure.
Some debuggers expect r_version == 1.
--
H.J.
More information about the Binutils
mailing list