Shrinking the kernel with link-time garbage collection
Shrinking the kernel with link-time garbage collection
Posted Mar 1, 2021 5:01 UTC (Mon) by maskray (subscriber, #112608)In reply to: Shrinking the kernel with link-time garbage collection by foom
Parent article: Shrinking the kernel with link-time garbage collection
I managed to convince binutils that generic SHF_LINK_ORDER (not just arm) is useful, in particular, __patchable_function_entries needs it. H.J. Lu kindly implemented it and another nice syntax `,unique` in binutils 2.35.
SHF_LINK_ORDER unfortunately has some pitfalls. I have a summary in https://maskray.me/blog/2021-01-31-metadata-sections-comd...