Re: 4.7.1 on Solaris 10: ld: fatal: relocations remain against allocatable but non-writable sections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 06/19/2012 07:46 AM, Tom G. Christensen wrote:
>> The fix is probably this commit that was made after 4.7.1 was tagged:
>> http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=176ff0f9a1016553978d6cf41770703e2ad90958
>>
>> I'm starting a build now with this patch included, but it will be some
>> hours before I have a result.
>>
> It works.
> The buildlog shows that -fpic is now being passed to xgcc when building
> the objects used to link libgnat-4.7.so and the linking proceeds without
> issue.
>
> Testresults will be posted in a day or two if all goes well.

another possibility is to not build ada. Not my preference.

The patch which triggers this issues seems to be this :

diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog


index 7e3195a..072a3f2 100644 (file)


--- a/gcc/ada/ChangeLog

+++ b/gcc/ada/ChangeLog

@@ -1,3 +1,8 @@

+2012-06-14  Jakub Jelinek  <jakub@xxxxxxxxxx>

+

+       * gcc-interface/Makefile.in (gnatlib-shared-default): Append

+       $(PICFLAG_FOR_TARGET) to GNATLIBCFLAGS_FOR_C passed to submake.

+

 2012-06-14  Release Manager



        * GCC 4.7.1 released.



diff --git a/gcc/ada/gcc-interface/Makefile.in
b/gcc/ada/gcc-interface/Makefile.in


index ee8db38..f9e7eda 100644 (file)


--- a/gcc/ada/gcc-interface/Makefile.in

+++ b/gcc/ada/gcc-interface/Makefile.in

@@ -2597,7 +2597,7 @@ gnatlib-shared-default:

        $(MAKE) $(FLAGS_TO_PASS) \

              GNATLIBFLAGS="$(GNATLIBFLAGS)" \

             GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \

-            GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \

+            GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \

             MULTISUBDIR="$(MULTISUBDIR)" \

             THREAD_KIND="$(THREAD_KIND)" \

              gnatlib



>

dc

-- 
--
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x1D936C72FA35B44B
+-------------------------+-----------------------------------+
| Dennis Clarke           | Solaris and Linux and Open Source |
| dclarke@xxxxxxxxxxxxx   | Respect for open standards.       |
+-------------------------+-----------------------------------+



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux