1 comment:
File src/cpu/x86/16bit/reset16.ld:
Patch Set #1, Line 21: _NEAR_RESET_VECTOR
I like that approach. It would remove the need to specify the bootblock size. Are alignments something that can be/ are taken care of when relocating the program?
On the first link all alignment requests will be honored. We'll get a size for the whole bootblock program. We can then relocate the whole thing to final destination.
One thing we need to look out for are those absolute addresses. If the max alignment is correctly honored (and those absolute addresses have less than the max alignments) then I think we can just move everything together to the final destination. That's what's required to make such a scheme work. Need to choose proper starting address (fake base one that gets changed on relocation) and then I think we just then relocate everything together.
It's certainly something to play with and see how it pans out.
To view, visit change 36418. To unsubscribe, or for help writing mail filters, visit settings.