Skip to content

Commit 6943ab6

Browse files
mauri870gopherbot
authored andcommitted
unix/linux: update glibc to 2.39
Change-Id: I5c2b996180073ca10f1b7c86201a19eaf0557e43 GitHub-Last-Rev: a092f56 GitHub-Pull-Request: #195 Reviewed-on: https://go-review.googlesource.com/c/sys/+/585136 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 92f3ad6 commit 6943ab6

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

unix/linux/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ WORKDIR /git
1717
RUN git config --global advice.detachedHead false
1818
# Linux Kernel: Released 12 May 2024
1919
RUN git clone --branch v6.9 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
20-
# GNU C library: Released 1 Feb 2023
21-
RUN git clone --branch release/2.37/master --depth 1 https://sourceware.org/git/glibc.git
20+
# GNU C library: Released 31 Jan 2024
21+
RUN git clone --branch release/2.39/master --depth 1 https://sourceware.org/git/glibc.git
2222

2323
# Get Go
2424
ENV GOLANG_VERSION 1.21.0

unix/linux/mkall.go

+14
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,20 @@ func (t *target) makeHeaders() error {
417417
} else {
418418
glibcArgs = append(glibcArgs, "--enable-kernel="+MinKernel)
419419
}
420+
421+
// CET is not supported on x86 but glibc 2.39 enables it by default, it was later reverted.
422+
// See https://sourceware.org/git/?p=glibc.git;a=commit;h=25f1e16ef03a6a8fb1701c4647d46c564480d88c
423+
if t.LinuxArch == "x86" {
424+
glibcArgs = append(glibcArgs, "--enable-cet=no")
425+
}
426+
427+
// glibc 2.38 requires libmvec to be disabled explicitly in aarch64
428+
// since the installed compiler does not have SVE ACLE.
429+
// See https://sourceware.org/pipermail/libc-alpha/2023-May/147829.html
430+
if t.LinuxArch == "arm64" {
431+
glibcArgs = append(glibcArgs, "--disable-mathvec")
432+
}
433+
420434
glibcConf := t.makeCommand(confScript, glibcArgs...)
421435

422436
glibcConf.Dir = buildDir

unix/zerrors_linux.go

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_386.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_amd64.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)