diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-11 21:05:29 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-11 21:05:29 +0200 |
commit | 232f49167aa7f01a95eb84860673378c986341ad (patch) | |
tree | 40cfbe68357854b893a30fcc6a8fde8dc22e66af /i386/include | |
parent | 9e00f643fdace89118d41397e180c1de5a7ca541 (diff) | |
download | gnumach-232f49167aa7f01a95eb84860673378c986341ad.tar.gz gnumach-232f49167aa7f01a95eb84860673378c986341ad.tar.bz2 gnumach-232f49167aa7f01a95eb84860673378c986341ad.zip |
Set function type on symbols created by ENTRY macro
* i386/include/mach/i386/asm.h (ENTRY, ENTRY2, ASENTRY, Entry): Use .type
@function on created entries.
Diffstat (limited to 'i386/include')
-rw-r--r-- | i386/include/mach/i386/asm.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/i386/include/mach/i386/asm.h b/i386/include/mach/i386/asm.h index 4e3b589a..45b848df 100644 --- a/i386/include/mach/i386/asm.h +++ b/i386/include/mach/i386/asm.h @@ -96,24 +96,24 @@ #ifdef GPROF #define MCOUNT .data; gLB(9) .long 0; .text; lea LBb(x, 9),%edx; call mcount -#define ENTRY(x) .globl EXT(x); .p2align TEXT_ALIGN; LEXT(x) ; \ +#define ENTRY(x) .globl EXT(x); .type EXT(x), @function; .p2align TEXT_ALIGN; LEXT(x) ; \ pushl %ebp; movl %esp, %ebp; MCOUNT; popl %ebp; -#define ENTRY2(x,y) .globl EXT(x); .globl EXT(y); \ +#define ENTRY2(x,y) .globl EXT(x); .type EXT(x), @function; .globl EXT(y); .type EXT(y), @function; \ .p2align TEXT_ALIGN; LEXT(x) LEXT(y) -#define ASENTRY(x) .globl x; .p2align TEXT_ALIGN; gLB(x) ; \ +#define ASENTRY(x) .globl x; .type x, @function; .p2align TEXT_ALIGN; gLB(x) ; \ pushl %ebp; movl %esp, %ebp; MCOUNT; popl %ebp; #define END(x) .size x,.-x #else /* GPROF */ #define MCOUNT -#define ENTRY(x) .globl EXT(x); .p2align TEXT_ALIGN; LEXT(x) -#define ENTRY2(x,y) .globl EXT(x); .globl EXT(y); \ +#define ENTRY(x) .globl EXT(x); .type EXT(x), @function; .p2align TEXT_ALIGN; LEXT(x) +#define ENTRY2(x,y) .globl EXT(x); .type EXT(x), @function; .globl EXT(y); .type EXT(y), @function; \ .p2align TEXT_ALIGN; LEXT(x) LEXT(y) -#define ASENTRY(x) .globl x; .p2align TEXT_ALIGN; gLB(x) +#define ASENTRY(x) .globl x; .type x, @function; .p2align TEXT_ALIGN; gLB(x) #define END(x) .size x,.-x #endif /* GPROF */ -#define Entry(x) .globl EXT(x); .p2align TEXT_ALIGN; LEXT(x) +#define Entry(x) .globl EXT(x); .type EXT(x), @function; .p2align TEXT_ALIGN; LEXT(x) #define DATA(x) .globl EXT(x); .p2align DATA_ALIGN; LEXT(x) #endif /* _MACH_I386_ASM_H_ */ |