Skip to content

Commit 0ad0387

Browse files
committed
x86: Remove duplicated I386_PCREL_TYPE_P/X86_64_PCREL_TYPE_P
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.
1 parent 4036ad0 commit 0ad0387

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

bfd/elfxx-x86.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@
9797
#define PLT_FDE_START_OFFSET 4 + PLT_CIE_LENGTH + 8
9898
#define PLT_FDE_LEN_OFFSET 4 + PLT_CIE_LENGTH + 12
9999

100-
#define I386_PCREL_TYPE_P(TYPE) ((TYPE) == R_386_PC32)
101-
#define X86_64_PCREL_TYPE_P(TYPE) \
102-
((TYPE) == R_X86_64_PC8 \
103-
|| (TYPE) == R_X86_64_PC16 \
104-
|| (TYPE) == R_X86_64_PC32 \
105-
|| (TYPE) == R_X86_64_PC64)
106-
107100
/* This must be the same as sframe_get_hdr_size (sfh). For x86-64, this value
108101
is the same as sizeof (sframe_header) because there is no SFrame auxilliary
109102
header. */

0 commit comments

Comments
 (0)