-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
register init failed #25335
Copy link
Copy link
Closed as duplicate of#24330
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Description
Zig Version
0.15.1
Steps to Reproduce and Observed Behavior
comptime {
const init_array = [1]*const fn () callconv(.c) void{&ModuleImpl.module_init};
@export(&init_array, .{ .linkage = .strong, .name = "init_array", .section = ".init_array" });
}It worked with arm64 and arm in 0.15.1.
Try to build x86_64-linux-ohos failed in 0.15.1, it worked in 0.14.1.
error: Unimplemented: ExportOptions.section
@export(&init_array, .{ .linkage = .strong, .name = "init_array", .section = ".init_array" });
Expected Behavior
It should work in 0.15.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior