Re: [FFmpeg-devel] [PATCH v6] Mark C globals with small code model

2025-05-06 Thread Pranav Kant via ffmpeg-devel
Patch version 6: - Added support for all `cextern` symbols. - Added attribute_mcmodel_small attribute to other DECLARE_ASM* macros. - Used DECLARE_ASM* macros for symbols that are being accessed from assembly but still marked with non-ASM DECLARE macros. On Tue, May 6, 2025 at 4:25 PM Pranav Kant

[FFmpeg-devel] [PATCH v6] Mark C globals with small code model

2025-05-06 Thread Pranav Kant via ffmpeg-devel
By default, all globals in C/C++ compiled by clang are allocated in non-large data sections. See [1] for background on code models. For PIC (Position independent code), this is fine as long as binary is small but as binary size increases, users maybe want to use medium/large code models (-mcmodel=m