[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2020-04-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=13406

Fangrui Song  changed:

   What|Removed |Added

 CC||i at maskray dot me

--- Comment #10 from Fangrui Song  ---
Lionel's original patch can still be applied (with line number shift).

  if (link_info.version_info != NULL
  && (name[0] == '\0' || link_info.version_info->name[0] == '\0'))
{
  einfo (_("%X%P: anonymous version tag cannot be combined"
   " with other version tags\n"));
  free (version);
  return;
}


This is an arbitrary and non-meaningful restriction to me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2016-03-03 Thread sbergman at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13406

--- Comment #9 from Stephan Bergmann  ---
(The original problem had been solved in LibreOffice with

"fdo#42865: privatized unique empty string symbol," i.e., adding
_ZNSs4_Rep20_S_empty_rep_storageE to the version maps in a section named
GLIBCXX_3.4, the same section libstdc++ weakly exports it in.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2016-03-03 Thread lionel at mamane dot lu
https://sourceware.org/bugzilla/show_bug.cgi?id=13406

Lionel Elie Mamane  changed:

   What|Removed |Added

 CC||sbergman at redhat dot com

--- Comment #8 from Lionel Elie Mamane  ---
Note that LibreOffice now moved away from version scripts, so we don't have
this particular problem in LibreOffice anymore.

I find another related issue from LibreOffice's past, see
http://www.sourceware.org/ml/binutils/2003-02/msg00055.html
Open/LibreOffice eventually standardised on something "UDK_3_0_0" for the
"Base" that is mentioned above, but I wonder how badly that interacted with
"external" C++ libraries that were using the anonymous _ZTI* and _ZTS* symbols.
/me thinks badly.

So, although LibreOffice does not suffer from these issues anymore, I guess
binutils should provide a solution.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2016-03-03 Thread lionel at mamane dot lu
https://sourceware.org/bugzilla/show_bug.cgi?id=13406

Lionel Elie Mamane  changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #7 from Lionel Elie Mamane  ---
I cannot anymore reproduce the abort as originally encountered with C++'s
std::string; it looks like std::string's destructor does not anymore rely on
unicity of the _S_empty_rep_storage symbol. This works around this problem.

>From my test-case, "make foo-ok" still fails, because mixing anonymous tags and
versioned tags is still forbidden. Comment 4 says it should be so, but then
immediately starts talking about "solaris platform", so:

1) I'm not sure if mixing anonymous tags and versioned tags should be forbidden
on other platforms, too.

2) I don't see how to solve the original problem, which was to use global
symbols THAT LD MUST MERGE with the same symbol in other libraries, in a
library that uses versioned symbols and hides its symbols by default, but
"unhides" specifically this global symbol. In other words: how to hide all
symbols, except one, and leave that "not hidden" symbol as if there was
absolutely no version script?

Maybe on most platforms we should allow mixing of anonymous and non-anonymous
tags, and on solaris only, automatically replace "anonymous" by "base version"?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2016-02-26 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13406

H.J. Lu  changed:

   What|Removed |Added

 Status|REOPENED|WAITING
 CC||hjl.tools at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2016-02-26 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13406

H.J. Lu  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|DUPLICATE   |---

--- Comment #6 from H.J. Lu  ---
Please try binutils 2.26.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-11-13 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406

Igor Pashev  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #5 from Igor Pashev  2012-11-13 
21:23:26 UTC ---
Bug #12548 has some real fix.

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

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-11-09 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406

--- Comment #4 from Igor Pashev  2012-11-09 
18:56:08 UTC ---
anonymous tag may not be combined with other tags.

Instead, on Solaris platform, any non-tagged symbol must be tagged with "Base
version": soname or file base name (if no soname)

https://github.com/illumos/illumos-gate/blob/master/usr/src/cmd/sgs/libld/common/version.c#L948

So if libfoo.so.2 has such a mapfile:

{
global:
foo_hello;
foo_world;
}

it must be read as:

libfoo.so.2 {
global:
foo_hello;
foo_world;
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-08-17 Thread bugzi...@andreas-borchert.de
http://sourceware.org/bugzilla/show_bug.cgi?id=13406

Andreas F. Borchert  changed:

   What|Removed |Added

 CC||bugzilla@andreas-borchert.d
   ||e

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-02-24 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406

--- Comment #3 from Igor Pashev  2012-02-25 
07:30:58 UTC ---
What about assigning [on the fly] some tag instead to those "anonymous" tags?

Say "__solaris_anon" or whatsoever. Or maybe "Base". dpkg-gensymbols list
anonymous tags as @Base. In any case if this will be fixed in other way, we can
use LD_NOVERSION for transition.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-01-26 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406

--- Comment #2 from Igor Pashev  2012-01-26 
12:52:33 UTC ---
(In reply to comment #0)

> This would also solve bug 12548 as a side-effect :)

I' not sure. I got "File format not recognized" when linking library built with
this patch (and mixing anon- and non-anon tags)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2012-01-26 Thread pashev.igor at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13406

Igor Pashev  changed:

   What|Removed |Added

 CC||pashev.igor at gmail dot
   ||com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2011-11-14 Thread lionel at mamane dot lu
http://sourceware.org/bugzilla/show_bug.cgi?id=13406

Lionel Elie Mamane  changed:

   What|Removed |Added

  Component|binutils|ld

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils