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
7fa5941f
Commit
7fa5941f
authored
Jan 27, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make "size 6.out" work on mac.
R=r DELTA=11 (6 added, 0 deleted, 5 changed) OCL=23629 CL=23631
parent
c8476472
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
asm.c
src/cmd/6l/asm.c
+11
-5
No files found.
src/cmd/6l/asm.c
View file @
7fa5941f
...
...
@@ -361,7 +361,7 @@ asmb(void)
if
(
!
debug
[
's'
])
nl
+=
3
;
if
(
!
debug
[
'd'
])
// -d = turn off "dynamic loader"
nl
+=
2
;
nl
+=
3
;
lputl
(
nl
);
/* number of loads */
lputl
(
machheadr
()
-
32
);
/* size of loads */
lputl
(
1
);
/* flags - no undefines */
...
...
@@ -846,15 +846,20 @@ machdylink(void)
if
(
debug
[
'd'
])
return
;
lputl
(
2
);
/* LC_SYMTAB */
lputl
(
24
);
/* byte count - 6 words*/
for
(
i
=
0
;
i
<
4
;
i
++
)
lputl
(
0
);
lputl
(
11
);
/* LC_DYSYMTAB */
lputl
(
80
);
/* byte count */
lputl
(
80
);
/* byte count
- 20 words
*/
for
(
i
=
0
;
i
<
18
;
i
++
)
lputl
(
0
);
lputl
(
14
);
/* LC_LOAD_DYLINKER */
lputl
(
28
);
/* byte count */
lputl
(
32
);
/* byte count */
lputl
(
12
);
/* offset to string */
strnput
(
"/usr/lib/dyld"
,
16
);
strnput
(
"/usr/lib/dyld"
,
32
-
12
);
}
void
...
...
@@ -889,8 +894,9 @@ machheadr(void)
a
+=
20
;
/* bss sect */
a
+=
46
;
/* stack sect */
if
(
!
debug
[
'd'
])
{
a
+=
6
;
/* symtab */
a
+=
20
;
/* dysymtab */
a
+=
7
;
/* load dylinker */
a
+=
8
;
/* load dylinker */
}
if
(
!
debug
[
's'
])
{
a
+=
18
;
/* symdat seg */
...
...
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