[uClibc-cvs] CVS update of uClibc/ldso/ldso/sh (dl-startup.h)

Erik Andersen andersen at codepoet.org
Tue Aug 17 20:00:43 UTC 2004

    Date: Tuesday, August 17, 2004 @ 14:00:43
  Author: andersen
    Path: /var/cvs/uClibc/ldso/ldso/sh

Modified: dl-startup.h (1.7 -> 1.8)

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.


Index: uClibc/ldso/ldso/sh/dl-startup.h
diff -u uClibc/ldso/ldso/sh/dl-startup.h:1.7 uClibc/ldso/ldso/sh/dl-startup.h:1.8
--- uClibc/ldso/ldso/sh/dl-startup.h:1.7	Tue Apr 20 00:33:05 2004
+++ uClibc/ldso/ldso/sh/dl-startup.h	Tue Aug 17 14:00:42 2004
@@ -18,7 +18,7 @@
 "	.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

More information about the uClibc-cvs mailing list