diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-08-17 20:00:42 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-08-17 20:00:42 +0000 |
commit | ec448a42f4a100b3c692f75e6dc7c8b6c16681a0 (patch) | |
tree | fe966ec6b8cd778c13c2440cd0d5994086bc6b32 | |
parent | ddca98cc5dfc2317c41415dee854ca54461a50c8 (diff) |
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
-rw-r--r-- | ldso/ldso/sh/dl-startup.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |