------- Additional Comments From nickc at redhat dot com  2010-03-05 12:24 
-------
Subject: Re:  Need representation of the offset from a label
 to a   GOT entry

Hi Niki,

> Since this relocation needs 2 parameters, it is difficult to represent as the
> normal relocation specification var(<relocation_type>). I propose the 
> following
> syntax, which is similar to the syntax used to represent GOT table's 
> relocation.
>
>       .word   var(GOTABS)-(.LPIC0+4)

I think that it would be clearer if the entire expression was enclosed 
inside a single set of parentheses.  Ie:

    .word var(GOTABS-.LPIC0+4)

Allowing white space would make it easier to read as well:

    .word var(GOTABS - .LPIC0 + 4)

Cheers
   Nick

------- Additional Comments From drow at sources dot redhat dot com  2010-03-05 
20:14 -------
I disagree; var(GOTABS) is nicely parallel with var(GOT).  It's even a sensible
relocation, although I don't think there's an assigned relocation number for it
(without the PREL part).


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11323

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to