generate PIC code.
Change-Id: I6740c30e2782ae203aa7ddaeaf3b233e90de9c4d
This commit is contained in:
parent
7939908c83
commit
0aa8289c6f
@ -93,7 +93,7 @@ name: \
|
|||||||
# define SETRTNVAL movl DEST(%esp), %eax
|
# define SETRTNVAL movl DEST(%esp), %eax
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SHARED
|
#if (defined SHARED || defined __PIC__)
|
||||||
# define ENTRANCE PUSH (%ebx);
|
# define ENTRANCE PUSH (%ebx);
|
||||||
# define RETURN_END POP (%ebx); ret
|
# define RETURN_END POP (%ebx); ret
|
||||||
# define RETURN RETURN_END; CFI_PUSH (%ebx)
|
# define RETURN RETURN_END; CFI_PUSH (%ebx)
|
||||||
@ -313,7 +313,7 @@ L(128bytesormore):
|
|||||||
PUSH (%ebx)
|
PUSH (%ebx)
|
||||||
mov $SHARED_CACHE_SIZE, %ebx
|
mov $SHARED_CACHE_SIZE, %ebx
|
||||||
#else
|
#else
|
||||||
# ifdef SHARED
|
# if (defined SHARED || defined __PIC__)
|
||||||
call __i686.get_pc_thunk.bx
|
call __i686.get_pc_thunk.bx
|
||||||
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
||||||
mov __x86_shared_cache_size@GOTOFF(%ebx), %ebx
|
mov __x86_shared_cache_size@GOTOFF(%ebx), %ebx
|
||||||
@ -331,7 +331,7 @@ L(128bytesormore):
|
|||||||
# define RESTORE_EBX_STATE CFI_PUSH (%ebx)
|
# define RESTORE_EBX_STATE CFI_PUSH (%ebx)
|
||||||
cmp $DATA_CACHE_SIZE, %ecx
|
cmp $DATA_CACHE_SIZE, %ecx
|
||||||
#else
|
#else
|
||||||
# ifdef SHARED
|
# if (defined SHARED || defined __PIC__)
|
||||||
# define RESTORE_EBX_STATE
|
# define RESTORE_EBX_STATE
|
||||||
call __i686.get_pc_thunk.bx
|
call __i686.get_pc_thunk.bx
|
||||||
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
||||||
@ -436,7 +436,7 @@ L(128bytesormore_nt):
|
|||||||
jae L(128bytesormore_nt)
|
jae L(128bytesormore_nt)
|
||||||
sfence
|
sfence
|
||||||
L(shared_cache_loop_end):
|
L(shared_cache_loop_end):
|
||||||
#if defined DATA_CACHE_SIZE || !defined SHARED
|
#if defined DATA_CACHE_SIZE || !(defined SHARED || defined __PIC__)
|
||||||
POP (%ebx)
|
POP (%ebx)
|
||||||
#endif
|
#endif
|
||||||
BRANCH_TO_JMPTBL_ENTRY (L(table_16_128bytes))
|
BRANCH_TO_JMPTBL_ENTRY (L(table_16_128bytes))
|
||||||
|
@ -104,7 +104,7 @@ name: \
|
|||||||
#define PUSH(REG) pushl REG; CFI_PUSH (REG)
|
#define PUSH(REG) pushl REG; CFI_PUSH (REG)
|
||||||
#define POP(REG) popl REG; CFI_POP (REG)
|
#define POP(REG) popl REG; CFI_POP (REG)
|
||||||
|
|
||||||
#ifdef SHARED
|
#if (defined SHARED || defined __PIC__)
|
||||||
# define PARMS 8 /* Preserve EBX. */
|
# define PARMS 8 /* Preserve EBX. */
|
||||||
# define ENTRANCE PUSH (%ebx);
|
# define ENTRANCE PUSH (%ebx);
|
||||||
# define RETURN_END POP (%ebx); ret
|
# define RETURN_END POP (%ebx); ret
|
||||||
@ -216,7 +216,7 @@ L(48bytesormore):
|
|||||||
#ifdef SHARED_CACHE_SIZE_HALF
|
#ifdef SHARED_CACHE_SIZE_HALF
|
||||||
cmp $SHARED_CACHE_SIZE_HALF, %ecx
|
cmp $SHARED_CACHE_SIZE_HALF, %ecx
|
||||||
#else
|
#else
|
||||||
# ifdef SHARED
|
# if (defined SHARED || defined __PIC__)
|
||||||
call __i686.get_pc_thunk.bx
|
call __i686.get_pc_thunk.bx
|
||||||
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
||||||
cmp __x86_shared_cache_size_half@GOTOFF(%ebx), %ecx
|
cmp __x86_shared_cache_size_half@GOTOFF(%ebx), %ecx
|
||||||
@ -287,7 +287,7 @@ L(shl_0_gobble):
|
|||||||
#ifdef DATA_CACHE_SIZE_HALF
|
#ifdef DATA_CACHE_SIZE_HALF
|
||||||
cmp $DATA_CACHE_SIZE_HALF, %ecx
|
cmp $DATA_CACHE_SIZE_HALF, %ecx
|
||||||
#else
|
#else
|
||||||
# ifdef SHARED
|
# if (defined SHARED || defined __PIC__)
|
||||||
call __i686.get_pc_thunk.bx
|
call __i686.get_pc_thunk.bx
|
||||||
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
add $_GLOBAL_OFFSET_TABLE_, %ebx
|
||||||
cmp __x86_data_cache_size_half@GOTOFF(%ebx), %ecx
|
cmp __x86_data_cache_size_half@GOTOFF(%ebx), %ecx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user