public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/18153] New: -static-libgcc links in libunwind.so.7
@ 2004-10-26  0:43 hjl at lucon dot org
  2004-10-26  0:49 ` [Bug target/18153] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-10-26  0:43 UTC (permalink / raw)
  To: gcc-bugs

-static-libgcc links in libunwind.so.7 even if it isn't used at all:

[hjl@gnu-4 tmp]$ cat f.c
int
main ()
{
  return 0;
}
[hjl@gnu-4 tmp]$ /usr/gcc-3.4/bin/gcc -static-libgcc f.c
[hjl@gnu-4 tmp]$ ./a.out
./a.out: error while loading shared libraries: libunwind.so.7: cannot open 
shared object file: No such file or directory

-- 
           Summary: -static-libgcc links in libunwind.so.7
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-unknown-linux-gnu
  GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
@ 2004-10-26  0:49 ` pinskia at gcc dot gnu dot org
  2004-10-26  1:07 ` hjl at lucon dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-26  0:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-26 00:49 -------
Your self caused this regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |hjl at lucon dot org
                   |dot org                     |
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |ASSIGNED
          Component|driver                      |target
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-26 00:49:47
               date|                            |
            Summary|-static-libgcc links in     |[3.4/4.0 Regression] -
                   |libunwind.so.7              |static-libgcc links in
                   |                            |libunwind.so.7
   Target Milestone|---                         |3.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
  2004-10-26  0:49 ` [Bug target/18153] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-26  1:07 ` hjl at lucon dot org
  2004-11-01  0:45 ` mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-10-26  1:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-10-26 01:07 -------
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02141.html

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
  2004-10-26  0:49 ` [Bug target/18153] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
  2004-10-26  1:07 ` hjl at lucon dot org
@ 2004-11-01  0:45 ` mmitchel at gcc dot gnu dot org
  2004-11-01 16:29 ` hjl at lucon dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01  0:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-01 00:45 -------
Postponed until GCC 3.4.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.3                       |3.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2004-11-01  0:45 ` mmitchel at gcc dot gnu dot org
@ 2004-11-01 16:29 ` hjl at lucon dot org
  2004-12-10 17:11 ` hjl at lucon dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-11-01 16:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-11-01 16:29 -------
An alternative is posted at

http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02209.html

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (3 preceding siblings ...)
  2004-11-01 16:29 ` hjl at lucon dot org
@ 2004-12-10 17:11 ` hjl at lucon dot org
  2004-12-14 17:52 ` hjl at lucon dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-12-10 17:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-12-10 17:11 -------
An updated patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00757.html

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (4 preceding siblings ...)
  2004-12-10 17:11 ` hjl at lucon dot org
@ 2004-12-14 17:52 ` hjl at lucon dot org
  2004-12-15 19:54 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-12-14 17:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-12-14 17:52 -------
Mark, can you take a look at the patch? Thanks.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at codesourcery dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (5 preceding siblings ...)
  2004-12-14 17:52 ` hjl at lucon dot org
@ 2004-12-15 19:54 ` mmitchel at gcc dot gnu dot org
  2004-12-15 22:54 ` hjl at lucon dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-15 19:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-12-15 19:54 -------
Why would we want to link libunwind statically?  I don't see why it shouldn't be
a shared library just like everything else.

In fact, I don't see this as a bug at all.  Binaries depend on libgcc already;
so, now they depend on libunwind too.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (6 preceding siblings ...)
  2004-12-15 19:54 ` mmitchel at gcc dot gnu dot org
@ 2004-12-15 22:54 ` hjl at lucon dot org
  2004-12-15 23:30 ` mark at codesourcery dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-12-15 22:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-12-15 22:54 -------
We tried very hard to provide -static-libgcc which links against
libgcc.a and libgcc_eh.a instead of libgcc.a and libgcc_s.so.1.
The main purpose of -static-libgcc is to link in the copy of
the unwind stuff. Introduction of libunwind moved the unwind
stuff from libgcc_s.so.1/libgcc_eh.a into libunwind.so.7/libunwind.a.
With libunwind, -static-libgcc should still link in the copy of
the unwind stuff, instead of from a shared library. Otherwise,
applications which expect that behavior of -static-libgcc won't
work correctly.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (7 preceding siblings ...)
  2004-12-15 22:54 ` hjl at lucon dot org
@ 2004-12-15 23:30 ` mark at codesourcery dot com
  2004-12-15 23:50 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mark at codesourcery dot com @ 2004-12-15 23:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mark at codesourcery dot com  2004-12-15 23:30 -------
