1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00

cmd/ld: support archives larger than 2G

R=golang-codereviews, gobot, rsc
CC=golang-codereviews
https://golang.org/cl/53950043
This commit is contained in:
Ian Lance Taylor 2014-01-21 09:29:19 -08:00
parent 6111dc4e71
commit cdc556556c
2 changed files with 3 additions and 4 deletions

View File

@ -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];

View File

@ -241,7 +241,6 @@ void* mal(uint32 n);
void mark(LSym *s);
void mywhatsys(void);
struct ar_hdr;
int nextar(Biobuf *bp, int off, struct ar_hdr *a);
void objfile(char *file, char *pkg);
void patch(void);
int pathchar(void);