binutils-gdb/ld/emulparams
Nelson Chu 02dd9d2568 RISC-V: Support GNU indirect functions.
Generally, glibc dynamic linker should have two ways to deal with ifunc
- one is to handle the IRELATIVE relocations for the non-preemtive ifunc
symbols, the other is to handle the R_RISCV_32/64 and R_RISCV_JUMP_SLOT
relocations with the STT_IFUNC preemtive symbols.  No matter which method
is used, both of them should get the resolved ifunc symbols at runtime.
Therefore, linker needs to generate the correct dynamic relocations for
ifunc to make sure the the dynamic linker works well.  For now, there are
thirteen relocations are supported for ifunc in GNU ld,

* R_RISCV_CALL and R_RISCV_CALL_PLT:
The RISC-V compiler won't generate R_RISCV_JAL directly to jump to an
ifunc.  Besides, we disable the relaxations for the relocation referenced
to ifunc, so just handling the R_RISCV_CALL and R_RISCV_CALL_PLT should be
enough.  Linker should generate a .plt entry and a .got.plt entry for it,
and also needs to insert a dynamic IRELATIVE in the .got.plt enrty, or
insert a R_RISCV_JUMP_SLOT when generating shared library.

* R_RISCV_PCREL_HI20 and R_RISCV_PCREL_LO12_I/S:
LA/LLA pattern with local fPIC ifunc symbol, or any non-PIC ifunc symbol.
The PC-relative relocation.  The current linker will deal with them in
the same way as R_RISCV_CALL_PLT.

* R_RISCV_GOT_HI20 and R_RISCV_PCREL_LO12_I/S:
LA pattern with global PIC ifunc symbol.  Linker should insert a dynamic
IRELATIVE in the .got entry, or insert a R_RISCV_32/64 when generating
shared library.

* R_RISCV_32 and R_RISCV_64:
Store the ifunc symbol into the data section.  Linker should insert a
dynamic IRELATIVE in the data section, or insert a R_RISCV_32/64 when
generating shared library.

* R_RISCV_HI20 and R_RISCV_LO12_I/S:
The LUI + ADDI/LW/SW patterns.  The absolute access relocation.  The
medlow model without the -fPIC compiler option should generate them.
The ld ifunc testsuites "Build pr23169a" and "Build pr23169d" need the
relocations, they are in the ld/testsuite/ld-ifunc/, and need compiler
support.

However, we also made some optimizations with reference to x86,

* If GOT and PLT relocations refer to the same ifunc symbol when generating
pie, then they can actually share a .got entry without creating two entries
to store the same value and relocation.

* If GOT, PLT and DATA relocations refer to the same ifunc symbol when
generating position dependency executable, then linker will fill the address
of .plt entry into the corresponding .got entry and data section, without
insert any dynamic relocations for the GOT and DATA relocations.

For the ifunc testcases, there are three types of them,

1. ifunc-reloc-*: Only check the single type of relocation refers to
ifunc symbol.
* ifunc-reloc-call: R_RISCV_CALL and R_RISCV_CALL_PLT.
* ifunc-reloc-data: R_RISCV_32 and R_RISCV_64.
* ifunc-reloc-got: R_RISCV_GOT_HI20 and R_RISCV_PCREL_LO_I/S.
* ifunc-reloc-pcrel: R_RISCV_PCREL_HI20 and R_RISCV_PCREL_LO_I/S.

2. ifunc-[nonplt|plt]-*: If we don't have PLT relocs, then don't need to
create the PLT and it's .plt entries.
* ifunc-nonplt: Combine R_RISCV_GOT_HI20 and R_RISCV_32/64.
* ifunc-plt: Combine all ifunc relocations.

3. ifunc-seperate-*: If we link the ifunc caller and resolver into the
same module (link the objects), then the results are the same as the
ifunc-reloc-* and ifunc-[noplt|plt]-* testcases.  Consider the cases that
the ifunc callers and resolver are in the different modules, that is, we
compile the ifunc resolver to the shared library first, and then link it
with the ifunc callers.  The output of ifunc callers should be the same as
the normal STT_FUNC cases, and the shared ifunc resolver should define the
symbols as STT_IFUNC.

