30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
# magic(5) entry for VoidLibC container files.
|
|
#
|
|
# File extensions:
|
|
# .vle executable (bit 2 = Executable)
|
|
# .vls shared library (default when neither executable nor static)
|
|
# .vla static archive (bit 4 = StaticLibrary)
|
|
#
|
|
# Offset layout (FileHeader, packed, LE):
|
|
# 0 u32 magic = 0x00434C56
|
|
# 4 u16 version_major
|
|
# 6 u16 version_minor
|
|
# 8 u32 flags (bit 0=HasDebug, bit 1=HasCppExports, bit 2=Executable,
|
|
# bit 3=HasDynamicImports, bit 4=StaticLibrary)
|
|
# 12 u16 arch (1 = x86_64)
|
|
#
|
|
# Quick test: file -m vlc.magic <file>
|
|
# System-wide: sudo cp vlc.magic /usr/share/file/magic/vlc
|
|
# cd /usr/share/file && sudo file -C -m magic
|
|
|
|
0 lelong 0x00434C56 VoidLibC container
|
|
>4 leshort x \b v%d
|
|
>6 leshort x \b.%d
|
|
>12 leshort 1 \b, x86_64
|
|
>8 lelong &0x04 \b, executable
|
|
>8 lelong ^0x04 \b, shared library
|
|
>8 lelong &0x10 \b, static archive
|
|
>8 lelong &0x08 \b, dynamically linked
|
|
>8 lelong ^0x08 \b, statically linked
|
|
>8 lelong &0x01 \b, with debug
|