aboutsummaryrefslogtreecommitdiff
path: root/include/elf/ppc.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-22 22:01:56 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-22 22:01:56 +0000
commit86b9b00b99d5ac8ed4de39ad7ea6a7a7694051f3 (patch)
tree92ba44bef3990fdb36d709254981b3e948e04069 /include/elf/ppc.h
parent133a451e9f1c3096fb7269cb063a88ce4067850f (diff)
downloadgdb-86b9b00b99d5ac8ed4de39ad7ea6a7a7694051f3.zip
gdb-86b9b00b99d5ac8ed4de39ad7ea6a7a7694051f3.tar.gz
gdb-86b9b00b99d5ac8ed4de39ad7ea6a7a7694051f3.tar.bz2
Rewrite relocation definition using macros.
Diffstat (limited to 'include/elf/ppc.h')
-rw-r--r--include/elf/ppc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/elf/ppc.h b/include/elf/ppc.h
index 1343b32..c577fdb 100644
--- a/include/elf/ppc.h
+++ b/include/elf/ppc.h
@@ -27,6 +27,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef _ELF_PPC_H
#define _ELF_PPC_H
+/* Unless otherwise told we define an enum with the relocation entries. */
+#ifndef START_RELOC_NUMBERS
+# define START_RELOC_NUMBERS(name) enum name {
+# define RELOC_NUMBER(name, number) name = number ,
+# define END_RELOC_NUMBERS };
+#endif
+
/* Relocations. */
START_RELOC_NUMBERS (elf_ppc_reloc_type)
RELOC_NUMBER (R_PPC_NONE, 0)