[csw-maintainers] ld: fatal: relocations remain against allocatable but non-writable sections

Maciej (Matchek) Bliziński maciej at opencsw.org
Sat Jun 16 22:39:08 CEST 2012


2012/6/16 Rafael Ostertag <raos at opencsw.org>:
> On Sat, Jun 16, 2012 at 09:02:55PM +0100, Maciej (Matchek) Blizi??ski wrote:
>> When building gcc-4.7.1, I ran against this error:
>>
>> ld: fatal: relocations remain against allocatable but non-writable sections
>> collect2: error: ld returned 1 exit status
>>
>> It happens when linking the libgnat shared object. It's reproducible,
>> try a gcc4 build from the repository and you'll see it.
>
> SPARC or x86? If x86, 32bit or 64bit?
>
> My first bet would be a missing -pic

Just checked, sparc 32-bit (sparcv8+).


More information about the maintainers mailing list