libgcj missing symbol __data_start

Andrew Haley aph@redhat.com
Wed Sep 16 10:32:00 GMT 2009


Andrew Haley wrote:
>> 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};

I committed this.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /