]> git.ipfire.org Git - thirdparty/elfutils.git/commit
backends: check_special_symbol _GLOBAL_OFFSET_TABLE_ points inside .got
authorMark Wielaard <mark@klomp.org>
Mon, 30 Dec 2024 00:17:02 +0000 (01:17 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 30 Dec 2024 00:18:14 +0000 (01:18 +0100)
commita4ece6a521c181e43854a5691d8c2828d326a925
tree65a4839b7d536dee2bb87e45c3fdaf8ae9e4350c
parent04c1f79dd690158ec5bccf6e13443cebf491454b
backends: check_special_symbol _GLOBAL_OFFSET_TABLE_ points inside .got

If desthdr is ".got.plt" search for the actual ".got" section and make
sure the _GLOBAL_OFFSET_TABLE_ points to it.

     * backends/riscv_symbol.c (riscv_check_special_symbol): Check
     sname is ".got.plt", find ".got" scn to check sym st_value.

Signed-off-by: Mark Wielaard <mark@klomp.org>
backends/riscv_symbol.c