binutils-gdb modified for the FreeChainXenon project
Find a file
H.J. Lu 4a54cb0658 gold: Handle R_X86_64_CODE_4_GOTPCRELX
Handle R_X86_64_CODE_4_GOTPCRELX and convert

	mov	name@GOTPCREL(%rip), %r31

to

	lea	name@GOTPCREL(%rip), %r31

if the instruction is encoded with the REX2 prefix when possible.

elfcpp/

	* x86_64.h (R_X86_64_CODE_4_GOTPCRELX): New.

gold/

	* x86_64.cc (Target_x86_64::can_convert_mov_to_lea): Handle
	R_X86_64_CODE_4_GOTPCRELX.
	(Target_x86_64::Scan::get_reference_flags): Likewise.
	(Target_x86_64::Scan::local): Likewise.
	(Target_x86_64::Scan::possible_function_pointer_reloc): Likewise.
	(Target_x86_64::Scan::global): Likewise.
	(Target_x86_64::Relocate::relocate): Likewise.
	* testsuite/x86_64_mov_to_lea1.s: Add a test for
	R_X86_64_CODE_4_GOTPCRELX.
	* testsuite/x86_64_mov_to_lea2.s: Likewise.
	* testsuite/x86_64_mov_to_lea3.s: Likewise.
	* testsuite/x86_64_mov_to_lea4.s: Likewise.
	* testsuite/x86_64_mov_to_lea5.s: Likewise.
	* testsuite/x86_64_mov_to_lea.sh: Updated.
2023-12-28 08:47:17 -08:00
bfd x86-64: Add R_X86_64_CODE_4_GOTPCRELX 2023-12-28 08:47:17 -08:00
binutils x86: Add NT_X86_SHSTK note 2023-12-28 07:51:14 -08:00
config libiberty: Disable hwcaps for sha1.o 2023-11-30 10:14:30 +01:00
contrib
cpu cpu: cris: drop some unused vars 2023-12-19 05:45:01 -05:00
elfcpp gold: Handle R_X86_64_CODE_4_GOTPCRELX 2023-12-28 08:47:17 -08:00
etc
gas x86-64: Add R_X86_64_CODE_4_GOTPCRELX 2023-12-28 08:47:17 -08:00
gdb gdb: make value::allocate_register_lazy store id of next non-inline frame 2023-12-24 11:16:58 -05:00
gdbserver gdb: change regcache interface to use array_view 2023-12-14 16:04:49 +00:00
gdbsupport Fix build with clang 16 2023-12-22 09:35:11 -07:00
gnulib gnulib: mark configure +x 2023-11-28 12:55:29 -05:00
gold gold: Handle R_X86_64_CODE_4_GOTPCRELX 2023-12-28 08:47:17 -08:00
gprof Finalized intl-update patches 2023-11-15 12:53:04 +00:00
gprofng gprofng: fix build problems on linux-musl 2023-12-22 21:10:36 -08:00
include x86-64: Add R_X86_64_CODE_4_GOTPCRELX 2023-12-28 08:47:17 -08:00
ld x86-64: Add R_X86_64_CODE_4_GOTPCRELX 2023-12-28 08:47:17 -08:00
libbacktrace
libctf libctf: adding CU mappings should be idempotent 2023-11-20 12:31:41 +00:00
libdecnumber
libiberty libiberty: Fix build with GCC < 7 2023-12-05 23:34:01 +01:00
libsframe
opcodes Support APX JMPABS for disassembler 2023-12-28 11:52:52 +00:00
readline
sim sim: pru: Fix emulation of carry bit 2023-12-28 09:09:13 +02:00
texinfo
zlib
.cvsignore
.editorconfig
.gitattributes
.gitignore Finalized intl-update patches 2023-11-15 12:53:04 +00:00
ar-lib
ChangeLog Finalized intl-update patches 2023-11-15 12:53:04 +00:00
compile
config-ml.in
config.guess
config.rpath
config.sub
configure Finalized intl-update patches 2023-11-15 12:53:04 +00:00
configure.ac Finalized intl-update patches 2023-11-15 12:53:04 +00:00
COPYING
COPYING.LIB
COPYING.LIBGLOSS
COPYING.NEWLIB
COPYING3
COPYING3.LIB
depcomp
djunpack.bat
install-sh
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
MAINTAINERS
Makefile.def gettext: disable install, docs targets, libasprintf, threads 2023-12-18 09:39:17 -07:00
Makefile.in gettext: disable install, docs targets, libasprintf, threads 2023-12-18 09:39:17 -07:00
Makefile.tpl
makefile.vms
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
README-maintainer-mode
SECURITY.txt
setup.com
src-release.sh Finalized intl-update patches 2023-11-15 12:53:04 +00:00
symlink-tree
test-driver
ylwrap

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.