]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle PIE in .debug_loclists
authorTom Tromey <tromey@adacore.com>
Wed, 10 Nov 2021 19:15:02 +0000 (12:15 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 10 Nov 2021 19:16:40 +0000 (12:16 -0700)
commit0c7af29227028f58dfe8ac7e6f0be19f87b9fe22
treebd00d06f52ddfe4121d6e9e88f96002977482860
parent14f458590a51e9922c03bbb16f7e733db8015f98
Handle PIE in .debug_loclists

Simon pointed out that my recent patches to .debug_loclists caused
some regressions.  After a brief discussion we realized it was because
his system compiler defaults to PIE.

This patch changes this code to unconditionally apply the text offset
here.  It also changes loclist_describe_location to work more like
dwarf2_find_location_expression.

I tested this by running the gdb.dwarf2 tests both with and without
-pie.
gdb/dwarf2/loc.c