Debugging PIE executables on Linux

This topic contains 1 reply, has 2 voices, and was last updated by  Sean 2 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48989

    Felix
    Member

    Hi,

    The problem with debugging MIPS PIE executables on Linux remains unresolved in upstream binutils/glibc/gdb. For technical details please refer to the following threads:

    https://sourceware.org/ml/binutils/2013-06/msg00183.html
    https://sourceware.org/ml/binutils/2014-10/msg00200.html

    I was wondering if any effort is underway in Imgtec to fix the problem in CodeScape MIPS SDK or submit the fixes upstream.

    Thanks a lot.

    Felix.

    #49286

    Sean
    Moderator

    Felix,

    I believe you already have a solution to this via Partner Portal.

    Just to update this ticket, PIE executables can now be debugged with binutils and glibc support is committed to upstream repos:
    binutils in binutils-gdb: a5499fa Add support for DT_MIPS_RLD_MAP_REL.
    glibc: a2057c9 Add support for DT_MIPS_RLD_MAP_REL.

    The GDB update is currently pending review.

    This fix be generally available in the 2015.06 series tools due to be released later this year but to use it you have to have the GLIBC installed from this set of tools.

    Regards,

    Sean.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.