bug-binutils
[Top][All Lists]
Advanced

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

Re: [Bug gas/11323] Need representation of the offset from a label to a


From: Nick Clifton
Subject: Re: [Bug gas/11323] Need representation of the offset from a label to a GOT entry
Date: Fri, 05 Mar 2010 12:24:07 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3

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




reply via email to

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