Commit 1dfd266
committed
Harden map file parsing and document PE vs ELF asymmetry
ParseMapFile:
- Anchor parsing to the Publics by Value column header so a same-named
entry in the Static symbols section can't shadow or collide with a
public BORINGSSL_bcm_* marker.
- Fail fast with a descriptive error if the map file does not contain
a Publics by Value section, instead of producing a downstream
'symbol not found in map file' error.
- Expand the function doc with the expected map-file grammar.
break-hash.go:
- Add a comment on doPE explaining why it does not need the 256-byte
prefix uniqueness check that doELF performs: the linker map plus the
PE section table already yield an exact on-disk offset for
BORINGSSL_bcm_text_start, so the ELF-era workaround is unnecessary.1 parent f96e4da commit 1dfd266
3 files changed
Lines changed: 59 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
24 | 41 | | |
25 | 42 | | |
26 | 43 | | |
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
30 | 47 | | |
31 | | - | |
| 48 | + | |
| 49 | + | |
32 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
33 | 68 | | |
34 | 69 | | |
35 | 70 | | |
| |||
48 | 83 | | |
49 | 84 | | |
50 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
51 | 93 | | |
52 | 94 | | |
53 | 95 | | |
| |||
85 | 127 | | |
86 | 128 | | |
87 | 129 | | |
88 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
89 | 135 | | |
90 | 136 | | |
91 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
| |||
0 commit comments