]> Cypherpunks repositories - gostls13.git/commit
cmd/link: define ELF .note section on FreeBSD
authorDmitri Goutnik <dgoutnik@gmail.com>
Wed, 15 Jun 2022 19:50:19 +0000 (14:50 -0500)
committerDmitri Goutnik <dgoutnik@gmail.com>
Thu, 13 Oct 2022 21:14:48 +0000 (21:14 +0000)
commitc79b2009ef0b82e9c50ced139b2fd752018da0dd
treef72cc3dcafc0e7cbea705cf8490d1ea79a8c5e83
parent005c78d8bbf6389d482a0bbb4e6c46719d77f59f
cmd/link: define ELF .note section on FreeBSD

Write .note signature section when targeting FreeBSD, similar to NetBSD
and OpenBSD. This allows binaries to declare the ABI version they were
compiled for and opt out of ASLR when compiled with -race.

Fixes #48164

Change-Id: Ie54dd5c70697a3f42a75fd640540350fd8a4dc71
Reviewed-on: https://go-review.googlesource.com/c/go/+/412494
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Yuval Pavel Zholkover <paulzhol@gmail.com>
src/cmd/link/elf_test.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/target.go