Re: libgcj missing symbol __data_start

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Andrew Haley wrote:

> 
> 2009-09-01  Andrew Haley  <[email protected]>
> 
> 	* 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.