public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
@ 2007-05-03  5:31 carlos at systemhalted dot org
  2007-05-03  5:32 ` [Bug libc/4457] " carlos at systemhalted dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: carlos at systemhalted dot org @ 2007-05-03  5:31 UTC (permalink / raw)
  To: glibc-bugs

The file sysdeps/generic/framestate.c has a hardcoded value of "libgcc.so.1".
Some architectures have bumped the so version on libgcc_s and therefore the
hardcoded value is wrong.

It would be nice if ports could write:
ports/sysdeps/$target/framestate.c:
#define LIBGCC_S_SO "libgcc_so.so.2"
#include-next <framestate.c>

There are other alternatives but this one seemed the simplest and easiest to
maintain.

Patch attached.

-- 
           Summary: Allow ports a simple override of "libgcc_s.so.1" in
                    sysdeps/generic/framestate.c
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: carlos at systemhalted dot org
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: hppa-linux-gnu
  GCC host triplet: hppa-linux-gnu
GCC target triplet: hppa-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
@ 2007-05-03  5:32 ` carlos at systemhalted dot org
  2007-05-07 14:40 ` jakub at redhat dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: carlos at systemhalted dot org @ 2007-05-03  5:32 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From carlos at systemhalted dot org  2007-05-03 06:32 -------
Created an attachment (id=1746)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1746&action=view)
[PATCH] Allow override of "libgcc_s.so.1" in framestate.c

This patch allows the override of "libgcc_s.so.1" in
sysdeps/generic/framestate.c.

Tested without regressions on hppa-linux-gnu.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
  2007-05-03  5:32 ` [Bug libc/4457] " carlos at systemhalted dot org
@ 2007-05-07 14:40 ` jakub at redhat dot com
  2007-08-22  7:15 ` drepper at redhat dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at redhat dot com @ 2007-05-07 14:40 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-05-07 15:40 -------
framestate.c is so short that I wonder if it isn't better just to duplicate
the file in ports.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
  2007-05-03  5:32 ` [Bug libc/4457] " carlos at systemhalted dot org
  2007-05-07 14:40 ` jakub at redhat dot com
@ 2007-08-22  7:15 ` drepper at redhat dot com
  2009-08-23 18:54 ` mkuvyrkov at gmail dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2007-08-22  7:15 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-08-22 07:15 -------
No reply in 3+ months.  Closing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (2 preceding siblings ...)
  2007-08-22  7:15 ` drepper at redhat dot com
@ 2009-08-23 18:54 ` mkuvyrkov at gmail dot com
  2009-08-23 18:55 ` mkuvyrkov at gmail dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gmail dot com @ 2009-08-23 18:54 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From mkuvyrkov at gmail dot com  2009-08-23 18:53 -------
Created an attachment (id=4144)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4144&action=view)
Another attempt

Hello,

The attached patch makes another attempt to fix this issue.

It doesn't implement exactly the solution Ulrich proposed above in that it
doesn't detects the version of libgcc_s.so installed.  Instead, the patch make
GLIBC to rely on shlib-versions files to specify it.

The entry in top-level shlib-versions file specifies the version of libgcc_s to
be '1' (what most architectures have) and shlib-versions in sysdeps directories
can override that.

FWIW, making GLIBC to autodetect the version of libgcc_s installed does not
seem trivial to me.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1746 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (3 preceding siblings ...)
  2009-08-23 18:54 ` mkuvyrkov at gmail dot com
@ 2009-08-23 18:55 ` mkuvyrkov at gmail dot com
  2009-08-23 18:57 ` mkuvyrkov at gmail dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gmail dot com @ 2009-08-23 18:55 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From mkuvyrkov at gmail dot com  2009-08-23 18:55 -------
Created an attachment (id=4145)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4145&action=view)
Set libgcc_s' version for m68k and hppa

This patch sets libgcc_s' version to 2 for m68k and to 4 for hppa.

The combined patch was tested on m68k and powerpc.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (4 preceding siblings ...)
  2009-08-23 18:55 ` mkuvyrkov at gmail dot com
@ 2009-08-23 18:57 ` mkuvyrkov at gmail dot com
  2009-10-26 20:10 ` mkuvyrkov at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gmail dot com @ 2009-08-23 18:57 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From mkuvyrkov at gmail dot com  2009-08-23 18:56 -------
Would please maintainers kindly consider the patches attached above?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (5 preceding siblings ...)
  2009-08-23 18:57 ` mkuvyrkov at gmail dot com
@ 2009-10-26 20:10 ` mkuvyrkov at gmail dot com
  2009-11-08 18:46 ` carlos at systemhalted dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gmail dot com @ 2009-10-26 20:10 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From mkuvyrkov at gmail dot com  2009-10-26 20:09 -------
Ping.

Would maintainers please kindly consider the patches in the attachment.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (6 preceding siblings ...)
  2009-10-26 20:10 ` mkuvyrkov at gmail dot com
@ 2009-11-08 18:46 ` carlos at systemhalted dot org
  2009-11-08 18:50 ` carlos at systemhalted dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: carlos at systemhalted dot org @ 2009-11-08 18:46 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From carlos at systemhalted dot org  2009-11-08 18:46 -------
This is now fixed on trunk by these patches. 

This fix will be part of 2.11 given that the 2.11 branch happens from trunk.

/

2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>

[BZ #4457]
* sysdeps/generic/libgcc_s.h: New file.
* sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.

nptl/

2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>

[BZ #4457]
* sysdeps/pthread/unwind-resume.c: Include <libgcc_s.h> and use
LIBGCC_S_SO.
* sysdeps/pthread/unwind-forcedunwind.c: Likewise.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (7 preceding siblings ...)
  2009-11-08 18:46 ` carlos at systemhalted dot org
@ 2009-11-08 18:50 ` carlos at systemhalted dot org
  2009-11-08 18:54 ` carlos at systemhalted dot org
  2009-11-08 18:55 ` carlos at systemhalted dot org
  10 siblings, 0 replies; 12+ messages in thread
From: carlos at systemhalted dot org @ 2009-11-08 18:50 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |10920
              nThis|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (8 preceding siblings ...)
  2009-11-08 18:50 ` carlos at systemhalted dot org
@ 2009-11-08 18:54 ` carlos at systemhalted dot org
  2009-11-08 18:55 ` carlos at systemhalted dot org
  10 siblings, 0 replies; 12+ messages in thread
From: carlos at systemhalted dot org @ 2009-11-08 18:54 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |10921
              nThis|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/4457] Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c
  2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
                   ` (9 preceding siblings ...)
  2009-11-08 18:54 ` carlos at systemhalted dot org
@ 2009-11-08 18:55 ` carlos at systemhalted dot org
  10 siblings, 0 replies; 12+ messages in thread
From: carlos at systemhalted dot org @ 2009-11-08 18:55 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From carlos at systemhalted dot org  2009-11-08 18:55 -------
Per the new bugzilla procedure I've opened new issues for m68k and hppa to
provide libgcc_s.h.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|10920, 10921                |
              nThis|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=4457

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-11-08 18:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-03  5:31 [Bug libc/4457] New: Allow ports a simple override of "libgcc_s.so.1" in sysdeps/generic/framestate.c carlos at systemhalted dot org
2007-05-03  5:32 ` [Bug libc/4457] " carlos at systemhalted dot org
2007-05-07 14:40 ` jakub at redhat dot com
2007-08-22  7:15 ` drepper at redhat dot com
2009-08-23 18:54 ` mkuvyrkov at gmail dot com
2009-08-23 18:55 ` mkuvyrkov at gmail dot com
2009-08-23 18:57 ` mkuvyrkov at gmail dot com
2009-10-26 20:10 ` mkuvyrkov at gmail dot com
2009-11-08 18:46 ` carlos at systemhalted dot org
2009-11-08 18:50 ` carlos at systemhalted dot org
2009-11-08 18:54 ` carlos at systemhalted dot org
2009-11-08 18:55 ` carlos at systemhalted dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).