Subject: Re:  [3.4/4.0 Regression] -static-libgcc links
 in libunwind.so.7

hjl at lucon dot org wrote:
> ------- Additional Comments From hjl at lucon dot org  2004-12-15 22:54 -------
> We tried very hard to provide -static-libgcc which links against
> libgcc.a and libgcc_eh.a instead of libgcc.a and libgcc_s.so.1.
> The main purpose of -static-libgcc is to link in the copy of
> the unwind stuff. Introduction of libunwind moved the unwind
> stuff from libgcc_s.so.1/libgcc_eh.a into libunwind.so.7/libunwind.a.
> With libunwind, -static-libgcc should still link in the copy of
> the unwind stuff, instead of from a shared library. Otherwise,
> applications which expect that behavior of -static-libgcc won't
> work correctly.

OK.  I understand now that your patch is just modifying the static 
linking case.  In that case, your change is OK.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (8 preceding siblings ...)
  2004-12-15 23:30 ` mark at codesourcery dot com
@ 2004-12-15 23:50 ` cvs-commit at gcc dot gnu dot org
  2004-12-16  0:20 ` cvs-commit at gcc dot gnu dot org
  2004-12-16  0:21 ` hjl at lucon dot org
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-15 23:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-15 23:50 -------
Subject: Bug 18153

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hjl@gcc.gnu.org	2004-12-15 23:50:30

Modified files:
	gcc            : ChangeLog config.in configure configure.ac 
	                 gcc.c 

Log message:
	2004-12-15  H.J. Lu  <hongjiu.lu@intel.com>
	
	PR target/18153
	* configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
	-Bstatic/-Bdynamic option.
	* config.in: Regenerated.
	* configure: Likewise.
	
	* gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
	-lunwind if possible.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6847&r2=2.6848
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.in.diff?cvsroot=gcc&r1=1.201&r2=1.202
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&r1=1.880&r2=1.881
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&r1=2.89&r2=2.90
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&r1=1.441&r2=1.442



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (9 preceding siblings ...)
  2004-12-15 23:50 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-16  0:20 ` cvs-commit at gcc dot gnu dot org
  2004-12-16  0:21 ` hjl at lucon dot org
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-16  0:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-16 00:17 -------
Subject: Bug 18153

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	hjl@gcc.gnu.org	2004-12-16 00:15:07

Modified files:
	gcc            : ChangeLog config.in configure configure.ac 
	                 gcc.c 

Log message:
	2004-12-15  H.J. Lu  <hongjiu.lu@intel.com>
	
	PR target/18153
	* configure.ac: Define HAVE_LD_STATIC_DYNAMIC if linker supports
	-Bstatic/-Bdynamic option.
	* config.in: Regenerated.
	* configure: Likewise.
	
	* gcc.c (init_spec): Pass -Bstatic/-Bdynamic to ld for static
	-lunwind if possible.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.739&r2=2.2326.2.740
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.in.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.181.4.4&r2=1.181.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.794.2.19&r2=1.794.2.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.6.2.17&r2=2.6.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.403.4.9&r2=1.403.4.10



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

* [Bug target/18153] [3.4/4.0 Regression] -static-libgcc links in libunwind.so.7
  2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
                   ` (10 preceding siblings ...)
  2004-12-16  0:20 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-16  0:21 ` hjl at lucon dot org
  11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-12-16  0:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hjl at lucon dot org  2004-12-16 00:19 -------
Fixed.

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18153


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

end of thread, other threads:[~2004-12-16  0:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26  0:43 [Bug driver/18153] New: -static-libgcc links in libunwind.so.7 hjl at lucon dot org
2004-10-26  0:49 ` [Bug target/18153] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-26  1:07 ` hjl at lucon dot org
2004-11-01  0:45 ` mmitchel at gcc dot gnu dot org
2004-11-01 16:29 ` hjl at lucon dot org
2004-12-10 17:11 ` hjl at lucon dot org
2004-12-14 17:52 ` hjl at lucon dot org
2004-12-15 19:54 ` mmitchel at gcc dot gnu dot org
2004-12-15 22:54 ` hjl at lucon dot org
2004-12-15 23:30 ` mark at codesourcery dot com
2004-12-15 23:50 ` cvs-commit at gcc dot gnu dot org
2004-12-16  0:20 ` cvs-commit at gcc dot gnu dot org
2004-12-16  0:21 ` hjl at lucon 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).