Re: [PATCH] kbuild: linker script do not match C names unless LD_DEAD_CODE_DATA_ELIMINATION is configured

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

 



2017-07-26 21:46 GMT+09:00 Nicholas Piggin <npiggin@xxxxxxxxx>:
> The .data and .bss sections were modified in the generic linker script to
> pull in sections named .data.<C identifier>, which are generated by gcc with
> -ffunction-sections and -fdata-sections options.
>
> The problem with this pattern is it can also match section names that Linux
> defines explicitly, e.g., .data.unlikely. This can cause Linux sections to
> get moved into the wrong place.
>
> The way to avoid this is to use ".." separators for explicit section names
> (the dot character is valid in a section name but not a C identifier).
> However currently there are sections which don't follow this rule, so for
> now just disable the wild card by default.
>
> Example: http://marc.info/?l=linux-arm-kernel&m=150106824024221&w=2
>
> Cc: <stable@xxxxxxxxxxxxxxx> # 4.9
> Fixes: b67067f1176df ("kbuild: allow archs to select link dead code/data elimination")
> Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx>

Applied to linux-kbuild/fixes.  Thanks!

-- 
Best Regards
Masahiro Yamada
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux