diff options
Diffstat (limited to 'include/elf')
-rw-r--r-- | include/elf/ppc.h | 6 | ||||
-rw-r--r-- | include/elf/ppc64.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/include/elf/ppc.h b/include/elf/ppc.h index 21ed671..6790cd7 100644 --- a/include/elf/ppc.h +++ b/include/elf/ppc.h @@ -73,10 +73,14 @@ START_RELOC_NUMBERS (elf_ppc_reloc_type) RELOC_NUMBER (R_PPC_ADDR30, 37) #ifndef RELOC_MACROS_GEN_FUNC -/* Fake relocations for branch stubs, only used internally by ld. */ +/* Relocations only used internally by ld. If you need to use these + reloc numbers, you can change them to some other unused value + without affecting the ABI. They will never appear in object files. */ RELOC_NUMBER (R_PPC_RELAX, 48) RELOC_NUMBER (R_PPC_RELAX_PLT, 49) RELOC_NUMBER (R_PPC_RELAX_PLTREL24, 50) +/* Reloc only used internally by gas. As above, value is unimportant. */ + RELOC_NUMBER (R_PPC_16DX_HA, 51) #endif /* Relocs added to support TLS. */ diff --git a/include/elf/ppc64.h b/include/elf/ppc64.h index 307d4c2..43090dd 100644 --- a/include/elf/ppc64.h +++ b/include/elf/ppc64.h @@ -155,8 +155,12 @@ START_RELOC_NUMBERS (elf_ppc64_reloc_type) RELOC_NUMBER (R_PPC64_ENTRY, 118) #ifndef RELOC_MACROS_GEN_FUNC -/* Fake relocation only used internally by ld. */ +/* Relocation only used internally by ld. If you need to use these + reloc numbers, you can change them to some other unused value + without affecting the ABI. They will never appear in object files. */ RELOC_NUMBER (R_PPC64_LO_DS_OPT, 128) +/* Reloc only used internally by gas. As above, value is unimportant. */ + RELOC_NUMBER (R_PPC64_16DX_HA, 129) #endif /* Power9 split rel16 for addpcis. */ |