This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Go · Archive · Week 4 · Jan 20 – 26, 2025

x/sys/unix: access to ELF auxiliary vector

Worth knowingstdlib

What changed
The proposal adds a new function Auxv() ([][2]uintptr, error) to golang.org/x/sys/unix. It returns a fresh copy of the ELF auxiliary vector as key/value pairs and errors on non‑ELF platforms or when the vector cannot be accessed.
Production impact
The source does not say.
Try it
Import golang.org/x/sys/unix and call unix.Auxv() to retrieve the auxiliary vector.
Source
github.com/golang/go/issues/67839

Understand it, then run it

Run it now

Todaygo
// This program demonstrates that the new Auxv API is not available in Go 1.27.1.
// It simply prints a message explaining the situation.
package main

import "fmt"

func main() {
	// In Go 1.27.1 the golang.org/x/sys/unix package does not provide an Auxv function.
	// The proposal to add Auxv() is still pending and will not compile until the change ships.
	fmt.Println("Auxv() is not available in Go 1.27.1; the proposal is pending.")
}

What it printed when we ran it on Go 1.27.1

Auxv() is not available in Go 1.27.1; the proposal is pending.

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed