aboutsummaryrefslogtreecommitdiff
path: root/include/elf/ppc.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-06-22 00:52:20 +0000
committerAlan Modra <amodra@gmail.com>2009-06-22 00:52:20 +0000
commitceaf50a2f96d755dc9287e347548d8228cb29619 (patch)
treef8eb1fe2ca7e41d27d430b88663e2a53d0ad7fa6 /include/elf/ppc.h
parentb33bafa0d71c6f92b0d639466eb13af58989bfb7 (diff)
downloadgdb-ceaf50a2f96d755dc9287e347548d8228cb29619.zip
gdb-ceaf50a2f96d755dc9287e347548d8228cb29619.tar.gz
gdb-ceaf50a2f96d755dc9287e347548d8228cb29619.tar.bz2
include/elf/
* ppc.h (R_PPC_RELAX*): Define as enum. bfd/ * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch. * elf32-v850.c (v850_elf_relocate_section): Warning fix.
Diffstat (limited to 'include/elf/ppc.h')
-rw-r--r--include/elf/ppc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/elf/ppc.h b/include/elf/ppc.h
index 06df630..8f4ed9e 100644
--- a/include/elf/ppc.h
+++ b/include/elf/ppc.h
@@ -122,11 +122,13 @@ START_RELOC_NUMBERS (elf_ppc_reloc_type)
RELOC_NUMBER (R_PPC_EMB_BIT_FLD, 115)
RELOC_NUMBER (R_PPC_EMB_RELSDA, 116)
+#ifndef RELOC_MACROS_GEN_FUNC
/* Fake relocations for branch stubs, only used internally by ld. */
-#define R_PPC_RELAX32 245
-#define R_PPC_RELAX32PC 246
-#define R_PPC_RELAX32_PLT 247
-#define R_PPC_RELAX32PC_PLT 248
+ RELOC_NUMBER (R_PPC_RELAX32, 245)
+ RELOC_NUMBER (R_PPC_RELAX32PC, 246)
+ RELOC_NUMBER (R_PPC_RELAX32_PLT, 247)
+ RELOC_NUMBER (R_PPC_RELAX32PC_PLT, 248)
+#endif
/* These are GNU extensions used in PIC code sequences. */
RELOC_NUMBER (R_PPC_REL16, 249)