summaryrefslogtreecommitdiff
path: root/rld-rap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rld-rap.cpp')
-rw-r--r--rld-rap.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/rld-rap.cpp b/rld-rap.cpp
index f54f7f3..500c2c3 100644
--- a/rld-rap.cpp
+++ b/rld-rap.cpp
@@ -1015,6 +1015,14 @@ namespace rld
if ((sym.binding () == STB_GLOBAL) || (sym.binding () == STB_WEAK))
{
int symsec = sym.section_index ();
+
+ /* Ignore section index 0 */
+ if (symsec == 0)
+ continue;
+ /* Ignore sparc common section */
+ if ((elf::object_machine_type () == EM_SPARC) && (symsec == 65522))
+ continue;
+
sections rap_sec = obj.find (symsec);
section& sec = obj.secs[rap_sec];
std::size_t name;