diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-02-03 11:48:16 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-02-03 11:51:18 -0800 |
commit | 8d26ee1cd166b8565df17c82e7ecc9d35b5a367f (patch) | |
tree | 90bf445a1746d9ab2a0be0b819ca26b0e92ce946 /bfd | |
parent | 9d5d41c405a7ad4c843e35d899c93cb7dd36d291 (diff) | |
download | gdb-8d26ee1cd166b8565df17c82e7ecc9d35b5a367f.zip gdb-8d26ee1cd166b8565df17c82e7ecc9d35b5a367f.tar.gz gdb-8d26ee1cd166b8565df17c82e7ecc9d35b5a367f.tar.bz2 |
x86: Update X86_64_GOT_TYPE_P to cover more GOT relocations
Add R_X86_64_GOT32, R_X86_64_GOT64, R_X86_64_GOTPCREL64 and
R_X86_64_GOTPLT64 to X86_64_GOT_TYPE_P to cover more GOT relocations.
PR ld/28858
* elfxx-x86.h (X86_64_GOT_TYPE_P): Add R_X86_64_GOT32,
R_X86_64_GOT64, R_X86_64_GOTPCREL64 and R_X86_64_GOTPLT64.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elfxx-x86.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h index 4b5784c..3219f36 100644 --- a/bfd/elfxx-x86.h +++ b/bfd/elfxx-x86.h @@ -50,7 +50,11 @@ #define X86_64_GOT_TYPE_P(TYPE) \ ((TYPE) == R_X86_64_GOTPCREL \ || (TYPE) == R_X86_64_GOTPCRELX \ - || (TYPE) == R_X86_64_REX_GOTPCRELX) + || (TYPE) == R_X86_64_REX_GOTPCRELX \ + || (TYPE) == R_X86_64_GOT32 \ + || (TYPE) == R_X86_64_GOT64 \ + || (TYPE) == R_X86_64_GOTPCREL64 \ + || (TYPE) == R_X86_64_GOTPLT64) #define I386_GOT_TYPE_P(TYPE) \ ((TYPE) == R_386_GOT32 || (TYPE) == R_386_GOT32X) #define X86_GOT_TYPE_P(IS_X86_64, TYPE) \ |