LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2014 The Go Authors. All rights reserved. | 1 // Copyright 2014 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Executable image layout - address assignment. | 5 // Executable image layout - address assignment. |
6 | 6 |
7 package main | 7 package main |
8 | 8 |
9 import ( | 9 import ( |
10 "debug/goobj" | 10 "debug/goobj" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 if sect != nil { | 171 if sect != nil { |
172 start = sect.VirtAddr | 172 start = sect.VirtAddr |
173 end = sect.VirtAddr + sect.Size | 173 end = sect.VirtAddr + sect.Size |
174 } | 174 } |
175 p.defineConst("runtime."+name, start) | 175 p.defineConst("runtime."+name, start) |
176 p.defineConst("runtime.e"+name, end) | 176 p.defineConst("runtime.e"+name, end) |
177 progEnd = end | 177 progEnd = end |
178 } | 178 } |
179 p.defineConst("runtime.end", progEnd) | 179 p.defineConst("runtime.end", progEnd) |
180 } | 180 } |
LEFT | RIGHT |