]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86-64: Ignore r_addend for R_X86_64_GLOB_DAT/R_X86_64_JUMP_SLOT
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 21 May 2022 02:21:48 +0000 (19:21 -0700)
committerSunil K Pandey <skpgkp2@gmail.com>
Tue, 19 Jul 2022 05:13:56 +0000 (22:13 -0700)
commitdbb5e618511813ab39d763db32a69ec32a1efb7b
tree0771f9975c2f953486f87bb4007f32b99e572a2f
parentf98a799defa543ffad4dafe33f6ed86ab8215ec1
x86-64: Ignore r_addend for R_X86_64_GLOB_DAT/R_X86_64_JUMP_SLOT

According to x86-64 psABI, r_addend should be ignored for R_X86_64_GLOB_DAT
and R_X86_64_JUMP_SLOT.  Since linkers always set their r_addends to 0, we
can ignore their r_addends.

Reviewed-by: Fangrui Song <maskray@google.com>
(cherry picked from commit f8587a61892cbafd98ce599131bf4f103466f084)
sysdeps/x86_64/dl-machine.h