summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/rld-rap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/rld-rap.cpp')
-rw-r--r--rtemstoolkit/rld-rap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-rap.cpp b/rtemstoolkit/rld-rap.cpp
index 455328a..809b6d1 100644
--- a/rtemstoolkit/rld-rap.cpp
+++ b/rtemstoolkit/rld-rap.cpp
@@ -1399,6 +1399,12 @@ namespace rld
bool write_addend = sec.rela;
bool write_symname = false;
+ /*
+ * Ignore section index 0
+ */
+ if (reloc.symsect == 0)
+ continue;
+
offset = sec.offset + reloc.offset;
if (rld::verbose () >= RLD_VERBOSE_TRACE)