The R_RISCV_PCREL_HI20 reloc is special.  It should be linked and resolved
locally, so if the ifunc resolver is defined in other modules (other shared
libraries), then the R_RISCV_PCREL_HI20 is unresolvable, and linker should
issue an unresolvable reloc error.

	bfd/
	* elfnn-riscv.c: Include "objalloc.h" since we need objalloc_alloc.
	(riscv_elf_link_hash_table): Add loc_hash_table and loc_hash_memory
	for local STT_GNU_IFUNC symbols.
	(riscv_elf_got_plt_val): Removed.
	(riscv_elf_local_htab_hash, riscv_elf_local_htab_eq): New functions.
	Use to compare local hash entries.
	(riscv_elf_get_local_sym_hash): New function.  Find a hash entry for
	local symbol, and create a new one if needed.
	(riscv_elf_link_hash_table_free): New function.  Destroy an riscv
	elf linker hash table.
	(riscv_elf_link_hash_table_create): Create hash table for local ifunc.
	(riscv_elf_check_relocs): Create a fake global symbol to track the
	local ifunc symbol.  Add support to check and handle the relocations
	reference to ifunc symbols.
	(allocate_dynrelocs): Let allocate_ifunc_dynrelocs and
	allocate_local_ifunc_dynrelocs to handle the ifunc symbols if they
	are defined and referenced in a non-shared object.
	(allocate_ifunc_dynrelocs): New function.  Allocate space in .plt,
	.got and associated reloc sections for ifunc dynamic relocs.
	(allocate_local_ifunc_dynrelocs): Likewise, but for local ifunc
	dynamic relocs.
	(riscv_elf_relocate_section): Add support to handle the relocation
	referenced to ifunc symbols.
	(riscv_elf_size_dynamic_sections): Updated.
	(riscv_elf_adjust_dynamic_symbol): Updated.
	(riscv_elf_finish_dynamic_symbol): Finish up the ifunc handling,
	including fill the PLT and GOT entries for ifunc symbols.
	(riscv_elf_finish_local_dynamic_symbol): New function.  Called by
	riscv_elf_finish_dynamic_symbol to handle the local ifunc symbols.
	(_bfd_riscv_relax_section): Don't do the relaxation for ifunc.
	* elfxx-riscv.c: Add R_RISCV_IRELATIVE.
	* configure.ac: Link elf-ifunc.lo to use the generic ifunc support.
	* configure: Regenerated.

	include/
	* elf/riscv.h: Add R_RISCV_IRELATIVE to 58.

	ld/
	* emulparams/elf32lriscv-defs.sh: Add IREL_IN_PLT.
	* testsuite/ld-ifunc/ifunc.exp: Enable ifunc tests for RISC-V.
	* testsuite/ld-riscv-elf/ld-riscv-elf.exp (run_dump_test_ifunc):
	New dump test for ifunc.  There are two arguments, 'target` and
	`output`.  The `target` is rv32 or rv64, and the `output` is used
	to choose which output you want to test (exe, pie or .so).
	* testsuite/ld-riscv-elf/ifunc-reloc-call-01.s: New testcase.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-01.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-01-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-01-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-01-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-02.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-02.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-02-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-02-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-call-02-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-data.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-data.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-data-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-data-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-data-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-got.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-got.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-got-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-got-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-got-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-pcrel.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-pcrel.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-pcrel-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-nonplt.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-nonplt.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-nonplt-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-nonplt-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-nonplt-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-01.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-01.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-01-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-01-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-01-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-02.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-02.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-02-exe.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-02-pic.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-plt-02-pie.rd: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-resolver.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-caller.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-exe.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-pic.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-pie.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-caller-pcrel.s: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pic.d: Likewise.
	* testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pie.d: Likewise.
