From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ec31fb6eda682268 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: James Alan Farrell Newsgroups: comp.lang.ada Subject: Re: STORAGE_ERROR in adainit Date: Wed, 18 Aug 2004 17:13:33 -0400 Message-ID: References: <7on6i05k3etrq0ol5aoaffkqasnenie5ff@4ax.com> X-Newsreader: Forte Free Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: fw.grammatech.com X-Trace: newsfeed.slurp.net 1092863678 209.4.89.67 (18 Aug 2004 16:14:38 -0500) X-Original-NNTP-Posting-Host: 209.4.89.67 Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeed.slurp.net!not-for-mail Xref: g2news1.google.com comp.lang.ada:2815 Date: 2004-08-18T17:13:33-04:00 List-Id: On 18 Aug 2004 20:44:30 +0100, Simon Wright wrote: >James Alan Farrell writes: > >> Other than that I don't understand why you would have different >> results. Perhaps it is because my program_error C function is in a >> library, not in a .o file? Don't know what different that would make, >> though. I'll play around with the above program to see what I get. > >Symbols in a library.a are loaded if required (ie, if something before >-l rary requires symbol foo, and module bar.o in library.a contains a >definition of foo, then bar.o is "extracted" from library.a and linked >in). > >If on the other hand you include bar.o on the ld command line, it's >linked unconditionally. So what you are saying is (at least in this situation) it should make no difference because the whole of the .o file is linked(?) This agrees with my understanding, but not with what we are seeing. Either I should not get the problem because the object file with program_error is not linked OR I should get the same warning Bjorn got. (Apologies for the spelling of Bjorn - I do not know how to access non-English characters on the keyboard) Unfortunately I have not had time to look at Bjorn's program today, and don't know if I'll get to it this week, but I will as soon as I can. James Alan