[Uclinux-h8-devel] [PATCH v2 00/15] init_mm: cleanup ARCH's text/data/brk setup code

Back to archive index
Russell King (Oracle) linux****@armli*****
2021年 6月 7日 (月) 18:31:21 JST


On Mon, Jun 07, 2021 at 07:48:54AM +0200, Christophe Leroy wrote:
> Hi Kefeng,
> 
> What you could do is to define a __weak function that architectures can
> override and call that function from mm_init() as suggested by Mike,

The problem with weak functions is that they bloat the kernel. Each
time a weak function is overriden, it becomes dead unreachable code
within the kernel image.

At some point we're probabily going to have to enable -ffunction-sections
to (hopefully) allow the dead code to be discarded.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!



Uclinux-h8-devel メーリングリストの案内
Back to archive index