This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: A testcase anad a patch for the __gmon_start__ problem on PPC.
Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:
|> Index: sysdeps/generic/initfini.c
|> ===================================================================
|> RCS file: /cvs/glibc/libc/sysdeps/generic/initfini.c,v
|> retrieving revision 1.4
|> diff -u -p -r1.4 initfini.c
|> --- sysdeps/generic/initfini.c 2000/09/10 08:11:37 1.4
|> +++ sysdeps/generic/initfini.c 2000/10/12 19:52:25
|> @@ -61,13 +61,20 @@ asm ("\n/*@TESTS_END*/");
|> /* The beginning of _init: */
|> asm ("\n/*@_init_PROLOG_BEGINS*/");
|>
|> +#ifdef __powerpc__
|> +#define GMON_START_COMPAT(a) (*(unsigned int *) (a) != 0x48000002 \
|> + && ((*(unsigned int *) (a)) >> 16) != 0x3960)
|> +#else
|> +#define GMON_START_COMPAT(a) 1
|> +#endif
|> +
Don't put architecture specific definitions in a generic file. Please
create a file sysdeps/powerpc/initfini.c and define your macro here.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg