* [Buildroot] [PATCH v2] glibc: fix sh4 compile issue
@ 2017-04-13 5:07 Waldemar Brodkorb
2017-04-13 19:58 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Waldemar Brodkorb @ 2017-04-13 5:07 UTC (permalink / raw)
To: buildroot
Fixes:
https://bugs.busybox.net/show_bug.cgi?id=9756
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
v1->v2:
- add patches for 2.23/2.25, requested by Arnout
In the past I remember some discussions about removing version
selection for all C libraries. Any idea why we still have more than
one glibc version?
---
package/glibc/2.23/0001-sh4-fix.patch | 17 +++++++++++++++++
package/glibc/2.24/0001-sh4-fix.patch | 17 +++++++++++++++++
package/glibc/2.25/0001-sh4-fix.patch | 17 +++++++++++++++++
3 files changed, 51 insertions(+)
create mode 100644 package/glibc/2.23/0001-sh4-fix.patch
create mode 100644 package/glibc/2.24/0001-sh4-fix.patch
create mode 100644 package/glibc/2.25/0001-sh4-fix.patch
diff --git a/package/glibc/2.23/0001-sh4-fix.patch b/package/glibc/2.23/0001-sh4-fix.patch
new file mode 100644
index 0000000..20bbfad
--- /dev/null
+++ b/package/glibc/2.23/0001-sh4-fix.patch
@@ -0,0 +1,17 @@
+Backport of
+https://sourceware.org/git/?p=glibc.git;a=commit;h=d40dbe722f004f999b589de776f7e57e564dda01
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur glibc-2.23.orig/sysdeps/sh/dl-machine.h glibc-2.23/sysdeps/sh/dl-machine.h
+--- glibc-2.23.orig/sysdeps/sh/dl-machine.h 2016-02-18 18:54:00.000000000 +0100
++++ glibc-2.23/sysdeps/sh/dl-machine.h 2017-04-13 06:33:14.967668965 +0200
+@@ -389,7 +389,7 @@
+ break;
+ case R_SH_DIR32:
+ {
+-#ifndef RTLD_BOOTSTRAP
++#if !defined RTLD_BOOTSTRAP && !defined RESOLVE_CONFLICT_FIND_MAP
+ /* This is defined in rtld.c, but nowhere in the static
+ libc.a; make the reference weak so static programs can
+ still link. This declaration cannot be done when
diff --git a/package/glibc/2.24/0001-sh4-fix.patch b/package/glibc/2.24/0001-sh4-fix.patch
new file mode 100644
index 0000000..3c22e01
--- /dev/null
+++ b/package/glibc/2.24/0001-sh4-fix.patch
@@ -0,0 +1,17 @@
+Backport of
+https://sourceware.org/git/?p=glibc.git;a=commit;h=d40dbe722f004f999b589de776f7e57e564dda01
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur glibc-2.24.orig/sysdeps/sh/dl-machine.h glibc-2.24/sysdeps/sh/dl-machine.h
+--- glibc-2.24.orig/sysdeps/sh/dl-machine.h 2016-08-02 04:01:36.000000000 +0200
++++ glibc-2.24/sysdeps/sh/dl-machine.h 2017-04-10 21:53:51.413196297 +0200
+@@ -389,7 +389,7 @@
+ break;
+ case R_SH_DIR32:
+ {
+-#ifndef RTLD_BOOTSTRAP
++#if !defined RTLD_BOOTSTRAP && !defined RESOLVE_CONFLICT_FIND_MAP
+ /* This is defined in rtld.c, but nowhere in the static
+ libc.a; make the reference weak so static programs can
+ still link. This declaration cannot be done when
diff --git a/package/glibc/2.25/0001-sh4-fix.patch b/package/glibc/2.25/0001-sh4-fix.patch
new file mode 100644
index 0000000..60d25c4
--- /dev/null
+++ b/package/glibc/2.25/0001-sh4-fix.patch
@@ -0,0 +1,17 @@
+Backport of
+https://sourceware.org/git/?p=glibc.git;a=commit;h=d40dbe722f004f999b589de776f7e57e564dda01
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur glibc-2.25.orig/sysdeps/sh/dl-machine.h glibc-2.25/sysdeps/sh/dl-machine.h
+--- glibc-2.25.orig/sysdeps/sh/dl-machine.h 2017-02-05 16:28:43.000000000 +0100
++++ glibc-2.25/sysdeps/sh/dl-machine.h 2017-04-12 19:49:12.501756097 +0200
+@@ -389,7 +389,7 @@
+ break;
+ case R_SH_DIR32:
+ {
+-#ifndef RTLD_BOOTSTRAP
++#if !defined RTLD_BOOTSTRAP && !defined RESOLVE_CONFLICT_FIND_MAP
+ /* This is defined in rtld.c, but nowhere in the static
+ libc.a; make the reference weak so static programs can
+ still link. This declaration cannot be done when
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH v2] glibc: fix sh4 compile issue
2017-04-13 5:07 [Buildroot] [PATCH v2] glibc: fix sh4 compile issue Waldemar Brodkorb
@ 2017-04-13 19:58 ` Thomas Petazzoni
2017-04-24 19:25 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-04-13 19:58 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 13 Apr 2017 07:07:32 +0200, Waldemar Brodkorb wrote:
> Fixes:
> https://bugs.busybox.net/show_bug.cgi?id=9756
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
I've applied, but there were several issues:
- First, you still don't use Git to format patches. Please use Git to
format patches.
- If you had done that, then the patches would have automatically had
the original description, which we want to have in Buildroot.
- Finally, for the 2.23, there was already a 0001-<something> patch,
so the numbering was wrong.
I've fixed up those issues, see
https://git.buildroot.org/buildroot/commit/?id=5f2cff973a8a64411d85ccb9d5c9a40962d67552.
> In the past I remember some discussions about removing version
> selection for all C libraries. Any idea why we still have more than
> one glibc version?
Historical reason I'd say.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] glibc: fix sh4 compile issue
2017-04-13 19:58 ` Thomas Petazzoni
@ 2017-04-24 19:25 ` Peter Korsgaard
0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-04-24 19:25 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> Hello,
> On Thu, 13 Apr 2017 07:07:32 +0200, Waldemar Brodkorb wrote:
>> Fixes:
>> https://bugs.busybox.net/show_bug.cgi?id=9756
>>
>> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> I've applied, but there were several issues:
> - First, you still don't use Git to format patches. Please use Git to
> format patches.
> - If you had done that, then the patches would have automatically had
> the original description, which we want to have in Buildroot.
> - Finally, for the 2.23, there was already a 0001-<something> patch,
> so the numbering was wrong.
> I've fixed up those issues, see
> https://git.buildroot.org/buildroot/commit/?id=5f2cff973a8a64411d85ccb9d5c9a40962d67552.
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-24 19:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-13 5:07 [Buildroot] [PATCH v2] glibc: fix sh4 compile issue Waldemar Brodkorb
2017-04-13 19:58 ` Thomas Petazzoni
2017-04-24 19:25 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox