This patch from Joseph Koshy uses the correct names in the #undef
lines for the ELFMAGn macros. Bootstrapped and ran libbacktrace tests
on x86_64-pc-linux-gnu. Committed to mainline.
Ian
* elf.c (ELFMAGn): In #undef rename from ELF_MAGn.
86db2360bfb3d9bc12db803124b33a86b974f023
diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c
index 868d0e1a7f3..0f14066bf17 100644
--- a/libbacktrace/elf.c
+++ b/libbacktrace/elf.c
@@ -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