Subject: Re: SH3 ELF
To: Hiroyuki Bessho <bsh@grotto.iijnet.or.jp>
From: SAITOH Masanobu <masanobu@iij.ad.jp>
List: port-sh3
Date: 11/09/2000 05:11:23
> My question is
>
> Do we need to follow this way for NetBSD/sh3?
>
> It causes some problems when you build userland for SH3 ELF. If we
> really want underscores on C labels, we need some "fixes", for example
> to cdef_elf.h:
>
> #if defined(__sh3__)
> #define _C_LABEL(x) __CONCAT(_,x)
> +#define _C_LABEL_PREFIX "_"
> #else
> #define _C_LABEL(x) x
> +#define _C_LABEL_PREFIX ""
> #endif
sh3/include/asm.h defines:
#ifdef __STDC__
# define _C_LABEL(x) _ ## x
#else
# define _C_LABEL(x) _/**/x
#endif
#define _ASM_LABEL(x) x
Am I misunderstanding?
----------------------------------------------------------
SAITOH Masanobu (masanobu@iij.ad.jp
msaitoh@netbsd.org)