Skip to contentSkip to conversation

gdb: fix crashes when debugging threads with Arm Pointer Authentication enabled

PATCH New [email protected] 1 participant 3 messages May 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 gdb: fix crashes when debugging threads with Arm Pointer Authentication enabled

From: Ross Burton <[email protected]>

---
 meta/recipes-devtools/gdb/gdb.inc             |   1 +
 ...r-valid-inferior-thread-regcache-bef.patch | 286 ++++++++++++++++++
 2 files changed, 287 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0001-aarch64-Check-for-valid-inferior-thread-regcache-bef.patch
meta/recipes-devtools/gdb/gdb.inc +1 -0
index 9457c27f8b7..8589de62ffd 100644
@@ -15,6 +15,7 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
            file://0008-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
            file://0009-gdbserver-linux-low.cc-Fix-a-typo-in-ternary-operato.patch \
            file://add-missing-ldflags.patch \
+           file://0001-aarch64-Check-for-valid-inferior-thread-regcache-bef.patch \
            "
 SRC_URI[sha256sum] = "115ad5c18d69a6be2ab15882d365dda2a2211c14f480b3502c6eba576e2e95a0"
 
meta/recipes-devtools/gdb/gdb/0001-aarch64-Check-for-valid-inferior-thread-regcache-bef.patch new file +286 -0

286 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/3 Revert "ffmpeg: move ffmpeg config into packageconfig"

From: Ross Burton <[email protected]>

There's very little reason to expose "build shared libraries", "build position-independent code", or "enable threads" as recipe-specific packageconfig options. Revert the commit which did this and explicitly set the relevant options in EXTRA_OECONF.

This reverts commit b6e67e3d287407c6f022bbe672d9d206d90a12a4.

---
 meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb +6 -9
index 7db43a82816..1cd98e63c37 100644
@@ -40,8 +40,7 @@ DEPENDS = "nasm-native"
 inherit autotools pkgconfig
 
 PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc \
-                   alsa bzlib lzma pic pthreads shared theora zlib \
-                   ${@bb.utils.contains('AVAILTUNES', 'mips32r2', 'mips32r2', '', d)} \
+                   alsa bzlib lzma theora zlib \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}"
 
 # libraries to build in addition to avutil
@@ -80,13 +79,6 @@ PACKAGECONFIG[xcb] = "--enable-libxcb,--disable-libxcb,libxcb"
 PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv"
 PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
 
-# other configuration options
-PACKAGECONFIG[mips32r2] = ",--disable-mipsdsp --disable-mipsdspr2"
-PACKAGECONFIG[pic] = "--enable-pic"
-PACKAGECONFIG[pthreads] = "--enable-pthreads,--disable-pthreads"
-PACKAGECONFIG[shared] = "--enable-shared"
-PACKAGECONFIG[strip] = ",--disable-stripping"
-
 # Check codecs that require --enable-nonfree
 USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}"
 
@@ -97,6 +89,10 @@ def cpu(d):
     return 'generic'
 
 EXTRA_OECONF = " \
+    --disable-stripping \
+    --enable-pic \
+    --enable-shared \
+    --enable-pthreads \
     ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
     \
     --cross-prefix=${TARGET_PREFIX} \
@@ -114,6 +110,7 @@ EXTRA_OECONF = " \
     --libdir=${libdir} \
     --shlibdir=${libdir} \
     --datadir=${datadir}/ffmpeg \
+    ${@bb.utils.contains('AVAILTUNES', 'mips32r2', '', '--disable-mipsdsp --disable-mipsdspr2', d)} \
     --cpu=${@cpu(d)} \
     --pkg-config=pkg-config \
 "
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/3 ffmpeg: add v4l2 PACKAGECONFIG

In reply to [email protected]

From: Ross Burton <[email protected]>

Can't be enabled by default as v4l-utils is in meta-oe.

---
 meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb +1 -0
index 1cd98e63c37..f84d9bb6d03 100644
@@ -70,6 +70,7 @@ PACKAGECONFIG[sdl2] = "--enable-sdl2,--disable-sdl2,virtual/libsdl2"
 PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex"
 PACKAGECONFIG[srt] = "--enable-libsrt,--disable-libsrt,srt"
 PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora libogg"
+PACKAGECONFIG[v4l2] = "--enable-libv4l2,--disable-libv4l2,v4l-utils"
 PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva"
 PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
 PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx"
Signature · 1 line
2.34.1