public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* What is to be updated in reginfo section coprocessor register mask?
@ 2004-04-24 14:17 K. Ahmed Feroz
  2004-04-27  8:36 ` Ben Elliston
  0 siblings, 1 reply; 2+ messages in thread
From: K. Ahmed Feroz @ 2004-04-24 14:17 UTC (permalink / raw)
  To: gcc


Hi,

I have some query regarding the ".reginfo section" produced by gnu
assembler in the elf output file.

The .reginfo section contains information about general purpose
registers used in the assembly file, the coprocessor registers used in
the assembly file and some offset value for the GP register.

However, the coprocessor register mask and the value for the offset of
GP register are always initialized to 0(zero).


Is this the correct behaviour?



Secondly, if there is some relocation with respect to GP register,
should the offset of GP to be subtracted from the addend at which
relocation is to be done?

For example,
.lcomm	l_var2.3,8
sw	$2,l_var2.3

The opcode for the above instruction is   af82c008

and relocation record is (.sbss ,R_MIPS_GPREL16)

Here we see that the 16 bit immediate value is 0xc008

Which is formed by subtracting 0x0008-0x4000 = 0xc008

If the PC location value of the l_var2.3 is 0x0008

GP Value is 0x4000

Please confirm my queries .....

Regards
K.Feroz


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What is to be updated in reginfo section coprocessor register mask?
  2004-04-24 14:17 What is to be updated in reginfo section coprocessor register mask? K. Ahmed Feroz
@ 2004-04-27  8:36 ` Ben Elliston
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Elliston @ 2004-04-27  8:36 UTC (permalink / raw)
  To: gcc

"K. Ahmed Feroz" <feroz@acmet.com> writes:

> I have some query regarding the ".reginfo section" produced by gnu
> assembler in the elf output file.

You should post this question to the binutils mailing list.  This
mailing list is for discussing GCC.

Cheers, Ben

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-27  3:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-24 14:17 What is to be updated in reginfo section coprocessor register mask? K. Ahmed Feroz
2004-04-27  8:36 ` Ben Elliston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).