binutils-gdb/ld/emultempl
Fangrui Song 50980ba351 RISC-V: Add --[no-]relax-gp to ld
--relax enables all relaxations.  --no-relax-gp disables GP relaxation to
allow measuring its effect.

The option can test effectiveness of GP relaxation and support some ABI
variants that use GP for other purposes.

Link: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/issues/298

bfd/
    * elfnn-riscv.c (struct riscv_elf_link_hash_table): Add params.
    (riscv_elfNN_set_options): New.
    (riscv_info_to_howto_rela): Check relax_gp.
    (_bfd_riscv_relax_section): Likewise.
    * elfxx-riscv.h (struct riscv_elf_params): New.
    (riscv_elf32_set_options): New.
    (riscv_elf64_set_options): New.
ld/
    * emultempl/riscvelf.em: Add option parsing.
    * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
    * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
    * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
      used together.
2023-02-23 22:11:14 -08:00
..
aarch64elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
aix.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
alphaelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
arclinux.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
armelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
astring.sed
avrelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
beos.em Tidy pe flag in coff_data 2023-01-06 21:06:15 +10:30
bfin.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cr16elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
crxelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
cskyelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-generic.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf-x86.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
emulation.em
epiphanyelf_4x4.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
genelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
generic.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
hppaelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ia64elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
irix.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
loongarchelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
m68hc1xelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
m68kelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
metagelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mipself.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mmix-elfnmmo.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mmixelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
mmo.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
msp430.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
nds32elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
needrelax.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
netbsd.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
nios2elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ostring.sed
pdp11.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pe.em Call bfd_close_all_done in ld_cleanup 2023-01-27 15:47:09 +10:30
pep.em Call bfd_close_all_done in ld_cleanup 2023-01-27 15:47:09 +10:30
ppc32elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ppc64elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
pruelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
README Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
riscvelf.em RISC-V: Add --[no-]relax-gp to ld 2023-02-23 22:11:14 -08:00
rxelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
rxlinux.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
s390.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
scoreelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
solaris2-x86.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
solaris2.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
spu_icache.o_c
spu_icache.S
spu_ovl.o_c
spu_ovl.S Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
spuelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
tic6xdsbt.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ticoff.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
v850elf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
vanilla.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
vms.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
vxworks.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
xtensaelf.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
z80.em Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30

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.

The files in this directory are sourced by genscripts.sh, after
setting some variables to substitute in, to produce
C source files that contain jump tables for each emulation.

Copyright (C) 2012-2023 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.