Re: [PATCH 1/3] powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT

2023-01-08 Thread Michael Ellerman
On Fri, 6 Jan 2023 00:23:47 +1100, Michael Ellerman wrote: > The powerpc linker script explicitly includes .exit.text, because > otherwise the link fails due to references from __bug_table and > __ex_table. The code is freed (discarded) at runtime along with > .init.text and data. > > That has wor

[PATCH 1/3] powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT

2023-01-05 Thread Michael Ellerman
The powerpc linker script explicitly includes .exit.text, because otherwise the link fails due to references from __bug_table and __ex_table. The code is freed (discarded) at runtime along with .init.text and data. That has worked in the past despite powerpc not defining RUNTIME_DISCARD_EXIT becau