bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gold and shared objects with gcc 4.1.2


From: Roland Baumann
Subject: Re: gold and shared objects with gcc 4.1.2
Date: Fri, 16 Jan 2009 11:08:21 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

Hi Ian,

this patch indeed fixes my problem. Thanks a lot.

Actually, I am wondering whether it makes sense to use "-s" and "-shared" together. What information stays in the shared object that I am still able to link it?

Roland

Ian Lance Taylor wrote:
Roland Baumann <address@hidden> writes:

I compile this with:

g++-4.1.2 -c test_shared.cc -o test_shared.o
g++-4.1.2 -B <path_to_gold> -shared -s test_shared.o -o test_shared.so
I'm not able to recreate this problem with either binutils 2.19 or
with the development version.  Can you post the output of your -shared
command line with the -v option?  That will show precisely how the
linker is being invoked.

Here it comes:

Thanks.  Unfortunately I still can't recreate it.

I took a closer look at the code, and I found a possible problem if
there are local symbols which have to go into the dynamic symbol
table.  I committed this patch, which may fix your problem.

Ian


2009-01-15  Ian Lance Taylor  <address@hidden>

        * object.cc (Sized_relobj::write_local_symbols): Don't write out
        local symbols when stripping all symbols.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]