summaryrefslogtreecommitdiff
path: root/misc/buildroot/toolchain/nxflat/readnxflat.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/buildroot/toolchain/nxflat/readnxflat.c')
-rw-r--r--misc/buildroot/toolchain/nxflat/readnxflat.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/misc/buildroot/toolchain/nxflat/readnxflat.c b/misc/buildroot/toolchain/nxflat/readnxflat.c
index dd56b448b..11d01882d 100644
--- a/misc/buildroot/toolchain/nxflat/readnxflat.c
+++ b/misc/buildroot/toolchain/nxflat/readnxflat.c
@@ -98,12 +98,18 @@ static const char unknown[] = "UNKNOWN";
static const char hdr_reloc_rel32i[] = "RELOC_REL32I";
static const char hdr_reloc_rel32d[] = "RELOC_REL32D";
-static const char hdr_reloc_abs32[] = "RELOC_ABS32";
+#ifdef NXFLAT_RELOC_TYPE_REL32ID
+static const char hdr_reloc_rel32id[] = "RELOC_REL32ID";
+#endif
static const char *reloc_type_string[] = {
hdr_reloc_rel32i,
hdr_reloc_rel32d,
- hdr_reloc_abs32,
+#ifdef NXFLAT_RELOC_TYPE_REL32ID
+ hdr_reloc_rel32id,
+#else
+ unknown,
+#endif
unknown
};