]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libbacktrace: use correct names in #undef of ELF macros
authorIan Lance Taylor <iant@golang.org>
Thu, 6 Nov 2025 19:27:21 +0000 (11:27 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 6 Nov 2025 19:30:12 +0000 (11:30 -0800)
Patch from Joseph Koshy.

* elf.c (ELFMAGn): In #undef rename from ELF_MAGn.

libbacktrace/elf.c

index 868d0e1a7f3e52e550f21ee9c5f68c8eed7db575..0f14066bf17c1fbda35b64b4414fdd5a11fb140e 100644 (file)
@@ -160,10 +160,10 @@ dl_iterate_phdr (int (*callback) (struct dl_phdr_info *,
 #undef EI_CLASS
 #undef EI_DATA
 #undef EI_VERSION
-#undef ELF_MAG0
-#undef ELF_MAG1
-#undef ELF_MAG2
-#undef ELF_MAG3
+#undef ELFMAG0
+#undef ELFMAG1
+#undef ELFMAG2
+#undef ELFMAG3
 #undef ELFCLASS32
 #undef ELFCLASS64
 #undef ELFDATA2LSB