This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: link errors with simple c++ prog on hpux10/11/a couple others
- To: nneul at umr dot edu (Neulinger, Nathan R.)
- Subject: Re: link errors with simple c++ prog on hpux10/11/a couple others
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Tue, 11 Jul 2000 13:46:26 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org
>
> Here is the linker output when trying to link the simple program. I even
> went so far as to pull one of the .o files out of libgcc.a. It sure looks to
> me like the code is there, but somehow the linker isn't finding it.
...
> /usr/bin/ld: Unsatisfied symbols:
> __builtin_delete (code)
Look at libgcc.a with "nm -p". __builtin_delete should be in module opdel.o.
This is how it looks from my build:
libgcc.a[opdel.o]:
0000000000 t $CODE$
0000000508 t L$0005
0000000456 t L$0013
0000000168 t L$0018
0000000220 t L$0019
0000000392 t L$0020
0000000000 d L$text0000
0000000000 d L$text_end0000
0000000003 TS __builtin_delete
0000000000 U __check_null_eh_spec
0000000000 U __cp_pop_exception
0000000000 U __get_eh_context
0000000000 U __sjthrow
0000000000 U __start_cp_handler
0000000000 U __terminate
0000000000 U free
The 'S' indicates that it is a secondary definition. The other references
to it in the library should be 'U'.
The virtual table symbols should look like:
1073741968 DS _vt$10bad_typeid
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)