Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47599 )
Change subject: arch/x86: Move prologue to .init section ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/47599/4//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/47599/4//COMMIT_MSG@17 PS4, Line 17: Description of .init section for ELF: : : This section holds executable instructions that contribute to the : process initialization code. When a program starts to run, the : system arranges to execute the code in this section before calling the : main program entry point (called main for C programs).
I haven't looked into it but how does this work in general for ELF entry point? So the current use c […]
ELF entry point is declared separately from sections. Should one put something in .init one would have to place the entry point symbol (_start or stage_entry) there too.
I wonder if we could first rename existing .text._start and .text.stage_entry both to .init._start.