Opened 12 years ago

Closed 12 years ago

Last modified 12 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 Changed 12 years ago by bird

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 Changed 12 years ago by bird

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