Bug 23387 - Weak support
Summary: Weak support
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.3
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-14 18:59 UTC by John David Anglin
Modified: 2005-11-26 01:46 UTC (History)
1 user (show)

See Also:
Host:
Target: hppa*-hp-hpux11* (32-bit only)
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-11-26 01:46:47


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2005-08-14 18:59:33 UTC
This PR is a placeholder for known limitations regarding the weak support
of the HP PA_RISC target under HP-UX 11 and later.  This support is available
in GCC 3.3 and later.

Weak support on this target is implemented using SOM secondary definition
(sdef) symbols.  While sdef symbols have some of the attributes of weak
symbols as defined in the ELF SYSV ABI, they differ in behavior in the
following ways:

1) Undefined sdef symbols generate linker and/or runtime errors.
2) The first definition seen by the linker is used (i.e., a primary
   definition doesn't replace an earlier secondary definition).
3) Secondary symbols in objects linked into a shared object become
   primary symbols (sdef symbols never appear in shared objects).
Comment 1 Andrew Pinski 2005-08-18 03:20:33 UTC
Confirmed.