Bug 12262 - gold fails to link symbols explicitly defined in base-version
Summary: gold fails to link symbols explicitly defined in base-version
Status: RESOLVED DUPLICATE of bug 12261
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.22
: P2 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 01:20 UTC by Diego Elio Pettenò
Modified: 2010-11-24 01:22 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò 2010-11-24 01:20:54 UTC
The binutils manual for ld suggests using this syntax to define a symbol explicitly in base-version:

__asm__(".symver original_foo,foo@");
__asm__(".symver new_foo,foo@@VERS2");

but code compiled with this syntax is rejected by gold as the version "" is undefined.

I'm attaching a patch to solve the issue, which ensures that the base version is registered for the "" version.

Thanks,
Diego
Comment 1 Diego Elio Pettenò 2010-11-24 01:22:19 UTC
Bad submit.

*** This bug has been marked as a duplicate of bug 12261 ***