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
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/cmd/8l/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