* [Buildroot] [PATCH] binutils: add upstream patch to fix open microblaze issue
@ 2016-11-05 15:42 Waldemar Brodkorb
2016-11-05 22:36 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2016-11-05 15:42 UTC (permalink / raw)
To: buildroot
This reenables the use of 2.27 for microblaze.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
...-Set-dynamic-tag-VMA-and-size-from-dynami.patch | 36 ++++++++++++++++++++++
package/binutils/Config.in.host | 3 --
2 files changed, 36 insertions(+), 3 deletions(-)
create mode 100644 package/binutils/2.27/0900-Revert-part-Set-dynamic-tag-VMA-and-size-from-dynami.patch
diff --git a/package/binutils/2.27/0900-Revert-part-Set-dynamic-tag-VMA-and-size-from-dynami.patch b/package/binutils/2.27/0900-Revert-part-Set-dynamic-tag-VMA-and-size-from-dynami.patch
new file mode 100644
index 0000000..f1ec259
--- /dev/null
+++ b/package/binutils/2.27/0900-Revert-part-Set-dynamic-tag-VMA-and-size-from-dynami.patch
@@ -0,0 +1,36 @@
+From c646b02fdcae5f37bd88f33a0c4683ef13ad5c82 Mon Sep 17 00:00:00 2001
+From: Alan Modra <amodra@gmail.com>
+Date: Mon, 31 Oct 2016 12:46:38 +1030
+Subject: [PATCH] Revert part "Set dynamic tag VMA and size from dynamic
+ section when possible"
+
+ PR 20748
+ * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Revert
+ 2016-05-13 change.
+
+Signed-off-by: Alan Modra <amodra@gmail.com>
+Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
+
+diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
+index 477e7b3..5c66808 100644
+--- a/bfd/elf32-microblaze.c
++++ b/bfd/elf32-microblaze.c
+@@ -3396,13 +3396,13 @@ microblaze_elf_finish_dynamic_sections (bfd *output_bfd,
+ {
+ asection *s;
+
+- s = bfd_get_linker_section (dynobj, name);
++ s = bfd_get_section_by_name (output_bfd, name);
+ if (s == NULL)
+ dyn.d_un.d_val = 0;
+ else
+ {
+ if (! size)
+- dyn.d_un.d_ptr = s->output_section->vma + s->output_offset;
++ dyn.d_un.d_ptr = s->vma;
+ else
+ dyn.d_un.d_val = s->size;
+ }
+--
+2.1.4
+
diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index dce6996..3e0c357 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -17,9 +17,6 @@ choice
config BR2_BINUTILS_VERSION_2_27_X
bool "binutils 2.27"
- # supported but broken on Microblaze
- # see https://sourceware.org/bugzilla/show_bug.cgi?id=20748
- depends on !BR2_microblaze
endchoice
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] binutils: add upstream patch to fix open microblaze issue
2016-11-05 15:42 [Buildroot] [PATCH] binutils: add upstream patch to fix open microblaze issue Waldemar Brodkorb
@ 2016-11-05 22:36 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-11-05 22:36 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 5 Nov 2016 16:42:19 +0100, Waldemar Brodkorb wrote:
> This reenables the use of 2.27 for microblaze.
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
> ...-Set-dynamic-tag-VMA-and-size-from-dynami.patch | 36 ++++++++++++++++++++++
> package/binutils/Config.in.host | 3 --
> 2 files changed, 36 insertions(+), 3 deletions(-)
> create mode 100644 package/binutils/2.27/0900-Revert-part-Set-dynamic-tag-VMA-and-size-from-dynami.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-05 22:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-05 15:42 [Buildroot] [PATCH] binutils: add upstream patch to fix open microblaze issue Waldemar Brodkorb
2016-11-05 22:36 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox