This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] nios2: Add BFD support for GOT-relative DW_EH_PE_datarel encodings
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: <binutils at sourceware dot org>
- Date: Fri, 31 Jan 2020 11:39:58 -0700
- Subject: [committed] nios2: Add BFD support for GOT-relative DW_EH_PE_datarel encodings
- Ironport-sdr: GrO86bCzUswtZ9gnrv43fe0nLLSo0NLAlSYcZrLTEtxNuUglneIQkCtjChLWyQfS+oaGZHl5AQ 5IaS0gwFQPSjFeDjm0xGSlw6ZqJBqZzQS0nQcBXoyscNgUIvb31sPDv6gAGv+zfBTvmn65+/zs vb6AAxwsNcEBJF5m0LtDhGm2V3N00cVXzH3M4jQnHC5v6jsp9OLt7yUCAoITKEhAxH+gh4jkMb oLMQ1UkIXcIG4X7zreJfz3cs/YZ5N6q1sJ2M9udreIerKEsTpDL8n3OjwxkvcoFO4nc3Uejfde 0AA=
- Ironport-sdr: FypEIsirdyIwk7oAaLTVln/RVsQoISk3GCpaTjTcL2JRubpRhNOhrPmqk3NJtESYJBSDsM3Y0V WGZRSnd/MVeA==
- References: <20200131183958.28145-1-sandra@codesourcery.com>
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 | 5 +++++
bfd/elf-eh-frame.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 59a787b..0ebf45a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
+
+ * 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 <amodra@gmail.com>
* 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 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)
--
2.8.1