From 28644f75a950c0710e49948b93321eb47004c438 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 18 May 2016 16:40:54 +0200 Subject: [PATCH] re PR target/71161 (Lots of ASAN and libgo runtime FAILs after r236090) PR target/71161 * elf.c (phdr_callback) [__i386__]: Add __attribute__((__force_align_arg_pointer__)). From-SVN: r236397 --- libbacktrace/ChangeLog | 11 +++++++++-- libbacktrace/elf.c | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index eba34274385..acc07047f67 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,9 @@ +2016-05-18 Uros Bizjak + + PR target/71161 + * elf.c (phdr_callback) [__i386__]: Add + __attribute__((__force_align_arg_pointer__)). + 2016-03-02 Maxim Ostapenko * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to @@ -15,12 +21,13 @@ 2015-12-18 Andris Pavenis - * configure.ac: Specify that DJGPP do not have mmap even when sys/mman.h exists + * configure.ac: Specify that DJGPP do not have mmap + even when sys/mman.h exists. * configure: Regenerate 2015-12-09 John David Anglin - PR 68115/libfortran + PR libgfortran/68115 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. * configure: Regenerate. * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index f85ac65d99f..81ba3440ab7 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -866,6 +866,9 @@ struct phdr_data libraries. */ static int +#ifdef __i386__ +__attribute__ ((__force_align_arg_pointer__)) +#endif phdr_callback (struct dl_phdr_info *info, size_t size ATTRIBUTE_UNUSED, void *pdata) { -- 2.30.2