Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLD + ThinLTO fails with "SHF_MERGE section size must be a multiple of sh_entsize" #510

Closed
samitolvanen opened this issue Jun 6, 2019 · 16 comments
Labels
[ARCH] arm64 This bug impacts ARCH=arm64 [BUG] llvm A bug that should be fixed in upstream LLVM [FEATURE] LTO Related to building the kernel with LLVM Link Time Optimization [FIXED][LLVM] 11 This bug was fixed in LLVM 11.0

Comments

@samitolvanen
Copy link
Member

After working around issue #509, an arm64 defconfig still fails to link with ThinLTO with the following LLD error:

ld.lld: error: lto.tmp: SHF_MERGE section size must be a multiple of sh_entsize

While the error message is not very informative, the section it refers to is .init.rodata and the size is 56 bytes, while sh_entsize is 16 bytes.

@samitolvanen samitolvanen added [ARCH] arm64 This bug impacts ARCH=arm64 [TOOL] lld The issue is relevant to LLD linker [FEATURE] LTO Related to building the kernel with LLVM Link Time Optimization labels Jun 6, 2019
@samitolvanen samitolvanen changed the title arm64: LLD fails with ThinLTO with "SHF_MERGE section size must be a multiple of sh_entsize" arm64: LLD + ThinLTO fails with "SHF_MERGE section size must be a multiple of sh_entsize" Jun 6, 2019
@samitolvanen
Copy link
Member Author

samitolvanen commented Jun 7, 2019

Clearly there's something funky going on with ThinLTO, because according to the ELF specification, LLD is correct here. However, changing shouldMerge in lld/ELF/InputFiles.cpp to return false instead of immediately aborting when the section size is not a multiple of sh_entsize produces a kernel that boots.

@samitolvanen samitolvanen added [BUG] llvm A bug that should be fixed in upstream LLVM and removed [TOOL] lld The issue is relevant to LLD linker labels Jun 7, 2019
@nickdesaulniers
Copy link
Member

cc @rui314 @GeorgiiR @smithp35 for input on the LLD side.

@smithp35
Copy link

Apologies for the delay in replying.

The requirement in ELF is for the SHF_MERGE section to consist of an array of identically sized entries. LLD's position in giving an error when a SHF_MERGE section doesn't conform to that is conservative. If the compiler has taken advantage of the entry size, such as when the constants are loaded with vector instructions with alignment requirements, LLD could be protecting against a run-time error. If the compiler hasn't then LLD could just treat the SHF_MERGE section as a normal Data section (returning false) and there won't be a problem.

I don't know what happens in the case with the kernel, it will be safe to return false if the data in the section is never used. I don't know whether the boot process touches it or not.

In practice the uses of SHF_MERGE in clang and gcc tends to use these sections for 8, 16 and 32 byte aligned data that is often loaded by vector instructions, in these cases I think that a malformed SHF_MERGE section is likely going to cause strange runtime behaviour if the data is accessed.

A case could be made for only giving an error message if the sh_entsize was <= sh_align as this would imply that the compiler has taken advantage of the structure of the data, however given this is the first time I've seen this error occur, I think it is more indicative of a real problem than LLD being fussy.

@samitolvanen
Copy link
Member Author

samitolvanen commented Jun 13, 2019

Thanks for the response, that makes sense.

I managed to track down the code that generates this section. It's in drivers/soc/tegra/fuse/speedo-tegra210.c:

static const u32 __initconst cpu_process_speedos[][CPU_PROCESS_CORNERS] = {
        { 2119, UINT_MAX },
        { 2119, UINT_MAX },
};

static const u32 __initconst gpu_process_speedos[][GPU_PROCESS_CORNERS] = {
        { UINT_MAX, UINT_MAX },
        { UINT_MAX, UINT_MAX },
};

static const u32 __initconst soc_process_speedos[][SOC_PROCESS_CORNERS] = {
        { 1950, 2100, UINT_MAX },
        { 1950, 2100, UINT_MAX },
}

Where __initconst is simply sets the section to .init.rodata. The generated ELF file contains the following:

[Nr] Name              Type            Address          Off    Size   ES Flg Lk Inf Al
...
[ 9] .init.rodata      PROGBITS        0000000000000000 00046c 000038 10  AM  0   0  4
...

A case could be made for only giving an error message if the sh_entsize was <= sh_align as this would imply that the compiler has taken advantage of the structure of the data

Note that this appears not to be the case here. sh_entsize is 16 bytes, but sh_align is 4.

We can work around the problem by disabling CONFIG_ARCH_TEGRA_210_SOC for now.

