libgcj missing symbol __data_start

Andreas Krebbel krebbel@linux.vnet.ibm.com
Wed Sep 2 12:00:00 GMT 2009


Hi Andrew,

your patch fixes the failures on S/390.

Thanks.

Bye,

-Andreas-


> 2009-09-01  Andrew Haley  <aph@redhat.com>
> 
> 	* libgcj_bc.c (__data_start, data_start, _end): Add dummy usage.
> 
> Index: libgcj_bc.c
> ===================================================================
> --- libgcj_bc.c	(revision 150834)
> +++ libgcj_bc.c	(working copy)
> @@ -112,3 +112,14 @@
>  DECLARE_PRIM_TYPE(float)
>  DECLARE_PRIM_TYPE(double)
>  DECLARE_PRIM_TYPE(void)
> +
> +
> +/* Force executable to export __data_start et al.  */
> +
> +#pragma weak __data_start
> +extern int __data_start[];
> +#pragma weak data_start
> +extern int data_start[];
> +#pragma weak _end
> +extern int _end[];
> +static void *dummy[] __attribute__((used)) = {__data_start, data_start, _end};
> 



More information about the Java mailing list