[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/20692] gas failed on SPARC
From: |
nickc at redhat dot com |
Subject: |
[Bug gas/20692] gas failed on SPARC |
Date: |
Mon, 17 Oct 2016 09:48:13 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20692
--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
Hi Igor,
>> You could try adding "-D.volatile= -D.nonvolatile= -Wa,--no-relax" to the
> your solution doesn't work.
> GAS command line on SPARC not accepted -Wa,--no-relax
> we can use -no-relax
Oops - I had too many dashes, sorry about that.
> - but it is not fixed my problem
Well, it does fix the assembler problem you had. Now you have a linker/
source file problem.
> and i can see:
> Text relocation remains referenced
> against symbol offset in file
> _GLOBAL_OFFSET_TABLE_ 0x214 pics/_rtbootld.o
> _GLOBAL_OFFSET_TABLE_ 0x194 pics/door.o
> ld: fatal: relocations remain against allocatable but non-writable sections
Well the linker error messages seems pretty clear. My guess would be
that _rtbootld.o and door.o come from assembler source files, or else
C/C++ source files containing inline assembler directives, and that
they are creating special sections of their own. Can you modify the
sources files ? If so you could use "objdump -r pics/<object file>"
to find out which sections have these problematic relocations, and
then you could edit the sources to add the writeable attribute to the
section declarations.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.