aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld/lib.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2014-01-21 09:29:19 -0800
committerIan Lance Taylor <iant@golang.org>2014-01-21 09:29:19 -0800
commitcdc556556c1d0213b3205dcd5b08655795fc215d (patch)
tree8504fa2bf9b5493dde54eb135014db408f80e11d /src/cmd/ld/lib.c
parent6111dc4e71ffd843ac8029df4fd67d32689f8e36 (diff)
downloadgo-cdc556556c1d0213b3205dcd5b08655795fc215d.tar.xz
cmd/ld: support archives larger than 2G
R=golang-codereviews, gobot, rsc CC=golang-codereviews https://golang.org/cl/53950043
Diffstat (limited to 'src/cmd/ld/lib.c')
-rw-r--r--src/cmd/ld/lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c
index 18c27876ee..98fa7aa482 100644
--- a/src/cmd/ld/lib.c
+++ b/src/cmd/ld/lib.c
@@ -269,8 +269,8 @@ loadlib(void)
* look for the next file in an archive.
* adapted from libmach.
*/
-int
-nextar(Biobuf *bp, int off, struct ar_hdr *a)
+static vlong
+nextar(Biobuf *bp, vlong off, struct ar_hdr *a)
{
int r;
int32 arsize;
@@ -300,7 +300,7 @@ nextar(Biobuf *bp, int off, struct ar_hdr *a)
void
objfile(char *file, char *pkg)
{
- int32 off, l;
+ vlong off, l;
Biobuf *f;
char magbuf[SARMAG];
char pname[150];