Browse Source

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
Eric Andersen 21 years ago
parent
commit
ec448a42f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldso/ldso/sh/dl-startup.h

+ 1 - 1
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