diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-09-02 11:10:51 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-09-02 11:10:51 -0700 |
commit | aa595247af472bb95bcd36c166335c851e3e752d (patch) | |
tree | b0389ff65693d81a02a4762ae0b76283690d07b8 /bfd/elfxx-x86.h | |
parent | b9ce864ca8dcd0e52e2b7c655603b181fa19cfbf (diff) | |
download | gdb-aa595247af472bb95bcd36c166335c851e3e752d.zip gdb-aa595247af472bb95bcd36c166335c851e3e752d.tar.gz gdb-aa595247af472bb95bcd36c166335c851e3e752d.tar.bz2 |
x86: Define PLT_CIE_LENGTH and PLT_FDE_* in elfxx-x86.h
Since PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET and
PLT_FDE_LEN_OFFSET are identical in elf32-i386.c and elf64-x86-64.c,
they can be defined in elfxx-x86.h.
* elf32-i386.c (PLT_CIE_LENGTH, PLT_FDE_LENGTH,
PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Moved to ...
* elfxx-x86.h (PLT_CIE_LENGTH, PLT_FDE_LENGTH,
PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Here.
* elf64-x86-64.c (PLT_CIE_LENGTH, PLT_FDE_LENGTH,
PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Removed.
Diffstat (limited to 'bfd/elfxx-x86.h')
-rw-r--r-- | bfd/elfxx-x86.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h index c694daf..00d38de 100644 --- a/bfd/elfxx-x86.h +++ b/bfd/elfxx-x86.h @@ -26,6 +26,11 @@ #include "bfd_stdint.h" #include "hashtab.h" +#define PLT_CIE_LENGTH 20 +#define PLT_FDE_LENGTH 36 +#define PLT_FDE_START_OFFSET 4 + PLT_CIE_LENGTH + 8 +#define PLT_FDE_LEN_OFFSET 4 + PLT_CIE_LENGTH + 12 + #define ABI_64_P(abfd) \ (get_elf_backend_data (abfd)->s->elfclass == ELFCLASS64) |