summaryrefslogtreecommitdiff
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
commitb4ffdd5943b60c762e331c278fb91f4bac35a3c7 (patch)
treea6cf6a71cd0366a5e0bff9448e3400e013e6e0fa /src/cmd/ld/lib.c
parent70007b89f773c19e2baea291daafcdb83ab92a12 (diff)
downloadgo-b4ffdd5943b60c762e331c278fb91f4bac35a3c7.tar.gz
cmd/ld: support archives larger than 2G
R=golang-codereviews, gobot, rsc CC=golang-codereviews https://codereview.appspot.com/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 18c27876e..98fa7aa48 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];