aboutsummaryrefslogtreecommitdiff
path: root/include/elf/mips.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/elf/mips.h')
-rw-r--r--include/elf/mips.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/elf/mips.h b/include/elf/mips.h
index c3efe57..0c023db 100644
--- a/include/elf/mips.h
+++ b/include/elf/mips.h
@@ -27,6 +27,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef _ELF_MIPS_H
#define _ELF_MIPS_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
+
/* Relocation types. */
START_RELOC_NUMBERS (elf_mips_reloc_type)
RELOC_NUMBER (R_MIPS_NONE, 0)