2023-05-11 11:11:00 +00:00
|
|
|
# beacon_chain
|
2024-01-02 15:15:44 +00:00
|
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
2023-05-11 11:11:00 +00:00
|
|
|
# Licensed and distributed under either of
|
|
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
|
|
|
#if defined(__APPLE__)
|
|
|
|
# define cdecl(s) _##s
|
|
|
|
#else
|
|
|
|
# define cdecl(s) s
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__linux__)
|
2023-05-12 07:57:49 +00:00
|
|
|
.section .note.GNU-stack, "", @progbits
|
2023-05-11 11:11:00 +00:00
|
|
|
.section .rodata,"a",@progbits
|
|
|
|
#elif defined(__APPLE__)
|
|
|
|
.section __TEXT,__const
|
|
|
|
#elif defined(__WIN32__)
|
|
|
|
.section .rdata,"dr"
|
|
|
|
#else
|
|
|
|
.text
|
|
|
|
#endif
|
|
|
|
|
|
|
|
# name_data = start of data
|
|
|
|
# name_end = end of data (without alignment)
|
|
|
|
# name = 64-bit pointer to data
|
|
|
|
# name_size = 64-bit length in bytes
|
|
|
|
|
|
|
|
eth2_mainnet_genesis_data:
|
2023-06-04 14:33:43 +00:00
|
|
|
.incbin "eth2-networks/shared/mainnet/genesis.ssz"
|
2023-05-11 11:11:00 +00:00
|
|
|
eth2_mainnet_genesis_end:
|
|
|
|
.global cdecl(eth2_mainnet_genesis_size)
|
2023-08-04 20:49:12 +00:00
|
|
|
.p2align 3
|
2023-05-11 11:11:00 +00:00
|
|
|
cdecl(eth2_mainnet_genesis_size):
|
|
|
|
.quad eth2_mainnet_genesis_end - eth2_mainnet_genesis_data
|
|
|
|
|
|
|
|
eth2_sepolia_genesis_data:
|
2023-06-04 14:33:43 +00:00
|
|
|
.incbin "sepolia/bepolia/genesis.ssz"
|
2023-05-11 11:11:00 +00:00
|
|
|
eth2_sepolia_genesis_end:
|
|
|
|
.global cdecl(eth2_sepolia_genesis_size)
|
2023-08-04 20:49:12 +00:00
|
|
|
.p2align 3
|
2023-05-11 11:11:00 +00:00
|
|
|
cdecl(eth2_sepolia_genesis_size):
|
|
|
|
.quad eth2_sepolia_genesis_end - eth2_sepolia_genesis_data
|
|
|
|
|
2023-08-03 08:36:45 +00:00
|
|
|
#if defined(__linux__) && (defined(__pie__) || defined(__pic__))
|
2023-05-12 07:57:49 +00:00
|
|
|
.section .data.rel.ro,"aw",@progbits
|
|
|
|
#elif defined(__APPLE__)
|
2023-05-11 11:11:00 +00:00
|
|
|
.section __DATA,__const
|
|
|
|
#endif
|
|
|
|
|
|
|
|
.global cdecl(eth2_mainnet_genesis)
|
|
|
|
.p2align 3
|
|
|
|
cdecl(eth2_mainnet_genesis):
|
|
|
|
.quad eth2_mainnet_genesis_data
|
|
|
|
|
|
|
|
.global cdecl(eth2_sepolia_genesis)
|
|
|
|
.p2align 3
|
|
|
|
cdecl(eth2_sepolia_genesis):
|
|
|
|
.quad eth2_sepolia_genesis_data
|