diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2020-01-31 10:34:42 -0800 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2020-01-31 10:34:42 -0800 |
commit | e7cbe0c4a4d6ce935da28aaad3f7cf0d2d40d21b (patch) | |
tree | 222ce16a95413d986424544913dd32349c519c16 /bfd/elf-eh-frame.c | |
parent | 95441c43cc0a8f30a27fe9bfc7f42f63f80b95c5 (diff) | |
download | gdb-e7cbe0c4a4d6ce935da28aaad3f7cf0d2d40d21b.zip gdb-e7cbe0c4a4d6ce935da28aaad3f7cf0d2d40d21b.tar.gz gdb-e7cbe0c4a4d6ce935da28aaad3f7cf0d2d40d21b.tar.bz2 |
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.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r-- | bfd/elf-eh-frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 2b2b2c9..3cf82d5 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) |