This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem creating a static library


On Sep 30, 2004, at 3:56 AM, Danilo José wrote:
It is happening something really strange.

Ah, I don't know why you didn't include that information in the first place, I could have told you exactly what happened and why.


In the .s file for the file contains the definition ('S'), you will find the word notoc, or no_toc, this is a bug. If that is removed, this will work as expected. The work around, is to not use a .a file, or to put a symbol in that file that is referenced by something that is in the program.[1]

1 - This depends upon the symbol names being the same between the undefined and the defined, after you remove c++filt. It has been known to happen that two differrent spellings are mapped to the same demangled name, thus leading to confusion. I doubt this would be the case in this instance.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]