From e6e610d262940b7651157597b6b1406aa806b4d1 Mon Sep 17 00:00:00 2001 From: Hesham Almatary Date: Mon, 11 Nov 2019 12:34:45 +0000 Subject: rld-rap: Ignore relocations with section index 0 --- rtemstoolkit/rld-rap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3