Re: [PATCH 0/6] MIPS: Use thin archives & dead code elimination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Paul,

On Thu, 20 Oct 2016 21:26:59 +0100
Paul Burton <paul.burton@xxxxxxxxxx> wrote:

> This series fixes a few issues with CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
> and then enables it, along with CONFIG_THIN_ARCHIVES, for MIPS. This
> leads to a typical generic kernel build becoming ~5% smaller:
> 
>   add/remove: 0/3028 grow/shrink: 1/14 up/down: 18/-457362 (-457344)
>   ...
>   Total: Before=9001030, After=8543686, chg -5.08%
> 
> Applies atop v4.9-rc1.


Very nice, and thanks for the kbuild fixes, I think they all look sane.

Let's try to get those kbuild fixes in through the kbuild tree first
(which has some other fixes required for 4.9). I can take them and send
them to kbuild maintainer if you like.

On powerpc we'll likely provide an option to select these manually for
4.9 because there has been the odd toolchain issue come up, so that's
something to consider.

For your linker script, you may consider putting the function sections
into the same input as other text. TEXT_TEXT does not include .text.*,
so mips's .text.* below it will catch those.

You may just open-code your TEXT_TEXT, and have:

*(.text.hot .text .text.fixup .text.unlikely .text.[0-9a-zA-Z_]*)

or similar.

Thanks,
Nick




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux