Skip to content

Commit 2a15272

Browse files
florianlgopherbot
authored andcommitted
unix: add consts for ELF handling
This adds a few constants that help to handle ELF files and coredumps. Change-Id: Ifd4c1bd4c8839065af4233ccbf42964a8e96fdf8 Reviewed-on: https://go-review.googlesource.com/c/sys/+/713980 Reviewed-by: Tobias Klauser <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Sean Liao <[email protected]> Reviewed-by: David Chase <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 6239615 commit 2a15272

File tree

2 files changed

+361
-0
lines changed

2 files changed

+361
-0
lines changed

unix/mkerrors.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ struct ltchars {
226226
#include <linux/cryptouser.h>
227227
#include <linux/devlink.h>
228228
#include <linux/dm-ioctl.h>
229+
#include <linux/elf.h>
229230
#include <linux/errqueue.h>
230231
#include <linux/ethtool_netlink.h>
231232
#include <linux/falloc.h>
@@ -529,6 +530,7 @@ ccflags="$@"
529530
$2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ ||
530531
$2 ~ /^(NL|CR|TAB|BS|VT|FF)DLY$/ ||
531532
$2 ~ /^(NL|CR|TAB|BS|VT|FF)[0-9]$/ ||
533+
$2 ~ /^(DT|EI|ELF|EV|NN|NT|PF|SHF|SHN|SHT|STB|STT|VER)_/ ||
532534
$2 ~ /^O?XTABS$/ ||
533535
$2 ~ /^TC[IO](ON|OFF)$/ ||
534536
$2 ~ /^IN_/ ||

0 commit comments

Comments
 (0)