Skip to content

gcc-go: Use int64 type as offset argument for mmap

Sören Tempel requested to merge nmeum/alpine-gcc-patches:mmap into alpine/11.2

Without this patch, Go run-time memory allocation fails on 32-bit architectures:

fatal error: runtime: cannot allocate memory
runtime stack:
runtime.dopanic__m
	:0
runtime.throw
	:0
	:0
	:0
runtime.systemstack
	:0
runtime.addrRanges.init
	:0
runtime.pageAlloc.init
	:0
runtime.mheap.init
	:0
runtime.schedinit
	:0
	:0
	:0

Taken from Adélie Linux 1.

Merge request reports