Groups
Sign in
Groups
X32 System V Application Binary Interface
Conversations
About
Send feedback
Help
Require REX prefix to encode R_X86_64_GOTTPOFF
32 views
Skip to first unread message
H.J.
unread,
Nov 7, 2014, 6:00:21 PM
11/7/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to x32...@googlegroups.com
As this linker bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=17482
shows that structions with R_X86_64_GOTTPOFF relocation must be encoded with REX
prefix even if it isn't required by destination register. Otherwise linker can't safely perform
IE -> LE optimization. I checked the fix into GNU binutils trunk and 2.25 branch:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=cf61b7473a8ee3b43c4f8f2776075ec8d81d7495
I updated x86-64 psABI hjl/x32 branch:
https://github.com/hjl-tools/x86-64-psABI/commit/e3fb68774ffa0318158822851732a1425165ccf0
to require REX prefix to encode instructions with R_X86_64_GOTTPOFF relocation.

H.J.
Reply all
Reply to author
Forward
0 new messages