--- warning: DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github.com/duckdb/community-extensions repository, check README there title: disasm excerpt: | DuckDB Community Extensions Binary format + entry-point probe in SQL — container (PE/ELF/Mach-O/fat) and architecture from headers, entry point with file offset and section, bounded against hostile input extension: name: disasm description: Binary format + entry-point probe in SQL — container (PE/ELF/Mach-O/fat) and architecture from headers, entry point with file offset and section, bounded against hostile input version: 0.1.0 language: Rust build: cargo license: MIT excluded_platforms: "wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools;windows_amd64_mingw;linux_amd64_musl" requires_toolchains: "rust;python3" maintainers: - alitrack repo: github: alitrack/duckdb-disasm ref: e9a5d35686e69bf2c828c02f9d4177d3b9f34b60 ref_next: e9a5d35686e69bf2c828c02f9d4177d3b9f34b60 docs: hello_world: | INSTALL disasm FROM community; LOAD disasm; -- Container + architecture straight from the headers SELECT disasm_format(from_hex('7f454c46')).container; -- elf -- Unrecognized blobs are total: container='raw', detail fields NULL SELECT disasm_format(CAST('hello' AS BLOB)).container; -- raw -- Wire it to real files: SELECT disasm_entrypoint(read_blob('a.out')); extended_description: | ## disasm — binary triage in SQL Total and bounded: adversarial section sizes are clamped, so hostile input never errors — unrecognized blobs come back as `container='raw'` with NULL detail fields. | Function | Returns | Notes | |---|---|---| | `disasm_format(blob)` | STRUCT | `container` (pe/elf/macho/fat-macho/raw), arch, mode, bits, endian, entry | | `disasm_entrypoint(blob)` | STRUCT | arch, mode, vaddr, file_off, section | → [GitHub](https://github.com/alitrack/duckdb-disasm) extension_star_count: 0 extension_star_count_pretty: 0 extension_download_count: null extension_download_count_pretty: n/a image: '/images/community_extensions/social_preview/preview_community_extension_disasm.png' layout: community_extension_doc --- ### Compatibility Matrix This table covers all DuckDB releases that have not reached [end-of-life](https://duckdb.org/release_calendar), including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.
| Platform | 1.4.4 | 1.4.5 | 1.5.5 | 1.5.6 | 2.0.0 | | :--- | :---: | :---: | :---: | :---: | :---: | | Linux AMD64 | ❌ | ❌ | ❌ | ❌ | ✅ | | Linux ARM64 | ❌ | ❌ | ❌ | ❌ | ✅ | | macOS AMD64 | ❌ | ❌ | ❌ | ❌ | ❌ | | macOS ARM64 | ❌ | ❌ | ❌ | ❌ | ✅ | | Windows AMD64 | ❌ | ❌ | ❌ | ❌ | ✅ | | Windows ARM64 | ❌ | ❌ | ❌ | ❌ | ❌ | | WebAssembly | ❌ | ❌ | ❌ | ❌ | ❌ | ### Installing and Loading ```sql INSTALL {{ page.extension.name }} FROM community; LOAD {{ page.extension.name }}; ``` {% if page.docs.hello_world %} ### Example ```sql {{ page.docs.hello_world }}``` {% endif %} {% if page.docs.extended_description %} ### About {{ page.extension.name }} {{ page.docs.extended_description }} {% endif %} ### Added Functions | function_name | function_type | description | comment | examples | |-------------------|---------------|-------------|---------|----------| | disasm_entrypoint | scalar | NULL | NULL | | | disasm_format | scalar | NULL | NULL | | ### Overloaded Functions This extension does not add any function overloads. ### Added Types This extension does not add any types. ### Added Settings | name | description | input_type | scope | aliases | typed_value | |----------------|---------------------------------------------------------|------------|--------|---------|-------------| | temp_directory | Set the directory to which temporary files are written. | VARCHAR | GLOBAL | [] | post.db.tmp |