mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-23 19:51:46 +00:00
<name>_size variable is no longer needed, since we don't copy the code.
However, it's worth adding a .size directive so that objdump reports the correct sizes for the code fragments.
This commit is contained in:
parent
9fcded3d23
commit
9e1dd6402d
@ -77,7 +77,6 @@ extern void remove_from_rm_stack ( void *data, size_t size );
|
||||
/* REAL_FRAGMENT: Declare and define a real-mode code fragment in .text16 */
|
||||
#define REAL_FRAGMENT( name, asm_code_str ) \
|
||||
extern void name ( void ); \
|
||||
extern char name ## _size[]; \
|
||||
__asm__ __volatile__ ( \
|
||||
".section \".text16\"\n\t" \
|
||||
".code16\n\t" \
|
||||
@ -85,8 +84,7 @@ extern void remove_from_rm_stack ( void *data, size_t size );
|
||||
#name ":\n\t" \
|
||||
asm_code_str "\n\t" \
|
||||
"ret\n\t" \
|
||||
#name "_end:\n\t" \
|
||||
".equ " #name "_size, " #name "_end - " #name "\n\t" \
|
||||
".size " #name ", . - " #name "\n\t" \
|
||||
".code32\n\t" \
|
||||
".previous\n\t" \
|
||||
: : \
|
||||
|
Loading…
Reference in New Issue
Block a user