<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,7 +10,7 @@ if __name__ == &quot;__main__&quot;:
 
 	offsets = []
 	sections = []
-	offset = size = vmaddr = 0
+	offset = size = 0
 	
 	# read in sections
 	
@@ -30,7 +30,9 @@ if __name__ == &quot;__main__&quot;:
 			if segment == '__LINKEDIT':
 				offsets.append(segoffs)
 				sections.append((segment, '__symtab', segoffs, segsize))
-							
+				offsets.append(segoffs + segsize)
+				sections.append(sections[-1])
+				
 			continue 
 			
 		# Section __const: 1120204 (addr 0x1300 offset 4864)
@@ -39,25 +41,15 @@ if __name__ == &quot;__main__&quot;:
 		
 		if m:
 			section = m.group(1)
-			sz, offs = map(int, m.group(2, 4))
+			size, offset = map(int, m.group(2, 4))
 			addr = int(m.group(3), 16)
 			
 			# Section __bss: 61412 (addr 0x1372d40 offset 0)
 			# Section __common: 29384 (addr 0x1381d40 offset 0)
 
-			if offs == 0:
-				offs = offset + addr - vmaddr
+			if offset == 0:
+				continue
 
-			offs1 = offset + addr - vmaddr 
-			
-			if offs1 != offs:
-				print line
-				print &quot;offset: %d, offset1: %d, offset2: %d&quot; % (offs, offset + size, offset + addr - vmaddr)
-				
-			offset = offs
-			size = sz
-			vmaddr = addr
-			
 			offsets.append(offset)
 			sections.append((segment, section, offset, size))
 			continue</diff>
      <filename>mmap/access-pattern.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f840f5855d436708a5c81db0b475e4c64572c000</id>
    </parent>
  </parents>
  <author>
    <name>wagerlabs</name>
    <email>joelr1@gmail.com</email>
  </author>
  <url>http://github.com/wagerlabs/firefox-startup/commit/107a72dee485c676c5bb208cf925e4e7691fb2c6</url>
  <id>107a72dee485c676c5bb208cf925e4e7691fb2c6</id>
  <committed-date>2009-11-05T07:41:20-08:00</committed-date>
  <authored-date>2009-11-05T07:41:20-08:00</authored-date>
  <message>working now</message>
  <tree>9fbbd98fb823c7faccc7be960d776264b9a68746</tree>
  <committer>
    <name>wagerlabs</name>
    <email>joelr1@gmail.com</email>
  </committer>
</commit>
