[Skiboot] [PATCH] Honor DEAD_CODE_ELIMINATION flag
Oliver O'Halloran
oohall at gmail.com
Fri Jun 5 17:03:09 AEST 2020
On Fri, Feb 28, 2020 at 4:15 AM Mauro S. M. Rodrigues
<maurosr at linux.vnet.ibm.com> wrote:
>
> While trying to reduce the size of the final binary I found
> DEAD_CODE_ELIMINATION=1 but it didn't change the binary size and
> known ununsed functions were seen when inspecting the elf with nm.
>
> Even though the necessary parameters for compiler, -ffunction-sections
> and -fdata-sections, are set, ld's --gc-sections wasn't, so add it in
> order to honor the flag.
>
> Signed-off-by: Mauro S. M. Rodrigues <maurosr at linux.vnet.ibm.com>
Thanks, merged as 22817f8d563a069fa9be5202095fd88ddadb21f6
More information about the Skiboot
mailing list