Mercurial > lcfOS
comparison python/ppci/linker.py @ 363:396e5cefba13
Removed debuginfo instruction
author | Windel Bouwman |
---|---|
date | Sun, 16 Mar 2014 11:28:47 +0100 |
parents | 5477e499b039 |
children | c49459768aaa |
comparison
equal
deleted
inserted
replaced
362:c05ab629976a | 363:396e5cefba13 |
---|---|
150 # Merge symbols: | 150 # Merge symbols: |
151 for sym in iobj.symbols.values(): | 151 for sym in iobj.symbols.values(): |
152 out_s = self.dst.get_section(sym.section) | 152 out_s = self.dst.get_section(sym.section) |
153 value = offsets[sym.section] + out_s.address + sym.value | 153 value = offsets[sym.section] + out_s.address + sym.value |
154 self.dst.add_symbol(sym.name, value, sym.section) | 154 self.dst.add_symbol(sym.name, value, sym.section) |
155 self.logger.debug('{} at 0x{:08X} in section {}'.format(sym.name, value, sym.section)) | |
155 | 156 |
156 # Merge relocations: | 157 # Merge relocations: |
157 for reloc in iobj.relocations: | 158 for reloc in iobj.relocations: |
158 offset = offsets[reloc.section] + reloc.offset | 159 offset = offsets[reloc.section] + reloc.offset |
159 self.dst.add_relocation(reloc.sym, offset, reloc.typ, reloc.section) | 160 self.dst.add_relocation(reloc.sym, offset, reloc.typ, reloc.section) |