The mbr.bin and usbdisk.bin standalone blobs are currently generated using "objcopy -O binary", which does not process relocation records. For the i386 build, this does not matter since the section start address is zero and so the ".rel" relocation records are effectively no-ops anyway. For the x86_64 build, the ".rela" relocation records are not no-ops, since the addend is included as part of the relocation record (rather than inline). Using "objcopy -O binary" will silently discard the relocation records, with the result that all symbols are effectively given a value of zero. Fix by using "ld --oformat binary" instead of "objcopy -O binary" to generate mbr.bin and usbdisk.bin. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
| 12 |
|
12 |
|
| 13 |
|
13 |
|
| 14 |
|
14 |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
| 15 |
|
19 |
|
| 16 |
|
20 |
|
| 17 |
|
21 |
|
|
|
||
| 103 |
|
107 |
|
| 104 |
|
108 |
|
| 105 |
|
109 |
|
| 106 |
|
|
|
| 107 |
|
|
|
|
110 |
|
|
|
111 |
|
|
| 108 |
|
112 |
|
| 109 |
|
113 |
|
| 110 |
|
114 |
|
| 111 |
|
|
|
| 112 |
|
|
|
|
115 |
|
|
|
116 |
|
|
| 113 |
|
117 |
|
| 114 |
|
118 |
|
| 115 |
|
119 |
|