This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgcj missing symbol __data_start


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]