diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-05-16 04:53:19 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-05-16 08:07:15 -0700 |
commit | e59d4e2378dd933f5067767ebd4e5ec8fa08c025 (patch) | |
tree | d28d63d60f2d8c83f075abe37982288a52de4a45 | |
parent | f8a86fda2eef0fe4656d003a3c824426ab6eccc0 (diff) | |
download | binutils-gdb-users/hjl/relax-plt.tar.gz |
Support call *foo@GOTPCRELAX(%reg)users/hjl/relax-plt
-rw-r--r-- | gas/config/tc-i386.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 2dd72ba5b77..1a99afd1dc4 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -7447,12 +7447,15 @@ lex_got (enum bfd_reloc_code_real *rel, { STRING_COMMA_LEN ("PLT"), { BFD_RELOC_386_PLT32, BFD_RELOC_X86_64_PLT32 }, OPERAND_TYPE_IMM32_32S_DISP32 }, - { STRING_COMMA_LEN ("GOTPLT"), { BFD_RELOC_386_RELAX_PLT32, + { STRING_COMMA_LEN ("GOTPLT"), { _dummy_first_bfd_reloc_code_real, BFD_RELOC_X86_64_GOTPLT64 }, OPERAND_TYPE_IMM32_32S_64_DISP32_64 }, { STRING_COMMA_LEN ("GOTOFF"), { BFD_RELOC_386_GOTOFF, BFD_RELOC_X86_64_GOTOFF64 }, OPERAND_TYPE_IMM64_DISP64 }, + { STRING_COMMA_LEN ("GOTPCRELAX"),{ BFD_RELOC_386_RELAX_PLT32, + BFD_RELOC_X86_64_RELAX_PLT32 }, + OPERAND_TYPE_DISP32 }, { STRING_COMMA_LEN ("GOTPCREL"), { _dummy_first_bfd_reloc_code_real, BFD_RELOC_X86_64_GOTPCREL }, OPERAND_TYPE_IMM32_32S_DISP32 }, |