samitolvanen added a commit to samitolvanen/linux that referenced this issue Jun 13, 2019
Disable temporarily to work around a problem with ThinLTO+LLD.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Jun 19, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Jul 2, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Jul 3, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Jul 3, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Jul 23, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Jul 31, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Aug 7, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Aug 8, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Aug 16, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Aug 23, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 4, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 6, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 9, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 12, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 12, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 19, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 20, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Sep 25, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
samitolvanen added a commit to samitolvanen/linux that referenced this issue Oct 4, 2019
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Link: ClangBuiltLinux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
matheucomth pushed a commit to matheucomth/android_kernel_xiaomi_onclite that referenced this issue Nov 2, 2023
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Alone0316 pushed a commit to Alone0316/kernel_mido that referenced this issue Nov 12, 2023
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
jrjmt pushed a commit to Google-Pixel-3-XL/kernel_google_bluecross that referenced this issue Dec 1, 2023
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
jrjmt pushed a commit to Google-Pixel-3-XL/kernel_google_bluecross that referenced this issue Jan 8, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
jrjmt pushed a commit to Google-Pixel-3-XL/kernel_google_bluecross that referenced this issue Jan 8, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
wulan17 pushed a commit to Mayuri-Chan/android_kernel_xiaomi_mt6765 that referenced this issue Feb 6, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
KanishkTheDerp pushed a commit to KanishkTheDerp/msm-4.9 that referenced this issue Feb 28, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
ekkusa pushed a commit to miyoubi/kernel_sony_sdm845 that referenced this issue Mar 11, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
ekkusa pushed a commit to miyoubi/kernel_sony_sdm845 that referenced this issue Mar 12, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
HoangLong-Lumi pushed a commit to HoangLong-Lumi/kernel_vsmart_vin8953 that referenced this issue Mar 14, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
ghazzor pushed a commit to stufss/kernel_samsung_M215F_CVH1 that referenced this issue Mar 21, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
KanishkTheDerp pushed a commit to KanishkTheDerp/msm-4.9 that referenced this issue Mar 30, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this issue Apr 23, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
Sorayukii pushed a commit to Sorayukii/kernel_sony_tama that referenced this issue Apr 24, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
Kanonify-01 pushed a commit to Kanonify-01/kernel_tama_clo that referenced this issue May 12, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
KanishkTheDerp pushed a commit to KanishkTheDerp/msm-4.9 that referenced this issue May 27, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
ghazzor pushed a commit to stufss/kernel_samsung_M215F_CVH1 that referenced this issue Jun 8, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
ghazzor pushed a commit to stufss/kernel_samsung_M215F_CVH1 that referenced this issue Jun 10, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
ghazzor pushed a commit to stufss/kernel_samsung_M215F_CVH1 that referenced this issue Jun 11, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
LMAO-armv8 pushed a commit to stufss/kernel_samsung_M215F_CVH1 that referenced this issue Jun 13, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
ghazzor pushed a commit to stufss/kernel_samsung_M215F_CVH1 that referenced this issue Jun 14, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
KanishkTheDerp pushed a commit to KanishkTheDerp/msm-4.9 that referenced this issue Jul 25, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
KanishkTheDerp pushed a commit to KanishkTheDerp/msm-4.9 that referenced this issue Aug 30, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
L1ghtzin pushed a commit to Bomb-Projects/kernel_motorola_msm8937 that referenced this issue Sep 7, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Rve27 pushed a commit to Rv-Trees/android_kernel_xiaomi_sdm845 that referenced this issue Sep 11, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Rve <rve27github@gmail.com>
Rve27 pushed a commit to Rv-Trees/android_kernel_xiaomi_sdm845 that referenced this issue Sep 14, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Rve <rve27github@gmail.com>
borbelyvince pushed a commit to borbelyvince/990_upstream that referenced this issue Oct 2, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Rsyd58 pushed a commit to Rsyd58/android_kernel_xiaomi_vince that referenced this issue Nov 3, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
ekkusa pushed a commit to miyoubi/kernel_sony_sdm845 that referenced this issue Nov 10, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I792b52370ff66749ee2783d4d54032ee013ca5aa
Signed-off-by: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: CloudedQuartz <ravenklawasd@gmail.com>
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
KanonifyX pushed a commit to KanonifyX/android_kernel_tama_sdm845 that referenced this issue Dec 5, 2024
Disable CONFIG_ARCH_TEGRA_210_SOC with LTO to work around an issue
with ThinLTO.

Bug: 145210207
Change-Id: Idc2792d6b7d0c755f6f7695cf0b20fa49721d09c
Link: ClangBuiltLinux/linux#510
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ARCH] arm64 This bug impacts ARCH=arm64 [BUG] llvm A bug that should be fixed in upstream LLVM [FEATURE] LTO Related to building the kernel with LLVM Link Time Optimization [FIXED][LLVM] 11 This bug was fixed in LLVM 11.0
Projects
None yet
Development

No branches or pull requests

5 participants