Skip to content

Commit

Permalink
PR libgcc/68468
Browse files Browse the repository at this point in the history
	* unwind-dw2-fde-dip.c: Fix build on FDPIC targets.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242468 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jakub committed Nov 16, 2016
1 parent 02e0afd commit 397d0e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions libgcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2016-11-16 Waldemar Brodkorb <wbx@openadk.org>

PR libgcc/68468
* unwind-dw2-fde-dip.c: Fix build on FDPIC targets.

2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>

* config/arc/lib1funcs.S (__mulsi3): Use feature defines instead
Expand Down
8 changes: 6 additions & 2 deletions libgcc/unwind-dw2-fde-dip.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ static struct frame_hdr_cache_element
{
_Unwind_Ptr pc_low;
_Unwind_Ptr pc_high;
#if defined __FRV_FDPIC__ || defined __BFIN_FDPIC__
struct elf32_fdpic_loadaddr load_base;
#else
_Unwind_Ptr load_base;
#endif
const ElfW(Phdr) *p_eh_frame_hdr;
const ElfW(Phdr) *p_dynamic;
struct frame_hdr_cache_element *link;
Expand Down Expand Up @@ -163,7 +167,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
struct unw_eh_callback_data *data = (struct unw_eh_callback_data *) ptr;
const ElfW(Phdr) *phdr, *p_eh_frame_hdr, *p_dynamic;
long n, match;
#ifdef __FRV_FDPIC__
#if defined __FRV_FDPIC__ || defined __BFIN_FDPIC__
struct elf32_fdpic_loadaddr load_base;
#else
_Unwind_Ptr load_base;
Expand Down Expand Up @@ -347,7 +351,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
break;
}
}
# elif defined __FRV_FDPIC__ && defined __linux__
# elif (defined __FRV_FDPIC__ || defined __BFIN_FDPIC__) && defined __linux__
data->dbase = load_base.got_value;
# else
# error What is DW_EH_PE_datarel base on this platform?
Expand Down

0 comments on commit 397d0e4

Please sign in to comment.