Fix profiling (part 1):
o Functions are 4-byte aligned for Book-E. o We get compiled with -DPROF and not -DGPROF if profiling is enabled.
This commit is contained in:
parent
6e4b813833
commit
cfbcffa248
@ -63,7 +63,7 @@
|
||||
#define _ENTRY(x) \
|
||||
.text; .align 4; .globl x; .type x,@function; x:
|
||||
|
||||
#ifdef GPROF
|
||||
#ifdef PROF
|
||||
# define _PROF_PROLOGUE mflr 0; stw 0,4(1); bl _mcount
|
||||
#else
|
||||
# define _PROF_PROLOGUE
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
#define _MCOUNT_DECL void __mcount
|
||||
|
||||
#define FUNCTION_ALIGNMENT 16
|
||||
#define FUNCTION_ALIGNMENT 4
|
||||
|
||||
typedef u_int fptrdiff_t;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user