public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] x86: Remove duplicated I386_PCREL_TYPE_P/X86_64_PCREL_TYPE_P
@ 2023-01-04 19:15 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2023-01-04 19:15 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0ad0387c85fb38569731cb800e7832a0ba691b51

commit 0ad0387c85fb38569731cb800e7832a0ba691b51
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jan 4 11:09:50 2023 -0800

    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.

Diff:
---
 bfd/elfxx-x86.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h
index e3f83b600ef..3b4644ca478 100644
--- a/bfd/elfxx-x86.h
+++ b/bfd/elfxx-x86.h
@@ -97,13 +97,6 @@
 #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.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-04 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 19:15 [binutils-gdb] x86: Remove duplicated I386_PCREL_TYPE_P/X86_64_PCREL_TYPE_P H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).