Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
63544c47
Commit
63544c47
authored
Dec 07, 2010
by
Eoghan Sherry
Committed by
Russ Cox
Dec 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ld: fix dwarf decoding of 64-bit reflect values
R=rsc CC=golang-dev
https://golang.org/cl/3002041
parent
7e14bd81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
src/cmd/ld/dwarf.c
src/cmd/ld/dwarf.c
+12
-6
src/cmd/ld/lib.c
src/cmd/ld/lib.c
+7
-2
No files found.
src/cmd/ld/dwarf.c
View file @
63544c47
...
...
@@ -800,20 +800,25 @@ decode_reloc(Sym *s, int32 off)
static
uvlong
decode_inuxi
(
uchar
*
p
,
int
sz
)
{
uvlong
r
;
uchar
*
inuxi
;
uint64
v
;
uint32
l
;
uchar
*
cast
,
*
inuxi
;
int
i
;
r
=
0
;
v
=
l
=
0
;
cast
=
nil
;
inuxi
=
nil
;
switch
(
sz
)
{
case
2
:
cast
=
(
uchar
*
)
&
l
;
inuxi
=
inuxi2
;
break
;
case
4
:
cast
=
(
uchar
*
)
&
l
;
inuxi
=
inuxi4
;
break
;
case
8
:
cast
=
(
uchar
*
)
&
v
;
inuxi
=
inuxi8
;
break
;
default:
...
...
@@ -821,9 +826,10 @@ decode_inuxi(uchar* p, int sz)
errorexit
();
}
for
(
i
=
0
;
i
<
sz
;
i
++
)
r
+=
p
[
i
]
<<
(
8
*
inuxi
[
i
]);
return
r
;
cast
[
inuxi
[
i
]]
=
p
[
i
];
if
(
sz
==
8
)
return
v
;
return
l
;
}
// Type.commonType.kind
...
...
src/cmd/ld/lib.c
View file @
63544c47
...
...
@@ -592,8 +592,13 @@ nuxiinit(void)
if
(
i
<
1
)
inuxi1
[
i
]
=
c
;
inuxi4
[
i
]
=
c
;
inuxi8
[
i
]
=
c
;
inuxi8
[
i
+
4
]
=
c
+
4
;
if
(
c
==
i
)
{
inuxi8
[
i
]
=
c
;
inuxi8
[
i
+
4
]
=
c
+
4
;
}
else
{
inuxi8
[
i
]
=
c
+
4
;
inuxi8
[
i
+
4
]
=
c
;
}
fnuxi4
[
i
]
=
c
;
fnuxi8
[
i
]
=
c
;
fnuxi8
[
i
+
4
]
=
c
+
4
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment