]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86: Remove duplicated I386_PCREL_TYPE_P/X86_64_PCREL_TYPE_P
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Jan 2023 19:09:50 +0000 (11:09 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Jan 2023 19:15:25 +0000 (11:15 -0800)
I386_PCREL_TYPE_P and X86_64_PCREL_TYPE_P are defined twice.  Remove
the duplications.

* elfxx-x86.h (I386_PCREL_TYPE_P): Remove duplication.
(X86_64_PCREL_TYPE_P): Likewise.

bfd/elfxx-x86.h

index e3f83b600ef9ea7c4f6ab8b308cc6a9e931d5f16..3b4644ca4789465404625dbdba6b798866b0abec 100644 (file)
 #define PLT_FDE_START_OFFSET   4 + PLT_CIE_LENGTH + 8
 #define PLT_FDE_LEN_OFFSET     4 + PLT_CIE_LENGTH + 12
 
-#define I386_PCREL_TYPE_P(TYPE) ((TYPE) == R_386_PC32)
-#define X86_64_PCREL_TYPE_P(TYPE) \
-  ((TYPE) == R_X86_64_PC8 \
-   || (TYPE) == R_X86_64_PC16 \
-   || (TYPE) == R_X86_64_PC32 \
-   || (TYPE) == R_X86_64_PC64)
-
 /* This must be the same as sframe_get_hdr_size (sfh).  For x86-64, this value
    is the same as sizeof (sframe_header) because there is no SFrame auxilliary
    header.  */