diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-16 10:43:29 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-16 10:43:29 +0000 |
commit | 977cdd3340b6a8f42cefd20b9f739123d690c9fb (patch) | |
tree | 0247de1c7fa15eaf949bebf8da0f6c8fb6c8dcb0 /libjava | |
parent | 34475802b16c06bf92ebacdd5c3cfb3f449db93d (diff) | |
download | gcc-977cdd3340b6a8f42cefd20b9f739123d690c9fb.tar.gz |
2009-09-16 Andrew Haley <aph@redhat.com>
* libgcj_bc.c (__data_start, data_start, _end): Add dummy usage.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151742 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/libgcj_bc.c | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 829023209cb..03c26b61ac8 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2009-09-16 Andrew Haley <aph@redhat.com> + + * libgcj_bc.c (__data_start, data_start, _end): Add dummy usage. + 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * Makefile.am (libgij_la_LINK, libjvm_la_LINK): New. diff --git a/libjava/libgcj_bc.c b/libjava/libgcj_bc.c index e8da443f5fb..67f00aebfb0 100644 --- a/libjava/libgcj_bc.c +++ b/libjava/libgcj_bc.c @@ -112,3 +112,14 @@ DECLARE_PRIM_TYPE(char) 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}; |