changeset 2139:83b15d0d30ff

RH676659: Pass -export-dynamic flag to linker using -Wl, as option in gcc 4.6+ is broken 2011-02-13 Andrew John Hughes <ahughes@redhat.com> * NEWS: Updated. 2011-02-11 Omair Majid <omajid@redhat.com> RH676659: Pass -export-dynamic option to linker not gcc. * Makefile.am: Add new patch. * patches/rh676659-gcc-export-dynamic.patch: Pass -Wl,-export-dynamic rather than -export-dynamic.
author Andrew John Hughes <ahughes@redhat.com>
date Sun, 13 Feb 2011 20:26:58 +0000
parents 9d55580ba753
children c1b2edb50af2
files ChangeLog Makefile.am NEWS patches/rh676659-gcc-export-dynamic.patch
diffstat 4 files changed, 27 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 13 19:02:30 2011 +0000
+++ b/ChangeLog	Sun Feb 13 20:26:58 2011 +0000
@@ -1,3 +1,14 @@
+2011-02-13  Andrew John Hughes  <ahughes@redhat.com>
+
+	* NEWS: Updated.
+
+2011-02-11  Omair Majid  <omajid@redhat.com>
+
+	RH676659: Pass -export-dynamic option to linker not gcc.
+	* Makefile.am: Add new patch.
+	* patches/rh676659-gcc-export-dynamic.patch:
+	Pass -Wl,-export-dynamic rather than -export-dynamic.
+
 2011-02-13  Andrew John Hughes  <ahughes@redhat.com>
 
 	* NEWS: Updated.
--- a/Makefile.am	Sun Feb 13 19:02:30 2011 +0000
+++ b/Makefile.am	Sun Feb 13 20:26:58 2011 +0000
@@ -371,7 +371,8 @@
 	patches/openjdk/6795356-proxylazyvalue-leak.patch \
 	patches/openjdk/6687968-pngimagereader_mem_leak.patch \
 	patches/openjdk/6541476-png-iTXt-chunk.patch \
-	patches/openjdk/6782079-png_metadata_oom.patch
+	patches/openjdk/6782079-png_metadata_oom.patch \
+	patches/rh676659-gcc-export-dynamic.patch
 
 if WITH_ALT_HSBUILD
 ICEDTEA_PATCHES += patches/hotspot/$(HSBUILD)/openjdk-6886353-ignore_deoptimizealot.patch \
--- a/NEWS	Sun Feb 13 19:02:30 2011 +0000
+++ b/NEWS	Sun Feb 13 20:26:58 2011 +0000
@@ -19,6 +19,8 @@
   - S6985453, CVE-2010-4471: Java2D font-related system property leak
   - S6927050, CVE-2010-4470: JAXP untrusted component state manipulation
   - Vulnerability in permissions assigned to applets with multiple JARs
+* Bug fixes
+  - RH676659: Pass -export-dynamic flag to linker using -Wl, as option in gcc 4.6+ is broken
 
 New in release 1.8.6 (2011-02-09):
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/rh676659-gcc-export-dynamic.patch	Sun Feb 13 20:26:58 2011 +0000
@@ -0,0 +1,12 @@
+diff -r 55b9f498dbce make/linux/makefiles/gcc.make
+--- openjdk/hotspot/make/linux/makefiles/gcc.make	Thu Feb 10 16:24:29 2011 -0800
++++ openjdk/hotspot/make/linux/makefiles/gcc.make	Fri Feb 11 18:09:21 2011 -0500
+@@ -196,7 +196,7 @@
+ SHARED_FLAG = -shared
+ 
+ # Keep symbols even they are not used
+-AOUT_FLAGS += -export-dynamic
++AOUT_FLAGS += -Wl,-export-dynamic
+ 
+ #------------------------------------------------------------------------
+ # Debug flags