From 4879f2225e1a8863e3402da6c224cde4cf9bf076 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 6 Mar 2020 11:15:04 +0900 Subject: [PATCH] nxstyle: Don't complain on ELF things like Elf32_Hdr --- tools/nxstyle.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index c36c84d014..0a403c7b6b 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -1283,6 +1283,13 @@ int main(int argc, char **argv, char **envp) /* No error */ } + /* Ignore ELF stuff like Elf32_Ehdr. */ + + else if ((strncmp(&line[ident_index], "Elf", 3) == 0)) + { + /* No error */ + } + /* Special case hex constants. These will look like * identifiers starting with 'x' or 'X' but preceded * with '0'