From bcc23586c5177390ae44d0825177e312f820e523 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 15 Feb 2018 12:32:27 +0100 Subject: [PATCH] re PR other/82368 (with r253275 several new test cases in libbacktrace fail) PR other/82368 * elf.c (SHT_PROGBITS): Undefine and define. From-SVN: r257685 --- libbacktrace/ChangeLog | 5 +++++ libbacktrace/elf.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 60e67a72de7..323ac94165c 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2018-02-15 Jakub Jelinek + + PR other/82368 + * elf.c (SHT_PROGBITS): Undefine and define. + 2018-02-14 Jakub Jelinek PR other/82368 diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index 8ff3c47320e..19da5a97b23 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -170,6 +170,7 @@ dl_iterate_phdr (int (*callback) (struct dl_phdr_info *, #undef SHN_LORESERVE #undef SHN_XINDEX #undef SHN_UNDEF +#undef SHT_PROGBITS #undef SHT_SYMTAB #undef SHT_STRTAB #undef SHT_DYNSYM @@ -267,6 +268,7 @@ typedef struct { #define SHN_LORESERVE 0xFF00 /* Begin range of reserved indices */ #define SHN_XINDEX 0xFFFF /* Section index is held elsewhere */ +#define SHT_PROGBITS 1 #define SHT_SYMTAB 2 #define SHT_STRTAB 3 #define SHT_DYNSYM 11 -- 2.30.2