From: Sandra Loosemore Date: Fri, 31 Jan 2020 18:34:42 +0000 (-0800) Subject: nios2: Add BFD support for GOT-relative DW_EH_PE_datarel encodings X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=e7cbe0c4a4d6ce935da28aaad3f7cf0d2d40d21b;p=deliverable%2Fbinutils-gdb.git nios2: Add BFD support for GOT-relative DW_EH_PE_datarel encodings There's already existing logic to handle this on other targets, so this patch just makes nios2 use it. 2020-01-31 Sandra Loosemore bfd/ * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel encodings are relative to the GOT on nios2, too. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 59a787bf40..0ebf45a269 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-01-31 Sandra Loosemore + + * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel + encodings are relative to the GOT on nios2, too. + 2020-01-31 Alan Modra * Makefile.am (elf32-target.h, elf64-target.h): Don't use a temp diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 2b2b2c975b..3cf82d58bc 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -2149,6 +2149,7 @@ _bfd_elf_write_section_eh_frame (bfd *abfd, /* Fall thru */ case bfd_arch_frv: case bfd_arch_i386: + case bfd_arch_nios2: BFD_ASSERT (htab->hgot != NULL && ((htab->hgot->root.type == bfd_link_hash_defined)