Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Raptor Engineering Public Development
Chromium
OpenPOWER Patches
Commits
ef4c5558
Commit
ef4c5558
authored
7 months ago
by
Timothy Pearson
Browse files
Options
Download
Email Patches
Plain Diff
Initial update to Chromium 127
parent
7b098a82
Changes
159
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
320 additions
and
312 deletions
+320
-312
patches/ppc64le/breakpad/0001-Implement-support-for-ppc64-on-Linux.patch
.../breakpad/0001-Implement-support-for-ppc64-on-Linux.patch
+69
-69
patches/ppc64le/core/add-ppc64-architecture-to-extensions.diff
...es/ppc64le/core/add-ppc64-architecture-to-extensions.diff
+46
-0
patches/ppc64le/core/baseline-isa-3-0.patch
patches/ppc64le/core/baseline-isa-3-0.patch
+11
-11
patches/ppc64le/crashpad/0001-Implement-support-for-PPC64-on-Linux.patch
.../crashpad/0001-Implement-support-for-PPC64-on-Linux.patch
+101
-101
patches/ppc64le/crashpad/0002-Include-cstddef-to-fix-build.patch
.../ppc64le/crashpad/0002-Include-cstddef-to-fix-build.patch
+3
-3
patches/ppc64le/ffmpeg/0001-Add-support-for-ppc64.patch
patches/ppc64le/ffmpeg/0001-Add-support-for-ppc64.patch
+0
-25
patches/ppc64le/fixes/fix-breakpad-compile.patch
patches/ppc64le/fixes/fix-breakpad-compile.patch
+3
-3
patches/ppc64le/fixes/fix-clang-selection.patch
patches/ppc64le/fixes/fix-clang-selection.patch
+3
-3
patches/ppc64le/fixes/fix-partition-alloc-compile.patch
patches/ppc64le/fixes/fix-partition-alloc-compile.patch
+4
-4
patches/ppc64le/fixes/fix-rust-linking.patch
patches/ppc64le/fixes/fix-rust-linking.patch
+5
-20
patches/ppc64le/fixes/fix-rustc.patch
patches/ppc64le/fixes/fix-rustc.patch
+4
-4
patches/ppc64le/fixes/fix-unknown-warning-option-messages.diff
...es/ppc64le/fixes/fix-unknown-warning-option-messages.diff
+6
-6
patches/ppc64le/fixes/memory-allocator-dcheck-assert-fix.patch
...es/ppc64le/fixes/memory-allocator-dcheck-assert-fix.patch
+7
-5
patches/ppc64le/libaom/0001-Add-ppc64-target-to-libaom.patch
patches/ppc64le/libaom/0001-Add-ppc64-target-to-libaom.patch
+6
-6
patches/ppc64le/libaom/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch
...om/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch
+12
-12
patches/ppc64le/sandbox/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch
...inux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch
+6
-6
patches/ppc64le/sandbox/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch
...e/sandbox/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch
+3
-3
patches/ppc64le/sandbox/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch
...andbox-linux-Implement-partial-support-for-ppc64-sy.patch
+10
-10
patches/ppc64le/sandbox/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch
...andbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch
+3
-3
patches/ppc64le/sandbox/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch
...andbox-linux-Update-syscall-helpers-lists-for-ppc64.patch
+18
-18
No files found.
patches/ppc64le/breakpad/0001-Implement-support-for-ppc64-on-Linux.patch
View file @
ef4c5558
This diff is collapsed.
Click to expand it.
patches/ppc64le/core/add-ppc64-architecture-to-extensions.diff
0 → 100644
View file @
ef4c5558
Index: chromium-127.0.6533.88/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
===================================================================
--- chromium-127.0.6533.88.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
+++ chromium-127.0.6533.88/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
@@ -303,6 +303,8 @@
bool ChromeRuntimeAPIDelegate::GetPlatfo
info->arch = extensions::api::runtime::PlatformArch::kMips;
} else if (strcmp(arch, "mips64el") == 0) {
info->arch = extensions::api::runtime::PlatformArch::kMips64;
+ } else if (strcmp(arch, "ppc64") == 0) {
+ info->arch = extensions::api::runtime::PlatformArch::kPpc64;
} else {
NOTREACHED_IN_MIGRATION();
return false;
@@ -319,6 +321,8 @@
bool ChromeRuntimeAPIDelegate::GetPlatfo
info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips;
} else if (strcmp(nacl_arch, "mips64") == 0) {
info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips64;
+ } else if (strcmp(nacl_arch, "ppc64") == 0) {
+ info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kPpc64;
} else {
NOTREACHED_IN_MIGRATION();
return false;
Index: chromium-127.0.6533.88/extensions/common/api/runtime.json
===================================================================
--- chromium-127.0.6533.88.orig/extensions/common/api/runtime.json
+++ chromium-127.0.6533.88/extensions/common/api/runtime.json
@@ -98,7 +98,8 @@
{"name": "x86-32", "description": "Specifies the processer architecture as x86-32."},
{"name": "x86-64", "description": "Specifies the processer architecture as x86-64."},
{"name": "mips", "description": "Specifies the processer architecture as mips."},
- {"name": "mips64", "description": "Specifies the processer architecture as mips64."}
+ {"name": "mips64", "description": "Specifies the processer architecture as mips64."},
+ {"name": "ppc64", "description": "Specifies the processer architecture as ppc64."}
],
"description": "The machine's processor architecture."
},
@@ -111,7 +112,8 @@
{"name": "x86-32", "description": "Specifies the native client architecture as x86-32."},
{"name": "x86-64", "description": "Specifies the native client architecture as x86-64."},
{"name": "mips", "description": "Specifies the native client architecture as mips."},
- {"name": "mips64", "description": "Specifies the native client architecture as mips64."}
+ {"name": "mips64", "description": "Specifies the native client architecture as mips64."},
+ {"name": "ppc64", "description": "Specifies the native client architecture as ppc64."}
]
},
{
This diff is collapsed.
Click to expand it.
patches/ppc64le/core/baseline-isa-3-0.patch
View file @
ef4c5558
Index: chromium-12
6
.0.6
478.57
/build/config/compiler/BUILD.gn
Index: chromium-12
7
.0.6
533.88
/build/config/compiler/BUILD.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/build/config/compiler/BUILD.gn
+++ chromium-12
6
.0.6
478.57
/build/config/compiler/BUILD.gn
@@ -14
25
,7 +14
25
,7 @@
config("compiler_cpu_abi") {
--- chromium-12
7
.0.6
533.88
.orig/build/config/compiler/BUILD.gn
+++ chromium-12
7
.0.6
533.88
/build/config/compiler/BUILD.gn
@@ -14
47
,7 +14
47
,7 @@
config("compiler_cpu_abi") {
cflags += [ "-maix64" ]
ldflags += [ "-maix64" ]
} else {
...
...
@@ -11,10 +11,10 @@ Index: chromium-126.0.6478.57/build/config/compiler/BUILD.gn
ldflags += [ "-m64" ]
}
} else if (current_cpu == "riscv64") {
Index: chromium-12
6
.0.6
478.57
/third_party/libvpx/BUILD.gn
Index: chromium-12
7
.0.6
533.88
/third_party/libvpx/BUILD.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/third_party/libvpx/BUILD.gn
+++ chromium-12
6
.0.6
478.57
/third_party/libvpx/BUILD.gn
--- chromium-12
7
.0.6
533.88
.orig/third_party/libvpx/BUILD.gn
+++ chromium-12
7
.0.6
533.88
/third_party/libvpx/BUILD.gn
@@ -97,7 +97,7 @@
config("libvpx_config") {
if (current_cpu == "ppc64") {
...
...
@@ -24,11 +24,11 @@ Index: chromium-126.0.6478.57/third_party/libvpx/BUILD.gn
"-maltivec",
"-mvsx",
]
Index: chromium-12
6
.0.6
478.57
/v8/BUILD.gn
Index: chromium-12
7
.0.6
533.88
/v8/BUILD.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/v8/BUILD.gn
+++ chromium-12
6
.0.6
478.57
/v8/BUILD.gn
@@ -1
415
,7 +1
415
,7 @@
config("toolchain") {
--- chromium-12
7
.0.6
533.88
.orig/v8/BUILD.gn
+++ chromium-12
7
.0.6
533.88
/v8/BUILD.gn
@@ -1
398
,7 +1
398
,7 @@
config("toolchain") {
defines += [ "V8_TARGET_ARCH_PPC_LE" ]
cflags += [
# Enable usage of AltiVec, VSX, and other POWER8 and higher features
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/crashpad/0001-Implement-support-for-PPC64-on-Linux.patch
View file @
ef4c5558
This diff is collapsed.
Click to expand it.
patches/ppc64le/crashpad/0002-Include-cstddef-to-fix-build.patch
View file @
ef4c5558
...
...
@@ -7,10 +7,10 @@ size_t is not defined unless cstddef is included.
---
third_party/crashpad/crashpad/compat/linux/sys/user.h | 1 +
Index: chromium-12
6
.0.6
478.57
/third_party/crashpad/crashpad/compat/linux/sys/user.h
Index: chromium-12
7
.0.6
533.88
/third_party/crashpad/crashpad/compat/linux/sys/user.h
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/third_party/crashpad/crashpad/compat/linux/sys/user.h
+++ chromium-12
6
.0.6
478.57
/third_party/crashpad/crashpad/compat/linux/sys/user.h
--- chromium-12
7
.0.6
533.88
.orig/third_party/crashpad/crashpad/compat/linux/sys/user.h
+++ chromium-12
7
.0.6
533.88
/third_party/crashpad/crashpad/compat/linux/sys/user.h
@@ -15,6 +15,7 @@
#ifndef CRASHPAD_COMPAT_LINUX_SYS_USER_H_
#define CRASHPAD_COMPAT_LINUX_SYS_USER_H_
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/ffmpeg/0001-Add-support-for-ppc64.patch
deleted
100644 → 0
View file @
7b098a82
From bfdb97e53b1b6d037d00711f4601aabf167dbfbf Mon Sep 17 00:00:00 2001
From: Shawn Anastasio <shawnanastasio@yahoo.com>
Date: Sat, 1 Sep 2018 16:43:48 -0500
Subject: [PATCH] Add support for ppc64
---
chromium/scripts/build_ffmpeg.py | 11 +++++++++--
chromium/scripts/copy_config.sh | 2 +-
chromium/scripts/generate_gn.py | 2 +-
chromium/scripts/generate_gn_unittest.py | 10 ++++++++--
4 files changed, 19 insertions(+), 6 deletions(-)
Index: chromium-126.0.6478.57/third_party/ffmpeg/chromium/scripts/generate_gn.py
===================================================================
--- chromium-126.0.6478.57.orig/third_party/ffmpeg/chromium/scripts/generate_gn.py
+++ chromium-126.0.6478.57/third_party/ffmpeg/chromium/scripts/generate_gn.py
@@ -77,7 +77,7 @@
GN_SOURCE_END = """]
_Attrs = ('ARCHITECTURE', 'TARGET', 'PLATFORM')
Attr = collections.namedtuple('Attr', _Attrs)(*_Attrs)
SUPPORT_MATRIX = {
- Attr.ARCHITECTURE: set(['ia32', 'x64', 'arm', 'arm64', 'arm-neon']),
+ Attr.ARCHITECTURE: set(['ia32', 'x64', 'arm', 'arm64', 'arm-neon', 'ppc64']),
Attr.TARGET: set(['Chromium', 'Chrome', 'ChromeOS']),
Attr.PLATFORM: set(['android', 'linux', 'win', 'mac'])
}
This diff is collapsed.
Click to expand it.
patches/ppc64le/fixes/fix-breakpad-compile.patch
View file @
ef4c5558
Index: chromium-12
6
.0.6
478.57
/third_party/breakpad/BUILD.gn
Index: chromium-12
7
.0.6
533.88
/third_party/breakpad/BUILD.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/third_party/breakpad/BUILD.gn
+++ chromium-12
6
.0.6
478.57
/third_party/breakpad/BUILD.gn
--- chromium-12
7
.0.6
533.88
.orig/third_party/breakpad/BUILD.gn
+++ chromium-12
7
.0.6
533.88
/third_party/breakpad/BUILD.gn
@@ -620,7 +620,6 @@
if (is_linux || is_chromeos || is_androi
"breakpad/src/client/minidump_file_writer.h",
"breakpad/src/common/convert_UTF.cc",
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/fixes/fix-clang-selection.patch
View file @
ef4c5558
Index: chromium-12
6
.0.6
478.57
/build/config/BUILDCONFIG.gn
Index: chromium-12
7
.0.6
533.88
/build/config/BUILDCONFIG.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/build/config/BUILDCONFIG.gn
+++ chromium-12
6
.0.6
478.57
/build/config/BUILDCONFIG.gn
--- chromium-12
7
.0.6
533.88
.orig/build/config/BUILDCONFIG.gn
+++ chromium-12
7
.0.6
533.88
/build/config/BUILDCONFIG.gn
@@ -138,7 +138,6 @@
declare_args() {
# Set to true when compiling with the Clang compiler.
is_clang = current_os != "linux" ||
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/fixes/fix-partition-alloc-compile.patch
View file @
ef4c5558
kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni
===================================================================
Index: chromium-12
6
.0.6
478.57
/base/allocator/partition_allocator/partition_alloc.gni
Index: chromium-12
7
.0.6
533.88
/base/allocator/partition_allocator/partition_alloc.gni
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/base/allocator/partition_allocator/partition_alloc.gni
+++ chromium-12
6
.0.6
478.57
/base/allocator/partition_allocator/partition_alloc.gni
@@ -
2
1,7 +
2
1,8 @@
if (is_nacl) {
--- chromium-12
7
.0.6
533.88
.orig/base/allocator/partition_allocator/partition_alloc.gni
+++ chromium-12
7
.0.6
533.88
/base/allocator/partition_allocator/partition_alloc.gni
@@ -1
9
,7 +1
9
,8 @@
if (is_nacl) {
# NaCl targets don't use 64-bit pointers.
has_64_bit_pointers = false
} else if (current_cpu == "x64" || current_cpu == "arm64" ||
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/fixes/fix-rust-linking.patch
View file @
ef4c5558
Index: chromium-12
6
.0.6
478.57
/build/toolchain/gcc_toolchain.gni
Index: chromium-12
7
.0.6
533.88
/build/toolchain/gcc_toolchain.gni
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/build/toolchain/gcc_toolchain.gni
+++ chromium-12
6
.0.6
478.57
/build/toolchain/gcc_toolchain.gni
@@ -4
57
,7 +4
57
,13 @@
template("single_gcc_toolchain") {
--- chromium-12
7
.0.6
533.88
.orig/build/toolchain/gcc_toolchain.gni
+++ chromium-12
7
.0.6
533.88
/build/toolchain/gcc_toolchain.gni
@@ -4
39
,7 +4
39
,13 @@
template("single_gcc_toolchain") {
# -soname flag is not available on aix ld
soname_flag = "-Wl,-soname=\"$soname\""
}
...
...
@@ -17,7 +17,7 @@ Index: chromium-126.0.6478.57/build/toolchain/gcc_toolchain.gni
# Generate a map file to be used for binary size analysis.
# Map file adds ~10% to the link time on a z620.
@@ -5
69
,7 +5
7
5,13 @@
template("single_gcc_toolchain") {
@@ -5
51
,7 +55
7
,13 @@
template("single_gcc_toolchain") {
whole_archive_flag = "-Wl,--whole-archive"
no_whole_archive_flag = "-Wl,--no-whole-archive"
}
...
...
@@ -32,18 +32,3 @@ Index: chromium-126.0.6478.57/build/toolchain/gcc_toolchain.gni
if (defined(invoker.strip)) {
strip_command = "${invoker.strip} -o \"$sofile\" \"$unstripped_sofile\""
@@ -629,7 +641,13 @@
template("single_gcc_toolchain") {
start_group_flag = "-Wl,--start-group"
end_group_flag = "-Wl,--end-group "
}
- link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" {{solibs}} $end_group_flag {{libs}} {{rlibs}}"
+ if (target_cpu == "ppc64") {
+ # Work around linker failures due to Rust libraries and the use of whole-archive
+ link_command = "$ld -Wl,--start-group {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" @\"$rspfile\" {{solibs}} {{libs}} {{rlibs}} -Wl,--end-group"
+ }
+ else {
+ link_command = "$ld {{ldflags}}${extra_ldflags} -o \"$unstripped_outfile\" $start_group_flag @\"$rspfile\" {{solibs}} $end_group_flag {{libs}} {{rlibs}}"
+ }
# Generate a map file to be used for binary size analysis.
# Map file adds ~10% to the link time on a z620.
This diff is collapsed.
Click to expand it.
patches/ppc64le/fixes/fix-rustc.patch
View file @
ef4c5558
author: Andres Salomon <dilinger@debian.org>
description: allow ppc64le to build by using proper rustc target
Index: chromium-12
6
.0.6
478.57
/build/config/rust.gni
Index: chromium-12
7
.0.6
533.88
/build/config/rust.gni
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/build/config/rust.gni
+++ chromium-12
6
.0.6
478.57
/build/config/rust.gni
@@ -1
90
,6 +1
90
,8 @@
rust_abi_target = ""
--- chromium-12
7
.0.6
533.88
.orig/build/config/rust.gni
+++ chromium-12
7
.0.6
533.88
/build/config/rust.gni
@@ -1
86
,6 +1
86
,8 @@
rust_abi_target = ""
if (is_linux || is_chromeos) {
if (current_cpu == "arm64") {
rust_abi_target = "aarch64-unknown-linux-gnu"
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/fixes/fix-unknown-warning-option-messages.diff
View file @
ef4c5558
Index: chromium-12
6
.0.6
478.57
/build/config/compiler/BUILD.gn
Index: chromium-12
7
.0.6
533.88
/build/config/compiler/BUILD.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/build/config/compiler/BUILD.gn
+++ chromium-12
6
.0.6
478.57
/build/config/compiler/BUILD.gn
@@ -1
789
,7 +1
789
,7 @@
config("default_warnings") {
--- chromium-12
7
.0.6
533.88
.orig/build/config/compiler/BUILD.gn
+++ chromium-12
7
.0.6
533.88
/build/config/compiler/BUILD.gn
@@ -1
811
,7 +1
811
,7 @@
config("default_warnings") {
# -Wno-class-memaccess warns about hash table and vector in blink.
# But the violation is intentional.
...
...
@@ -11,7 +11,7 @@ Index: chromium-126.0.6478.57/build/config/compiler/BUILD.gn
cflags_cc += [ "-Wno-class-memaccess" ]
}
@@ -1
799
,7 +1
799
,9 @@
config("default_warnings") {
@@ -1
821
,7 +1
821
,9 @@
config("default_warnings") {
# Don't warn about "maybe" uninitialized. Clang doesn't include this
# in -Wall but gcc does, and it gives false positives.
...
...
@@ -22,7 +22,7 @@ Index: chromium-126.0.6478.57/build/config/compiler/BUILD.gn
cflags += [ "-Wno-deprecated-declarations" ]
# -Wcomment gives too many false positives in the case a
@@ -18
10
,7 +18
12
,9 @@
config("default_warnings") {
@@ -18
32
,7 +18
34
,9 @@
config("default_warnings") {
# -Wpacked-not-aligned complains all generated mojom-shared-internal.h
# files.
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/fixes/memory-allocator-dcheck-assert-fix.patch
View file @
ef4c5558
--- a/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc
+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc
@@ -506,6 +506,9 @@
Index: chromium-127.0.6533.88/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc
===================================================================
--- chromium-127.0.6533.88.orig/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc
+++ chromium-127.0.6533.88/base/allocator/partition_allocator/src/partition_alloc/partition_bucket.cc
@@ -492,6 +492,9 @@
uint8_t ComputeSystemPagesPerSlotSpanPre
partition_page_count <= kMaxPartitionPagesPerRegularSlotSpan;
partition_page_count++) {
size_t candidate_size = partition_page_count * PartitionPageSize();
...
...
@@ -10,12 +12,12 @@
size_t waste = candidate_size % slot_size;
if (waste <= .02 * SystemPageSize()) {
return partition_page_count * NumSystemPagesPerPartitionPage();
@@ -5
22
,6 +5
25
,9 @@
@@ -5
08
,6 +5
11
,9 @@
uint8_t ComputeSystemPagesPerSlotSpanPre
size_t system_page_count =
partition_page_count * NumSystemPagesPerPartitionPage() - slack;
size_t candidate_size = system_page_count * SystemPageSize();
+ if (candidate_size > kMaxBucketed) {
+
break
;
+
continue
;
+ }
size_t waste = candidate_size % slot_size;
if (waste < best_waste) {
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/libaom/0001-Add-ppc64-target-to-libaom.patch
View file @
ef4c5558
...
...
@@ -8,10 +8,10 @@ Subject: [PATCH] Add ppc64 target to libaom
third_party/libaom/cmake_update.sh | 3 +++
2 files changed, 15 insertions(+)
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/BUILD.gn
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/BUILD.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/third_party/libaom/BUILD.gn
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/BUILD.gn
--- chromium-12
7
.0.6
533.88
.orig/third_party/libaom/BUILD.gn
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/BUILD.gn
@@ -272,6 +272,18 @@
if (current_cpu == "arm64") {
}
}
...
...
@@ -41,10 +41,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/BUILD.gn
if (is_android) {
deps += [ "//third_party/cpu_features:ndk_compat" ]
}
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/cmake_update.sh
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/cmake_update.sh
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/third_party/libaom/cmake_update.sh
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/cmake_update.sh
--- chromium-12
7
.0.6
533.88
.orig/third_party/libaom/cmake_update.sh
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/cmake_update.sh
@@ -192,6 +192,9 @@
gen_config_files linux/arm64-cpu-detect
"${toolchain}/arm64-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 \
${all_platforms}"
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/libaom/0001-Add-pregenerated-config-for-libaom-on-ppc64.patch
View file @
ef4c5558
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
@@ -0,0 +1,95 @@
+;
+; Copyright (c) 2024, Alliance for Open Media. All rights reserved
...
...
@@ -98,10 +98,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi
+HAVE_VSX equ 1
+HAVE_WXWIDGETS equ 0
+STATIC_LINK_JXL equ 0
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved
...
...
@@ -116,10 +116,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi
+#include "aom/aom_codec.h"
+static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_LIBYUV=0 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384";
+const char *aom_codec_build_config(void) {return cfg;}
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
@@ -0,0 +1,99 @@
+/*
+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved
...
...
@@ -220,10 +220,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi
+#define INLINE inline
+#define STATIC_LINK_JXL 0
+#endif // AOM_CONFIG_H_
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
@@ -0,0 +1,1541 @@
+// This file is generated. Do not edit.
+#ifndef AOM_DSP_RTCD_H_
...
...
@@ -1766,10 +1766,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi
+#endif
+
+#endif
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
@@ -0,0 +1,107 @@
+// This file is generated. Do not edit.
+#ifndef AOM_SCALE_RTCD_H_
...
...
@@ -1878,10 +1878,10 @@ Index: chromium-126.0.6478.57/third_party/libaom/source/config/linux/ppc64/confi
+#endif
+
+#endif
Index: chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
Index: chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
+++ chromium-12
7
.0.6
533.88
/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
@@ -0,0 +1,484 @@
+// This file is generated. Do not edit.
+#ifndef AV1_RTCD_H_
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/sandbox/0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch
View file @
ef4c5558
...
...
@@ -10,10 +10,10 @@ More investigation required.
sandbox/linux/seccomp-bpf/trap.cc | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf/trap.cc
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf/trap.cc
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/seccomp-bpf/trap.cc
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf/trap.cc
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/seccomp-bpf/trap.cc
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf/trap.cc
@@ -231,6 +231,20 @@
void Trap::SigSys(int nr, LinuxSigInfo*
SetIsInSigHandler();
}
...
...
@@ -23,9 +23,9 @@ Index: chromium-126.0.6478.57/sandbox/linux/seccomp-bpf/trap.cc
+ // parameter which causes checks against it to fail. For now, manually
+ // negate them back.
+ // TODO(shawn@anastas.io): investigate this issue further
+ auto
c
nr = SECCOMP_SYSCALL(ctx);
+ if (
c
nr == __NR_openat ||
c
nr == __NR_mkdirat ||
c
nr == __NR_faccessat ||
c
nr == __NR_readlinkat ||
+
c
nr == __NR_renameat ||
c
nr == __NR_renameat2 ||
c
nr == __NR_newfstatat ||
c
nr == __NR_unlinkat) {
+ auto nr = SECCOMP_SYSCALL(ctx);
+ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat ||
+ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) {
+ if (static_cast<int>(SECCOMP_PARM1(ctx)) > 0) {
+ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx);
+ }
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/sandbox/0001-sandbox-Enable-seccomp_bpf-for-ppc64.patch
View file @
ef4c5558
...
...
@@ -7,10 +7,10 @@ Subject: [PATCH 1/1] sandbox: Enable seccomp_bpf for ppc64
sandbox/features.gni | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: chromium-12
6
.0.6
478.57
/sandbox/features.gni
Index: chromium-12
7
.0.6
533.88
/sandbox/features.gni
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/features.gni
+++ chromium-12
6
.0.6
478.57
/sandbox/features.gni
--- chromium-12
7
.0.6
533.88
.orig/sandbox/features.gni
+++ chromium-12
7
.0.6
533.88
/sandbox/features.gni
@@ -9,7 +9,8 @@
use_seccomp_bpf = (is_linux || is_chromeos || is_android) &&
(current_cpu == "x86" || current_cpu == "x64" ||
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/sandbox/0001-sandbox-linux-Implement-partial-support-for-ppc64-sy.patch
View file @
ef4c5558
...
...
@@ -17,10 +17,10 @@ GNU/Linux environments, but may require expansion elsewhere.
create mode 100644 sandbox/linux/system_headers/ppc64_linux_syscalls.h
create mode 100644 sandbox/linux/system_headers/ppc64_linux_ucontext.h
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/BUILD.gn
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/BUILD.gn
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/BUILD.gn
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/BUILD.gn
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/BUILD.gn
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/BUILD.gn
@@ -383,6 +383,8 @@
component("sandbox_services") {
source_set("sandbox_services_headers") {
...
...
@@ -30,10 +30,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/BUILD.gn
"system_headers/arm64_linux_syscalls.h",
"system_headers/arm_linux_syscalls.h",
"system_headers/arm_linux_ucontext.h",
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/system_headers/linux_syscalls.h
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/system_headers/linux_syscalls.h
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/system_headers/linux_syscalls.h
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/system_headers/linux_syscalls.h
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/system_headers/linux_syscalls.h
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/system_headers/linux_syscalls.h
@@ -35,5 +35,9 @@
#include "sandbox/linux/system_headers/arm64_linux_syscalls.h"
#endif
...
...
@@ -44,10 +44,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/system_headers/linux_syscalls.h
+
#endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/system_headers/ppc64_linux_syscalls.h
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/system_headers/ppc64_linux_syscalls.h
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/system_headers/ppc64_linux_syscalls.h
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/system_headers/ppc64_linux_syscalls.h
@@ -0,0 +1,12 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
...
...
@@ -61,10 +61,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/system_headers/ppc64_linux_syscalls.
+//TODO: is it necessary to redefine syscall numbers for PPC64?
+
+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/system_headers/ppc64_linux_ucontext.h
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/system_headers/ppc64_linux_ucontext.h
===================================================================
--- /dev/null
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/system_headers/ppc64_linux_ucontext.h
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/system_headers/ppc64_linux_ucontext.h
@@ -0,0 +1,12 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/sandbox/0001-sandbox-linux-Update-IsSyscallAllowed-in-broker_proc.patch
View file @
ef4c5558
...
...
@@ -7,10 +7,10 @@ Subject: [PATCH] sandbox/linux: Update IsSyscallAllowed in broker_process.cc
sandbox/linux/syscall_broker/broker_process.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/syscall_broker/broker_process.cc
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/syscall_broker/broker_process.cc
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/syscall_broker/broker_process.cc
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/syscall_broker/broker_process.cc
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/syscall_broker/broker_process.cc
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/syscall_broker/broker_process.cc
@@ -169,7 +169,7 @@
bool BrokerProcess::IsSyscallBrokerable(
#if defined(__NR_fstatat64)
case __NR_fstatat64:
...
...
This diff is collapsed.
Click to expand it.
patches/ppc64le/sandbox/0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch
View file @
ef4c5558
...
...
@@ -12,10 +12,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64
sandbox/linux/services/syscall_wrappers.cc | 2 +-
6 files changed, 73 insertions(+), 55 deletions(-)
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
@@ -90,7 +90,8 @@
bool IsBaselinePolicyWatched(int sysno)
SyscallSets::IsPrctl(sysno) ||
SyscallSets::IsProcessGroupOrSession(sysno) ||
...
...
@@ -54,10 +54,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/seccomp-bpf-helpers/baseline_policy.
if (SyscallSets::IsSocketCall(sysno))
return RestrictSocketcallCommand();
#endif
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
@@ -36,7 +36,7 @@
#include "sandbox/linux/system_headers/linux_time.h"
...
...
@@ -146,10 +146,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/seccomp-bpf-helpers/syscall_paramete
PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA,
PTRACE_GETREGSET,
#endif
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
@@ -52,7 +52,7 @@
SANDBOX_EXPORT bpf_dsl::ResultExpr Restr
// O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME.
SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands();
...
...
@@ -159,10 +159,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/seccomp-bpf-helpers/syscall_paramete
// Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2),
// sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2).
SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand();
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
@@ -29,7 +29,8 @@
bool SyscallSets::IsAllowedGettime(int s
switch (sysno) {
case __NR_gettimeofday:
...
...
@@ -582,10 +582,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
case __NR_vserver:
#endif
return true;
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
@@ -46,13 +46,14 @@
class SANDBOX_EXPORT SyscallSets {
static bool IsDeniedGetOrModifySocket(int sysno);
...
...
@@ -623,10 +623,10 @@ Index: chromium-126.0.6478.57/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
// Big system V multiplexing system call.
static bool IsSystemVIpc(int sysno);
#endif
Index: chromium-12
6
.0.6
478.57
/sandbox/linux/services/syscall_wrappers.cc
Index: chromium-12
7
.0.6
533.88
/sandbox/linux/services/syscall_wrappers.cc
===================================================================
--- chromium-12
6
.0.6
478.57
.orig/sandbox/linux/services/syscall_wrappers.cc
+++ chromium-12
6
.0.6
478.57
/sandbox/linux/services/syscall_wrappers.cc
--- chromium-12
7
.0.6
533.88
.orig/sandbox/linux/services/syscall_wrappers.cc
+++ chromium-12
7
.0.6
533.88
/sandbox/linux/services/syscall_wrappers.cc
@@ -61,7 +61,7 @@
long sys_clone(unsigned long flags,
#if defined(ARCH_CPU_X86_64)
return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls);
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
…
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment