binutils-gdb/include/elf
Alan Modra 7aba54da42 PowerPC64 @notoc in non-power10 code
R_PPC64_REL24_P9NOTOC is a variant of R_PPC64_REL24_NOTOC for use on
@notoc cals from non-power10 code in the rare case that using such a
construct is useful.  R_PPC64_REL24_P9NOTOC will be emitted by gas
rather than R_PPC64_REL24_NOTOC when @notoc is used in a branch
instruction if power10 instructions are not enabled at that point.
The new relocation tells the linker to not use power10 instructions on
any stub emitted for that branch, unless overridden by
--power10-stubs=yes.

The current linker heuristic of only generating power10 instructions
for stubs if power10-only relocations are detected, continues to be
used.

include/
	* elf/ppc64.h (R_PPC64_REL24_P9NOTOC): Define.
bfd/
	* reloc.c (BFD_RELOC_PPC64_REL24_P9NOTOC): Define.
	* elf64-ppc.c (ppc64_elf_howto_raw): Add entry for new reloc.
	(ppc64_elf_reloc_type_lookup): Handle it.
	(enum ppc_stub_type): Delete.
	(enum ppc_stub_main_type, ppc_stub_sub_type): New.
	(struct ppc_stub_type): New.
	(struct ppc_stub_hash_entry): Use the above new type.
	(struct ppc_link_hash_table): Update stub_count.
	(is_branch_reloc, ppc64_elf_check_relocs),
	(toc_adjusting_stub_needed): Handle new reloc.
	(stub_hash_newfunc, select_alt_stub, ppc_merge_stub),
	(ppc_type_of_stub, plt_stub_size, build_plt_stub),
	(build_tls_get_addr_head, build_tls_get_addr_tail),
	(ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_size_stubs),
	(ppc64_elf_build_stubs, ppc64_elf_relocate_section): Handle new
	reloc.  Modify stub handling to suit new scheme.
	* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.
gas/
	* config/tc-ppc.c (ppc_elf_suffix): When power10 is not enabled
	return BFD_RELOC_PPC64_REL24_P9NOTOC for @notoc.
	(fixup_size, ppc_force_relocation, ppc_fix_adjustable): Handle
	BFD_RELOC_PPC64_REL24_P9NOTOC.
ld/
	* testsuite/ld-powerpc/callstub-2.s: Add .machine power10.
2021-11-15 12:20:13 +10:30
..
aarch64.h
alpha.h
arc-cpu.def
arc-reloc.def
arc.h
arm.h arm: add armv9-a architecture to -march 2021-11-01 10:51:03 +00:00
avr.h
bfin.h
bpf.h
ChangeLog-0415
ChangeLog-9103
common.h readelf: Support RELR in -S and -d and output 2021-11-06 17:11:08 +10:30
cr16.h
cris.h
crx.h
csky.h
d10v.h
d30v.h
dlx.h
dwarf.h
epiphany.h
external.h
fr30.h
frv.h
ft32.h
h8.h
hppa.h
i370.h
i386.h
i860.h
i960.h
ia64.h
internal.h
ip2k.h
iq2000.h
lm32.h
loongarch.h LoongArch bfd support 2021-10-24 21:36:31 +10:30
m32c.h
m32r.h
m68hc11.h
m68k.h
mcore.h
mep.h
metag.h
microblaze.h
mips.h
mmix.h Use bool in include 2021-03-31 10:49:23 +10:30
mn10200.h
mn10300.h
moxie.h
msp430.h
mt.h
nds32.h
nfp.h Remove bfd_stdint.h 2021-03-31 10:49:23 +10:30
nios2.h
or1k.h or1k: Implement relocation R_OR1K_GOT_AHI16 for gotha() 2021-05-06 20:51:24 +09:00
pj.h
ppc64.h PowerPC64 @notoc in non-power10 code 2021-11-15 12:20:13 +10:30
ppc.h
pru.h
reloc-macros.h
riscv.h RISC-V: Add PT_RISCV_ATTRIBUTES and add it to PHDR. 2021-07-06 11:34:36 +08:00
rl78.h
rx.h
s12z.h
s390.h
score.h
sh.h
sparc.h
spu.h
tic6x-attrs.h
tic6x.h
tilegx.h
tilepro.h
v850.h
vax.h
visium.h
vxworks.h
wasm32.h
x86-64.h
xc16x.h
xgate.h
xstormy16.h
xtensa.h Use bool in include 2021-03-31 10:49:23 +10:30
z80.h