[rtems-tools commit] linker/rap: Ignore relocation records with no section
Chris Johns
chrisj at rtems.org
Fri Sep 11 06:00:35 UTC 2020
Module: rtems-tools
Branch: master
Commit: 0ad4aaafc20afcb5aacb7a82b0b3a8150b638975
Changeset: http://git.rtems.org/rtems-tools/commit/?id=0ad4aaafc20afcb5aacb7a82b0b3a8150b638975
Author: Chris Johns <chrisj at rtems.org>
Date: Fri Sep 11 15:58:51 2020 +1000
linker/rap: Ignore relocation records with no section
Uodates #4096
---
rtemstoolkit/rld-rap.cpp | 3 +++
1 file changed, 3 insertions(+)
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)
More information about the vc
mailing list