2020-10-16 10:11:18 +08:00
..
aarch64cloudabi.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
aarch64cloudabib.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
aarch64elf.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
aarch64elf32.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
aarch64elf32b.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
aarch64elfb.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
aarch64fbsd.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
aarch64fbsdb.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
aarch64linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
aarch64linux32.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
aarch64linux32b.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
aarch64linuxb.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
aix5ppc.sh
aix5rs6.sh
aixppc.sh
aixrs6.sh
alpha.sh
alphavms.sh
arc-endianness.sh ld whitespace fixes 2017-10-12 23:30:43 +10:30
arc-nps.sh ELF ld -r scripts 2018-10-13 20:33:23 +10:30
arcelf.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
arclinux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
arclinux_nps.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
arcv2elf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
arcv2elfx.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
arm_wince_pe.sh
armelf.sh PR25243, static linking with exceptions and iostream is broken on ARM 2019-12-05 17:35:13 +10:30
armelf_fbsd.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
armelf_fuchsia.sh PR25243, static linking with exceptions and iostream is broken on ARM 2019-12-05 17:35:13 +10:30
armelf_linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
armelf_linux_eabi.sh PR25243, static linking with exceptions and iostream is broken on ARM 2019-12-05 17:35:13 +10:30
armelf_linux_fdpiceabi.sh PR25243, static linking with exceptions and iostream is broken on ARM 2019-12-05 17:35:13 +10:30
armelf_nacl.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelf_nbsd.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
armelf_phoenix.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
armelf_vxworks.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
armelfb.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelfb_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelfb_fuchsia.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelfb_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelfb_linux_eabi.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelfb_linux_fdpiceabi.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelfb_nacl.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armelfb_nbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
armnto.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
armpe.sh
armsymbian.sh PR25243, static linking with exceptions and iostream is broken on ARM 2019-12-05 17:35:13 +10:30
avr1.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr2.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr3.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr4.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr5.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr6.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr25.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr31.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr35.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avr51.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrtiny.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrxmega1.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrxmega2.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrxmega3.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrxmega4.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrxmega5.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrxmega6.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
avrxmega7.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
call_nop.sh x86: Move x86-specific linker options to elf_linker_x86_params 2019-04-06 07:25:31 -07:00
cet.sh x86: Add -z cet-report=[none|warning|error] 2019-04-11 08:21:30 -07:00
crisaout.sh
criself.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
crislinux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
cskyelf.sh CSKY: Support attribute section. 2020-08-28 17:23:24 +08:00
cskyelf_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
d10velf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
d30v_e.sh
d30v_o.sh
d30velf.sh
dynamic_undefined_weak.sh Implement -z dynamic-undefined-weak 2017-04-19 20:39:52 +09:30
elf32_dlx.sh
elf32_sparc.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32_sparc_sol2.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32_sparc_vxworks.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32_spu.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32_tic6x_be.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32_tic6x_elf_be.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32_tic6x_elf_le.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32_tic6x_le.sh PR25243, static linking with exceptions and iostream is broken on ARM 2019-12-05 17:35:13 +10:30
elf32_tic6x_linux_be.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32_tic6x_linux_le.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32_x86_64.sh x86: Support GNU_PROPERTY_X86_ISA_1_V[234] marker 2020-10-09 05:13:26 -07:00
elf32am33lin.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32b4300.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32bfin.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
elf32bfinfd.sh Unset EMBEDDED rather than assigning as empty 2019-11-05 13:58:01 +10:30
elf32bmip.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32bmipn32-defs.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32bmipn32.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32bsmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32btsmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32btsmip_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32btsmipn32.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32btsmipn32_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32cr16.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32crx.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32ebmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ebmipvxworks.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32elmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32elmipvxworks.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32epiphany.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32epiphany_4x4.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32fr30.sh
elf32frv.sh Define various symbols conditionally in shared libraries 2018-06-08 20:17:34 +09:30
elf32frvfd.sh Unset EMBEDDED rather than assigning as empty 2019-11-05 13:58:01 +10:30
elf32ft32.sh FT32 initial support 2015-01-28 16:25:18 +10:30
elf32ip2k.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32iq10.sh
elf32iq2000.sh
elf32l4300.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lm32.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32lm32fd.sh Unset EMBEDDED rather than assigning as empty 2019-11-05 13:58:01 +10:30
elf32lmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lppc.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lppclinux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lppcnto.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lppcsim.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lr5900.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lr5900n32.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lriscv-defs.sh RISC-V: Support GNU indirect functions. 2020-10-16 10:11:18 +08:00
elf32lriscv.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lriscv_ilp32.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lriscv_ilp32f.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32lsmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ltsmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ltsmip_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ltsmipn32.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ltsmipn32_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32m32c.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32mb_linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32mbel_linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32mcore.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32mep.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32metag.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32microblaze.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
elf32microblazeel.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32mipswindiss.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32moxie.sh 2019-12-18 Anthony Green <green@moxielogic.com> 2019-12-18 14:55:35 -05:00
elf32mt.sh Move .stack before debug sections 2017-02-20 19:33:28 +10:30
elf32or1k.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32or1k_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ppc.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ppc_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ppccommon.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32ppclinux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ppcnto.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ppcsim.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ppcvxworks.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32ppcwindiss.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32rl78.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32rx.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32rx_linux.sh ld: Add rx-linux emulation. gas: Change ELF flags initial value in rx-linux 2020-04-30 13:35:37 +01:00
elf32tilegx.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32tilegx_be.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf32tilepro.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32vax.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32visium.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32xc16x.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32xc16xl.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32xc16xs.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32xstormy16.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32xtensa.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf32z80.sh Add support for the GBZ80 and Z80N variants of the Z80 architecture, and add DWARF debug info support to the Z80 assembler. 2020-02-07 14:53:46 +00:00
elf64_aix.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64_ia64.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64_ia64_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64_ia64_vms.sh
elf64_s390.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64_sparc.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64_sparc_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64_sparc_sol2.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64alpha.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64alpha_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64alpha_nbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64bmip-defs.sh Add support for a MIPS specific .MIPS.xhash section. 2019-08-09 11:06:37 +01:00
elf64bmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64bpf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64btsmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64btsmip_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64hppa.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64lppc.sh PR13616, linker should pad executable sections with nops, not zeros 2019-10-16 23:07:27 +10:30
elf64lppc_fbsd.sh PR26667, Add powerpc64le-*-freebsd* support 2020-10-06 17:09:27 +10:30
elf64lriscv-defs.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64lriscv.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64lriscv_lp64.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64lriscv_lp64f.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64ltsmip.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64ltsmip_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64mmix.sh ld: optionally emit _etext last, before .data 2020-07-19 06:08:07 +02:00
elf64ppc.sh PR13616, linker should pad executable sections with nops, not zeros 2019-10-16 23:07:27 +10:30
elf64ppc_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf64rdos.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64tilegx.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf64tilegx_be.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf_fbsd.sh
elf_i386.sh x86: Support GNU_PROPERTY_X86_ISA_1_V[234] marker 2020-10-09 05:13:26 -07:00
elf_i386_be.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf_i386_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf_i386_ldso.sh ld: Set COMMONPAGESIZE for i386 Solaris 2020-03-28 05:06:58 -07:00
elf_i386_sol2.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf_i386_vxworks.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf_iamcu.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf_k1om.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf_k1om_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf_l1om.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf_l1om_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf_nacl.sh
elf_s390.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
elf_x86_64.sh x86: Support GNU_PROPERTY_X86_ISA_1_V[234] marker 2020-10-09 05:13:26 -07:00
elf_x86_64_cloudabi.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf_x86_64_fbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
elf_x86_64_sol2.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
extern_protected_data.sh [x86] Resolve non-PIC undefweak symbols in executable 2016-02-26 04:55:57 -08:00
h8300elf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
h8300elf_linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
h8300helf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300helf_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300hnelf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300self.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300self_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300snelf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300sxelf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300sxelf_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
h8300sxnelf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
hppa64linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
hppaelf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
hppalinux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
hppanbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
hppaobsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
i386aout.sh
i386beos.sh
i386bsd.sh
i386go32.sh
i386lynx.sh Unset EMBEDDED rather than assigning as empty 2019-11-05 13:58:01 +10:30
i386moss.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
i386msdos.sh
i386nto.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
i386pe.sh
i386pe_posix.sh
i386pep.sh
m9s12zelf.sh s12z genelf.em 2019-05-30 01:01:42 +09:30
m32relf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
m32relf_linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
m32rlelf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
m32rlelf_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
m68hc11elf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
m68hc11elfb.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
m68hc12elf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
m68hc12elfb.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
m68kelf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
m68kelfnbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
mcorepe.sh
mmo.sh
mn10200.sh
mn10300.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
moxiebox.sh
msp430elf.sh Fix the execution of the MSP430 simulator testsuite. 2016-01-05 16:43:58 +00:00
msp430X.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
nds32belf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
nds32belf16m.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
nds32belf_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
nds32elf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
nds32elf16m.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
nds32elf_linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
nios2elf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
nios2linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
ns32knbsd.sh
pc532macha.sh
pdp11.sh Fixes for the magic number used in PDP11 AOUT binaries. 2020-04-14 14:41:27 +01:00
pjelf.sh
pjlelf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
plt_unwind.sh Add ld_list_options 2015-04-08 04:55:23 -07:00
ppcmacos.sh
pruelf.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
README Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
reloc_overflow.sh x86: Move x86-specific linker options to elf_linker_x86_params 2019-04-06 07:25:31 -07:00
score3_elf.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
score7_elf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
sh.sh
shelf.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
shelf_fd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
shelf_linux.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
shelf_nbsd.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
shelf_nto.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
shelf_uclinux.sh Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED." 2019-11-08 21:07:43 +10:30
shelf_vxworks.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
shl.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
shlelf.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
shlelf_fd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
shlelf_linux.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
shlelf_nbsd.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
shlelf_nto.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
shlelf_vxworks.sh Automatic makefile dependencies for generated ld/e*.c 2019-04-13 12:13:22 +09:30
shpe.sh
solaris2.sh Solaris PIE support 2015-09-22 11:12:51 +02:00
static.sh x86: Check static link of dynamic objects 2020-03-13 07:39:06 -07:00
tic3xcoff.sh
tic3xcoff_onchip.sh
tic4xcoff.sh
tic30coff.sh
tic54xcoff.sh
v850.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
v850_rh850.sh Rename elf32.em to elf.em 2019-09-11 13:45:18 +09:30
vanilla.sh
vaxnbsd.sh
vxworks.sh ld whitespace fixes 2017-10-12 23:30:43 +10:30
x86-64-level.sh x86: Support GNU_PROPERTY_X86_ISA_1_V[234] marker 2020-10-09 05:13:26 -07:00
xgateelf.sh xgate cleanup 2018-07-10 23:59:07 +09:30
z80.sh
z8001.sh
z8002.sh

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 read by genscripts.sh as shell commands.
They set parameters for the emulations.

Copyright (C) 2012-2020 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.