qemu/rust/qemu-api-macros
Paolo Bonzini 4f7521916d rust: modernize link_section usage for ELF platforms
Some newer ABI implementations do not provide .ctors; and while
some linkers rewrite .ctors into .init_array, not all of them do.
Use the newer .init_array ABI, which works more reliably, and
apply it to all non-Apple, non-Windows platforms.

This is similar to how the ctor crate operates; without this change,
"#[derive(Object)]" does not work on Fedora 41.

Reviewed-by: Junjie Mao <junjie.mao@hotmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-11-05 14:18:15 +01:00
..
src rust: modernize link_section usage for ELF platforms 2024-11-05 14:18:15 +01:00
Cargo.lock rust: add utility procedural macro crate 2024-10-11 12:32:17 +02:00
Cargo.toml rust: add utility procedural macro crate 2024-10-11 12:32:17 +02:00
meson.build meson: import rust module into a global variable 2024-11-05 14:18:15 +01:00
README.md rust: add utility procedural macro crate 2024-10-11 12:32:17 +02:00

qemu-api-macros - Utility macros for defining QEMU devices