Permalink
Browse files

dcpu-link: Fix bug in address fixup routine.

  • Loading branch information...
1 parent 5a73ee3 commit af90e753bcc73276c4ce4d578c932aeaf3e725b6 @jteeuwen committed Nov 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 dcpu-link/archive.go
View
@@ -79,7 +79,7 @@ func fixArchiveAddressing(list []*Archive, headerSize int) error {
path := strings.Split(ref.Name, ".")
ar := findArchive(list, path[0])
sym := findSymbol(ar, path[1])
- address := a.address + sym.Address
+ address := sym.Address
for _, offset := range ref.Address {
code[offset] = address

0 comments on commit af90e75

Please sign in to comment.