Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <modra@gmail.com>2009-06-22 04:52:20 +0400
committerAlan Modra <modra@gmail.com>2009-06-22 04:52:20 +0400
commite20afc07b08dc461fcaf71caa4cd1eda99af44bc (patch)
treebc8d6df91843de030b1c0d9d8eef64f8f5615f6d
parenta8481dca7183ece7cc8cbbfb66b3fe7af7c76df7 (diff)
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.
-rw-r--r--include/elf/ChangeLog4
-rw-r--r--include/elf/ppc.h10
2 files changed, 10 insertions, 4 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index a8821a2e1..99805f1c7 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-22 Alan Modra <amodra@bigpond.net.au>
+
+ * ppc.h (R_PPC_RELAX*): Define as enum.
+
2009-06-11 Anthony Green <green@moxielogic.org>
* moxie.h (R_MOXIE_PCREL10): New.
diff --git a/include/elf/ppc.h b/include/elf/ppc.h
index 06df6303e..8f4ed9e18 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)