Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
cf3323f5
Commit
cf3323f5
authored
Apr 07, 2011
by
Mikkel Krautz
Committed by
Russ Cox
Apr 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ld: fix Mach-O bss bug
Fixes #1559. R=rsc CC=golang-dev, peterGo, rog
https://golang.org/cl/4356046
parent
88bbf4f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
data.c
src/cmd/ld/data.c
+1
-1
ldmacho.c
src/cmd/ld/ldmacho.c
+4
-1
No files found.
src/cmd/ld/data.c
View file @
cf3323f5
...
...
@@ -749,7 +749,7 @@ dodata(void)
}
for
(
s
=
datap
;
s
!=
nil
;
s
=
s
->
next
)
{
if
(
s
->
np
>
0
&&
s
->
type
==
SBSS
)
// TODO: necessary?
if
(
s
->
np
>
0
&&
s
->
type
==
SBSS
&&
s
->
file
!=
nil
)
// TODO: necessary?
s
->
type
=
SDATA
;
if
(
s
->
np
>
s
->
size
)
diag
(
"%s: initialize bounds (%lld < %d)"
,
...
...
src/cmd/ld/ldmacho.c
View file @
cf3323f5
...
...
@@ -581,7 +581,10 @@ ldmacho(Biobuf *f, char *pkg, int64 len, char *pn)
else
s
->
type
=
SRODATA
;
}
else
{
s
->
type
=
SDATA
;
if
(
strcmp
(
sect
->
name
,
"__bss"
)
==
0
)
s
->
type
=
SBSS
;
else
s
->
type
=
SDATA
;
}
if
(
s
->
type
==
STEXT
)
{
if
(
etextp
)
...
...
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