This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Relocatable Symbols in Expression


Hi!

We are developing a port of the GNU Compiler + Assembler for a client
architecture. 
Now the problem being faced is that:

If an immediate operand to an instruction of the assembly language, is
an expression involving more than one relocatable symbols, how is it
handled in output file in elf format. 

What will be the relocation information produced in such a case?

Taking the simple example of a Jump instruction, referenced as 'j':

j label1 + label2

where label1 and label2 are defined in relocatable sections, they might
be the same sections or different relocatable sections.


Gagneet


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]