From ec448a42f4a100b3c692f75e6dc7c8b6c16681a0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 17 Aug 2004 20:00:42 +0000 Subject: Carl SHAW writes: I finally tracked down the problem with SH4 shared library loading - in file ldso/ldso/sh/dl-startup.h, the line #define DL_BOOT(X) static void __attribute_used__ _dl_boot2 (X) should be #define DL_BOOT(X) static void* __attribute_used__ _dl_boot2 (X) otherwise the application code will never be called and _dl_boot will just return causing a segmentation fault. Carl --- ldso/ldso/sh/dl-startup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldso') diff --git a/ldso/ldso/sh/dl-startup.h b/ldso/ldso/sh/dl-startup.h index 78e844a64..429c0e6eb 100644 --- a/ldso/ldso/sh/dl-startup.h +++ b/ldso/ldso/sh/dl-startup.h @@ -18,7 +18,7 @@ asm("" \ " .previous\n" \ ); -#define DL_BOOT(X) static void __attribute_used__ _dl_boot2 (X) +#define DL_BOOT(X) static void* __attribute_used__ _dl_boot2 (X) /* * Get a pointer to the argv array. On many platforms this can be just -- cgit v1.2.3