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
4324a313
Commit
4324a313
authored
Dec 10, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nm: silently ignore .o files in .a files
Update #1334. R=r CC=golang-dev
https://golang.org/cl/3553041
parent
71bd053a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
nm.c
src/cmd/nm/nm.c
+9
-6
No files found.
src/cmd/nm/nm.c
View file @
4324a313
...
...
@@ -126,31 +126,34 @@ void
doar
(
Biobuf
*
bp
)
{
int
offset
,
size
,
obj
;
char
member
name
[
SARNAME
];
char
name
[
SARNAME
];
multifile
=
1
;
for
(
offset
=
Boffset
(
bp
);;
offset
+=
size
)
{
size
=
nextar
(
bp
,
offset
,
member
name
);
size
=
nextar
(
bp
,
offset
,
name
);
if
(
size
<
0
)
{
error
(
"phase error on ar header %d"
,
offset
);
return
;
}
if
(
size
==
0
)
return
;
if
(
strcmp
(
member
name
,
symname
)
==
0
)
if
(
strcmp
(
name
,
symname
)
==
0
)
continue
;
obj
=
objtype
(
bp
,
0
);
if
(
obj
<
0
)
{
// perhaps foreign object
if
(
strlen
(
name
)
>
2
&&
strcmp
(
name
+
strlen
(
name
)
-
2
,
".o"
)
==
0
)
return
;
error
(
"inconsistent file %s in %s"
,
member
name
,
filename
);
name
,
filename
);
return
;
}
if
(
!
readar
(
bp
,
obj
,
offset
+
size
,
1
))
{
error
(
"invalid symbol reference in file %s"
,
member
name
);
name
);
return
;
}
filename
=
member
name
;
filename
=
name
;
nsym
=
0
;
objtraverse
(
psym
,
0
);
printsyms
(
symptr
,
nsym
);
...
...
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