Re: [FFmpeg-devel] [PATCH 2/2] aarch64: Add Armv8.5-A BTI support

2021-11-16 Thread Jonathan Wright
> +#if (GNU_PROPERTY_AARCH64_BTI != 0) > +.pushsection .note.gnu.property, "a"; > +.balign 8; > +.long 4; > +.long 0x10; > +.long 0x5; > +.asciz "GNU"; > +.long 0xc000; /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */ > +.long 4; > +.long GNU_PROPERTY_AARCH64_BTI;

Re: [FFmpeg-devel] [PATCH 1/2] aarch64: Use ret x instead of br x where possible

2021-11-12 Thread Jonathan Wright
Resend patch as a text attachment... Apologies, Jonathan From: ffmpeg-devel on behalf of Jonathan Wright Sent: 12 November 2021 17:30 To: ffmpeg-devel@ffmpeg.org Cc: mar...@martin.st Subject: [FFmpeg-devel] [PATCH 1/2] aarch64: Use ret x instead of br

[FFmpeg-devel] [PATCH 2/2] aarch64: Add Armv8.5-A BTI support

2021-11-12 Thread Jonathan Wright
Hi, This patch adds Branch Target Identifiers (BTIs) to all functions defined in AArch64 assembly files. Most of the BTI landing pads are added automatically by the 'function' macro. BTI support is turned on or off at compile time based on the presence of the __ARM_FEATURE_BTI_DEFAULT feature mac

[FFmpeg-devel] [PATCH 1/2] aarch64: Use ret x instead of br x where possible

2021-11-12 Thread Jonathan Wright
Hi, This patch changes all AArch64 assembly code to use: ret x instead of: br x "ret x" is already used in a lot of places so this patch makes it consistent across the code base. This does not change behavior or performance. In addition, this change reduces the number of landing pad