cef/fix-rust-linking.patch
Than Ngo 0956592643 Update to 143.0.7499.40
- Hoshino Lina: Update to cef-143.0.9+ge88e818 (rhbz#2420939)
- * High CVE-2025-13630: Type Confusion in V8
- * High CVE-2025-13631: Inappropriate implementation in Google Updater
- * High CVE-2025-13632: Inappropriate implementation in DevTools
- * High CVE-2025-13633: Use after free in Digital Credentials
- * Medium CVE-2025-13634: Inappropriate implementation in Downloads
- * Medium CVE-2025-13720: Bad cast in Loader
- * Medium CVE-2025-13721: Race in v8
- * Low CVE-2025-13635: Inappropriate implementation in Downloads
- * Low CVE-2025-13636: Inappropriate implementation in Split View
- * Low CVE-2025-13637: Inappropriate implementation in Downloads
- * Low CVE-2025-13638: Use after free in Media Stream
- * Low CVE-2025-13639: Inappropriate implementation in WebRTC
- * Low CVE-2025-13640: Inappropriate implementation in Passwords
- Drop workaround darkmode-image-policy.patch
- Fix build error due to Unresolved dependencies
- Fix swiftshader to compile with llvm-16.0
- Refresh python-3.9-ftbfs patch for el9
- Refresh ppc64le patches
- Refresh chromium.conf
2025-12-10 22:05:02 +09:00

34 lines
1.9 KiB
Diff

Index: chromium-143.0.7499.40/build/toolchain/gcc_toolchain.gni
===================================================================
--- chromium-143.0.7499.40.orig/build/toolchain/gcc_toolchain.gni
+++ chromium-143.0.7499.40/build/toolchain/gcc_toolchain.gni
@@ -422,7 +422,13 @@ template("single_gcc_toolchain") {
# -soname flag is not available on aix ld
soname_flag = "-Wl,-soname=\"$soname\""
}
- link_command = "$ld -shared $soname_flag {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" @\"$rspfile\" {{rlibs}}"
+ if (target_cpu == "ppc64") {
+ # Work around linker failures due to Rust libraries and the use of whole-archive
+ link_command = "$ld -shared $soname_flag -Wl,--start-group {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" @\"$rspfile\" {{rlibs}} -Wl,--end-group"
+ }
+ else {
+ link_command = "$ld -shared $soname_flag {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" @\"$rspfile\" {{rlibs}}"
+ }
# Generate a map file to be used for binary size analysis.
# Map file adds ~10% to the link time on a z620.
@@ -534,7 +540,13 @@ template("single_gcc_toolchain") {
whole_archive_flag = "-Wl,--whole-archive"
no_whole_archive_flag = "-Wl,--no-whole-archive"
}
- command = "$ld -shared {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" $soname_flag @\"$rspfile\""
+ if (target_cpu == "ppc64") {
+ # Work around linker failures due to Rust libraries and the use of whole-archive
+ command = "$ld -shared -Wl,--start-group {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" $soname_flag @\"$rspfile\" -Wl,--end-group"
+ }
+ else {
+ command = "$ld -shared {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" $soname_flag @\"$rspfile\""
+ }
if (defined(invoker.strip)) {
strip_command = "${invoker.strip} -o \"$sofile\" \"$unstripped_sofile\""