summaryrefslogtreecommitdiff
path: root/libbacktrace/elf.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-02-15 12:32:27 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-02-15 12:32:27 +0100
commitbcc23586c5177390ae44d0825177e312f820e523 (patch)
treea6043fc3708eb9eae9cefd2edcacff678f8c6d70 /libbacktrace/elf.c
parent44e60df333a5fa63428a12887d9c8b5471e1a01b (diff)
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
Diffstat (limited to 'libbacktrace/elf.c')
-rw-r--r--libbacktrace/elf.c2
1 files changed, 2 insertions, 0 deletions
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