From d6e8e83052ab75e8ed0fe8124ae72b689c04d051 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 30 Dec 2023 14:40:09 +0100 Subject: [PATCH] Fix: [CI] patch in SHF_COMPRESSED symbol for our Linux Generic binaries (#11651) --- .github/workflows/release-linux.yml | 8 ++++++++ os/linux/shf-compressed.patch | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 os/linux/shf-compressed.patch diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index e267a4afa6..5d1fc85d8a 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -97,6 +97,14 @@ jobs: cmake --build . -j $(nproc) cmake --install . ) + + # The container we use is old enough, that it doesn't know SHF_COMPRESSED. + # But, breakpad needs this symbol to exist. So we patch it in our system + # libraries. + ( + cd / + patch -p1 < ${GITHUB_WORKSPACE}/os/linux/shf-compressed.patch + ) echo "::endgroup::" echo "::group::Install audio drivers" diff --git a/os/linux/shf-compressed.patch b/os/linux/shf-compressed.patch new file mode 100644 index 0000000000..6ec7865b31 --- /dev/null +++ b/os/linux/shf-compressed.patch @@ -0,0 +1,10 @@ +--- a/usr/include/elf.h 2023-12-30 13:46:27.038645199 +0100 ++++ b/usr/include/elf.h 2023-12-30 13:46:42.278641893 +0100 +@@ -365,6 +365,7 @@ + required */ + #define SHF_GROUP (1 << 9) /* Section is member of a group. */ + #define SHF_TLS (1 << 10) /* Section hold thread-local data. */ ++#define SHF_COMPRESSED (1 << 11) /* Section with compressed data. */ + #define SHF_MASKOS 0x0ff00000 /* OS-specific. */ + #define SHF_MASKPROC 0xf0000000 /* Processor-specific */ + #define SHF_ORDERED (1 << 30) /* Special ordering requirement