File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ //! This file tests if the macros defined by the hermit-entry crate,
2+ //! which affect linker .note entries, can actually be used.
3+
4+ #[ cfg( feature = "kernel" ) ]
5+ hermit_entry:: define_abi_tag!( ) ;
6+
7+ #[ cfg( feature = "kernel" ) ]
8+ hermit_entry:: define_entry_version!( ) ;
9+
10+ fn main ( ) { }
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ struct Nhdr32 {
5353macro_rules! define_abi_tag {
5454 ( ) => {
5555 #[ used]
56- #[ link_section = ".note.ABI-tag" ]
56+ #[ unsafe ( link_section = ".note.ABI-tag" ) ]
5757 static ABI_TAG : $crate:: _AbiTag = $crate:: _AbiTag:: new( $crate:: HermitVersion {
5858 major: $crate:: _parse_u128( :: core:: env!( "CARGO_PKG_VERSION_MAJOR" ) ) as u32 ,
5959 minor: $crate:: _parse_u128( :: core:: env!( "CARGO_PKG_VERSION_MINOR" ) ) as u32 ,
You can’t perform that action at this time.
0 commit comments