summaryrefslogtreecommitdiff
path: root/rtemstoolkit/rld-rap.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-09-11 15:58:51 +1000
committerChris Johns <chrisj@rtems.org>2020-09-11 15:59:47 +1000
commit0ad4aaafc20afcb5aacb7a82b0b3a8150b638975 (patch)
tree5f753848caa7ded333d8ec5c6071045cb998242e /rtemstoolkit/rld-rap.cpp
parentcd8fa2fe74d6785271409aacd1d3d68d863e47f7 (diff)
linker/rap: Ignore relocation records with no section
Uodates #4096
Diffstat (limited to 'rtemstoolkit/rld-rap.cpp')
-rw-r--r--rtemstoolkit/rld-rap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-rap.cpp b/rtemstoolkit/rld-rap.cpp
index 18bd763..235de27 100644
--- a/rtemstoolkit/rld-rap.cpp
+++ b/rtemstoolkit/rld-rap.cpp
@@ -1401,6 +1401,9 @@ namespace rld
bool write_addend = sec.rela;
bool write_symname = false;
+ if (reloc.symsect == 0)
+ continue;
+
offset = sec.offset + reloc.offset;
if (rld::verbose () >= RLD_VERBOSE_TRACE)