]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Properly handle zero DT_RELA/DT_REL values
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 4 Jan 2022 13:47:21 +0000 (05:47 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Apr 2022 17:16:11 +0000 (10:16 -0700)
commit60196d2ef2850f222c7c93818ccb4d9cdbd77276
tree2e2d678662bc8bcd7aa9075505dd8c792cdde348
parente895cff59aa562cad83fa0fdd187bfe4b45312d5
elf: Properly handle zero DT_RELA/DT_REL values

With DT_RELR, there may be no relocations in DT_RELA/DT_REL and their
entry values are zero.  Don't relocate DT_RELA/DT_REL and update the
combined relocation start address if their entry values are zero.
elf/dynamic-link.h
elf/get-dynamic-info.h