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
839abc2e
Commit
839abc2e
authored
Dec 08, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5l (and 6l, 8l, ld): more arm build fixes
R=ken2 CC=golang-dev
https://golang.org/cl/3521041
parent
b8562ff4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
l.h
src/cmd/6l/l.h
+1
-0
l.h
src/cmd/8l/l.h
+1
-0
ldelf.c
src/cmd/ld/ldelf.c
+1
-2
ldmacho.c
src/cmd/ld/ldmacho.c
+1
-1
No files found.
src/cmd/6l/l.h
View file @
839abc2e
...
...
@@ -110,6 +110,7 @@ struct Prog
char
mode
;
/* 16, 32, or 64 */
};
#define datasize from.scale
#define textflag from.scale
struct
Auto
{
...
...
src/cmd/8l/l.h
View file @
839abc2e
...
...
@@ -109,6 +109,7 @@ struct Prog
uchar
bigjmp
;
};
#define datasize from.scale
#define textflag from.scale
struct
Auto
{
...
...
src/cmd/ld/ldelf.c
View file @
839abc2e
...
...
@@ -660,12 +660,11 @@ ldelf(Biobuf *f, char *pkg, int64 len, char *pn)
diag
(
"%s: duplicate definition of %s"
,
pn
,
s
->
name
);
// build a TEXT instruction with a unique pc
// just to make the rest of the linker happy.
// TODO: this is too 6l-specific ?
p
=
prg
();
p
->
as
=
ATEXT
;
p
->
from
.
type
=
D_EXTERN
;
p
->
from
.
sym
=
s
;
p
->
from
.
scale
=
7
;
p
->
textflag
=
7
;
p
->
to
.
type
=
D_CONST
;
p
->
link
=
nil
;
p
->
pc
=
pc
++
;
...
...
src/cmd/ld/ldmacho.c
View file @
839abc2e
...
...
@@ -640,7 +640,7 @@ ldmacho(Biobuf *f, char *pkg, int64 len, char *pn)
p
->
as
=
ATEXT
;
p
->
from
.
type
=
D_EXTERN
;
p
->
from
.
sym
=
s
;
p
->
from
.
scale
=
7
;
p
->
textflag
=
7
;
p
->
to
.
type
=
D_CONST
;
p
->
link
=
nil
;
p
->
pc
=
pc
++
;
...
...
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