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
36b6d1aa
Commit
36b6d1aa
authored
Apr 12, 2011
by
Lucio De Re
Committed by
Russ Cox
Apr 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8l: correct Plan 9 compiler warnings
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/4390047
parent
4fe9f574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
asm.c
src/cmd/8l/asm.c
+4
-7
No files found.
src/cmd/8l/asm.c
View file @
36b6d1aa
...
...
@@ -307,6 +307,7 @@ elfsetupplt(void)
int
archreloc
(
Reloc
*
r
,
Sym
*
s
,
vlong
*
val
)
{
USED
(
s
);
switch
(
r
->
type
)
{
case
D_CONST
:
*
val
=
r
->
add
;
...
...
@@ -644,7 +645,7 @@ asmb(void)
{
int32
v
,
magic
;
int
a
,
dynsym
;
uint32
va
,
fo
,
w
,
symo
,
startva
,
machlink
;
uint32
symo
,
startva
,
machlink
;
ElfEhdr
*
eh
;
ElfPhdr
*
ph
,
*
pph
;
ElfShdr
*
sh
;
...
...
@@ -776,7 +777,6 @@ asmb(void)
lputb
(
0L
);
lputb
(
~
0L
);
/* gp value ?? */
break
;
lputl
(
0
);
/* x */
case
Hunixcoff
:
/* unix coff */
/*
* file header
...
...
@@ -892,13 +892,10 @@ asmb(void)
debug
[
'd'
]
=
1
;
eh
=
getElfEhdr
();
fo
=
HEADR
;
startva
=
INITTEXT
-
HEADR
;
va
=
startva
+
fo
;
w
=
segtext
.
filelen
;
/* This null SHdr must appear before all others */
sh
=
newElfShdr
(
elfstr
[
ElfStrEmpty
]);
newElfShdr
(
elfstr
[
ElfStrEmpty
]);
/* program header info */
pph
=
newElfPhdr
();
...
...
@@ -1214,6 +1211,6 @@ genasmsym(void (*put)(Sym*, char*, int, vlong, vlong, int, Sym*))
put
(
nil
,
a
->
asym
->
name
,
'p'
,
a
->
aoffset
,
0
,
0
,
a
->
gotype
);
}
if
(
debug
[
'v'
]
||
debug
[
'n'
])
Bprint
(
&
bso
,
"symsize = %ud
\n
"
,
symsize
);
Bprint
(
&
bso
,
"symsize = %u
l
d
\n
"
,
symsize
);
Bflush
(
&
bso
);
}
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