]> Cypherpunks repositories - gostls13.git/commit
debug/elf: add DT_FLAGS_1 constants
authorFlorin Papa <fpapa@google.com>
Mon, 21 Nov 2022 18:07:58 +0000 (10:07 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 3 Feb 2023 04:37:17 +0000 (04:37 +0000)
commit9222a01e651f5968a1c66013f7094c265f4011e7
tree62973a0d6bf02b05c6a77876c582695b8f3a1524
parent93f5335be96054bd3877cc88e1ddf7d60e5797ef
debug/elf: add DT_FLAGS_1 constants

Add constants for all ELF dynamic flags (pertaining to DT_FLAGS_1). This will help, for example, determining whether an object is a position-independent executable (PIE). The constants are defined according to Table 15-10 in https://docs.oracle.com/en/operating-systems/solaris/oracle-solaris/11.4/linkers-libraries/dynamic-section.html.

Fixes #56887

Change-Id: I6cd501af50d9dbcc2aa8a9a002e12c6fb6726761
Reviewed-on: https://go-review.googlesource.com/c/go/+/452496
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
api/next/56887.txt [new file with mode: 0644]
src/debug/elf/elf.go
src/debug/elf/elf_test.go