binutils-gdb/elfcpp
H.J. Lu 2891b49104 Gold: Don't fail on R_X86_64_[REX_]GOTPCRELX relocations
This patch updates gold to treat the R_X86_64_GOTPCRELX and
R_X86_64_REX_GOTPCRELX relocations proposed in

https://groups.google.com/forum/#!topic/x86-64-abi/n9AWHogmVY0

the same as R_X86_64_GOTPCREL.  FIXME: Gold should perform the
transformations as suggested.

elfcpp/

	* x86_64.h (R_X86_64_GOTPCRELX): New.
	(R_X86_64_REX_GOTPCRELX): Likewise.

gold/

	* x86_64.cc (Target_x86_64<size>::Scan::get_reference_flags):
	Treat R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX the same
	as R_X86_64_GOTPCREL.
	(Target_x86_64<size>::Scan::local): Likewise.
	(Target_x86_64<size>::Scan::possible_function_pointer_reloc):
	Likewise.
	(Target_x86_64<size>::Scan::global): Likewise.
	(Target_x86_64<size>::Relocate::relocate): Likewise.
	(Target_x86_64<size>::Relocatable_size_for_reloc::get_size_for_reloc):
	Likewise.
2015-10-22 04:56:57 -07:00
..
aarch64.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
arm.h Add AArch32 support for arm gold linker. 2015-04-07 17:21:27 -07:00
ChangeLog Gold: Don't fail on R_X86_64_[REX_]GOTPCRELX relocations 2015-10-22 04:56:57 -07:00
dwarf.h [gold] Recognize DWARF5/GCC5 DW_LANG_Fortran03 and DW_LANG_Fortran08. 2015-02-17 08:08:24 +01:00
elfcpp_file.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfcpp_internal.h Change ch_type to Elf_Word in struct Chdr_data<64> 2015-10-04 06:14:36 -07:00
elfcpp_swap.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
elfcpp.h Add EM_IAMCU support to gold 2015-10-13 09:02:41 -07:00
i386.h Gold: Don't fail on R_386_GOT32X relocation 2015-10-22 04:56:49 -07:00
mips.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
powerpc.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
README ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
sparc.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tilegx.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
x86_64.h Gold: Don't fail on R_X86_64_[REX_]GOTPCRELX relocations 2015-10-22 04:56:57 -07:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

elfcpp is a C++ library for reading and writing ELF information.  This
was written to support gold, the ELF linker, and may not be generally
useful.

elfcpp does not do file I/O.  It deals only with offsets and memory
data.

For efficiency, most accessors are templates with two arguments: the
ELF file class (32 or 64 bits) and the endianness.


Copyright (C) 2012-2015 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.