This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19887] g++.dg/warn/weak1.C fails on HPUX
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2005 00:27:25 -0000
- Subject: [Bug target/19887] g++.dg/warn/weak1.C fails on HPUX
- References: <20050211004505.19887.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From danglin at gcc dot gnu dot org 2005-03-13 00:27 -------
They are both issues with the HP linker and dynamic loader. In my
opinion, they are different issues.
Regarding, g++.dg/warn/weak1.C the dynamic loader will not execute
an application binary that has undefined symbols. On hppa64-*-hpux11*,
it's possible to create an application binary with undefined symbols.
However, the dynamic loader will not execute the binary. Thus, the
technique of testing the address of a weak function to see if it is
defined or not won't work on this target.
The failure of gcc.dg/special/weak-1.c on the 32-bit target occurs
because the linker selects the weak/secondary definition instead of
the primary definition. In my opinion, this is a HP linker bug.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |danglin at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19887