Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#254 closed defect (fixed)

weakld: weakld incorrectly reports duplicate symbols

Reported by: dmik Owned by: bird
Priority: normal Milestone: libc-0.6.5
Component: emx Version: 0.6.4
Severity: normal Keywords: weakld
Cc:

Description

If a symbol is both listed in the EXPORTS section (a public name for a function that has a different internal name) and in the IMPORTS section (an import of another function from a different DLL), WEAKLD will complain about duplicate symbols. This is not correct since these symbols are in unrelated "namespaces".

This library demonstrates the problem: http://svn.netlabs.org/odin32/browser/branches/gcc-kmk/src/capi2032?rev=21904. The current solution is to use an extra import library + WLINK response file directly.

Change History (2)

comment:1 by bird, 13 years ago

Keywords: weakld added
Milestone: libc-0.6.5
Resolution: fixed
Severity: blockernormal
Status: newclosed
Version: 0.6.4

r3751 tries to address the problem. It is a relatively risky fix as it's quite a while since I wrote that code... Let's hope I got it right.

Testcase in r3752. Backported in r3753. Case closed (for now).

comment:2 by bird, 13 years ago

Summary: WEAKLD incorrectly reports duplicate symbolsweakld: weakld incorrectly reports duplicate symbols
Note: See TracTickets for help on using tickets.