Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae2576a6 authored by James Zern's avatar James Zern
Browse files

codec2,aom/Android.bp: add libcodec2_soft_sanitize_cfi

Which provides 'cfi_assembly_support: true'. This matches the
configuration for dav1d & libvpx, which also use handwritten assembly.

x86-64 assembly code was added to libaom in:
26b58c14b3 enable runtime cpu detection for x86 & x86-64 (aosp/3471077)

Fixes:
```
Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr --------

signal 4 (SIGILL)
../libcodec2_soft_av<version>enc.so (cfi_check_fail)
../libcodec2_soft_av<version>enc.so (cfi_check)
../linker (dl__ZN15CFIShadowWriter7CfiFailEyPvS0_S0)
../linker (loader_cfi_fail)
```

Bug: 361602833, 396001600, 396024245, 395971898, 396001134
Test: TreeHugger
Change-Id: I9cb417ecdbdc5b7c21438dc2baab3b25c753b8e1
parent e2af49f4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ cc_library {
    defaults: [
        "libcodec2_soft-defaults",
        "libcodec2_soft_sanitize_all-defaults",
        "libcodec2_soft_sanitize_cfi-defaults",
    ],

    // coordinated with frameworks/av/media/codec2/components/gav1/Android.bp
@@ -29,6 +30,7 @@ cc_library {
    defaults: [
        "libcodec2_soft-defaults",
        "libcodec2_soft_sanitize_all-defaults",
        "libcodec2_soft_sanitize_cfi-defaults",
    ],

    static_libs: ["libaom"],