Skip to content

Commit

Permalink
SectionMoteMemory: avoid re-adding symbols
Browse files Browse the repository at this point in the history
There is a single symbol map for the SectionMoteMemory,
so use that and stop re-adding the same symbols
when adding sections.
  • Loading branch information
pjonsson committed Sep 18, 2023
1 parent b5d0563 commit 4ce84ba
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions java/org/contikios/cooja/mote/memory/SectionMoteMemory.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ public boolean addMemorySection(String name ,MemoryInterface section) {
}

sections.put(name, section);
if (section.getSymbolMap() != null) {
// XXX how to handle double names here?
symbols.putAll(section.getSymbolMap());
}

if (DEBUG) {
logger.debug(String.format(
"Added section '%s' of size %d @0x%x",
Expand Down

0 comments on commit 4ce84ba

Please sign in to comment.