file implements the binutils.ObjFile interface.
| 574 | |
| 575 | // file implements the binutils.ObjFile interface. |
| 576 | type file struct { |
| 577 | b *binrep |
| 578 | name string |
| 579 | buildID string |
| 580 | |
| 581 | baseOnce sync.Once // Ensures the base, baseErr and isData are computed once. |
| 582 | base uint64 |
| 583 | baseErr error // Any eventual error while computing the base. |
| 584 | isData bool |
| 585 | // Mapping information. Relevant only for ELF files, nil otherwise. |
| 586 | m *elfMapping |
| 587 | } |
| 588 | |
| 589 | // computeBase computes the relocation base for the given binary file only if |
| 590 | // the elfMapping field is set. It populates the base and isData fields and |
nothing calls this directly
no outgoing calls
no test coverage detected