mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
Add __bss16() macro, and allow use of .bss16 section by removing
link-time check for section overlaps. (In order to avoid wasting space in the executable image, .bss16 will overlap with the following section, which is .text).
This commit is contained in:
@@ -27,6 +27,14 @@ extern char *text16;
|
||||
__attribute__ (( section ( ".data16" ) )) \
|
||||
_data16_ ## variable array __asm__ ( #variable )
|
||||
|
||||
#define __bss16( variable ) \
|
||||
__attribute__ (( section ( ".bss16" ) )) \
|
||||
_data16_ ## variable __asm__ ( #variable )
|
||||
|
||||
#define __bss16_array( variable, array ) \
|
||||
__attribute__ (( section ( ".bss16" ) )) \
|
||||
_data16_ ## variable array __asm__ ( #variable )
|
||||
|
||||
#define __text16( variable ) \
|
||||
__attribute__ (( section ( ".text16.data" ) )) \
|
||||
_text16_ ## variable __asm__ ( #variable )
|
||||
|
||||
Reference in New Issue
Block a user