Bug 4893 - gcc 64bit dwarf registers rbx, rdx are switched.
Summary: gcc 64bit dwarf registers rbx, rdx are switched.
Status: RESOLVED INVALID
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-03 21:52 UTC by Nurdin Premji
Modified: 2007-08-07 21:40 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nurdin Premji 2007-08-03 21:52:56 UTC
according to www.linux-foundation.org/spec/refspecs/elf/x86_64-SysV-psABI.pdf
the registers should be in the order rax, rbx, rcx, rdx, gcc puts them in rax,
rdx, rcx, rbx.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32982
Comment 1 Nurdin Premji 2007-08-07 21:40:29 UTC
Turns out that www.linux-foundation.org/spec/refspecs/elf/x86_64-SysV-psABI.pdf
is obsolete and reference should be made to:

<http://www.x86-64.org/viewvc/trunk/x86-64-ABI/low-level-sys-info.tex?revision=214&view=markup>