nios2: Add BFD support for GOT-relative DW_EH_PE_datarel encodings
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 31 Jan 2020 18:34:42 +0000 (10:34 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Fri, 31 Jan 2020 18:34:42 +0000 (10:34 -0800)
commite7cbe0c4a4d6ce935da28aaad3f7cf0d2d40d21b
tree222ce16a95413d986424544913dd32349c519c16
parent95441c43cc0a8f30a27fe9bfc7f42f63f80b95c5
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  <sandra@codesourcery.com>

bfd/
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel
encodings are relative to the GOT on nios2, too.
bfd/ChangeLog
bfd/elf-eh-frame.c