[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/11323] Need representation of the offset from a label to a GOT
From: |
carrot at google dot com |
Subject: |
[Bug gas/11323] Need representation of the offset from a label to a GOT entry |
Date: |
1 Mar 2010 13:49:45 -0000 |
------- Additional Comments From carrot at google dot com 2010-03-01 13:49
-------
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)
In the expression var is a global variable, var(GOTABS) means the absolute
address of GOT entry for global variable var. .LPIC0 is a code label. So the
whole expression means the offset from code label .LPIC0 to global variable
var's GOT entry.
Any opinions?
--
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 gas/11323] Need representation of the offset from a label to a GOT entry,
carrot at google dot com <=