bug-binutils
[Top][All Lists]
Advanced

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

Re: [Bug gas/20692] gas failed on SPARC


From: Nick Clifton
Subject: Re: [Bug gas/20692] gas failed on SPARC
Date: Mon, 17 Oct 2016 10:47:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]