mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avutil/x86/x86util: define .text section additionally to COMDAT one
This is needed to cover the case when assembled source doesn't have
.text section. NASM documentation suggest to add $ suffix to section
name for COMDAT in .text, but this actually requires the main .text
section to exist also. And use less generic suffix for our dummy
sub-section.
Third time's the charm.
Fixes: 80cd067715
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -1028,9 +1028,11 @@
|
||||
; on such files. Emit a dummy byte in a COMDAT section to work around this.
|
||||
; The linker will discard it since __x86util_notref is not referenced anywhere.
|
||||
%ifidn __OUTPUT_FORMAT__,win64
|
||||
section .text$1 comdat=2:__x86util_notref
|
||||
section .text
|
||||
section .text$__x86util_notref comdat=2:__x86util_notref
|
||||
db 0
|
||||
%elifidn __OUTPUT_FORMAT__,win32
|
||||
section .text$1 comdat=2:__x86util_notref
|
||||
section .text
|
||||
section .text$__x86util_notref comdat=2:__x86util_notref
|
||||
db 0
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user