This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
strong aliases for data do not work properly in shared libs
- From: Mike Frysinger <vapier at gentoo dot org>
- To: libc-alpha at sourceware dot org
- Date: Thu, 13 Apr 2006 11:29:46 -0400
- Subject: strong aliases for data do not work properly in shared libs
- Geoman: IS A RETARD
while playing with strong and weak aliases for data and functions, we noticed
the following behavior:
- integer "foo" has a strong alias "bar" in "libmine.so" ... but when working
with the alias "bar" in a binary that links against "libmine.so", the
original int "foo" is not updated and vice versa
- changing the strong alias to a weak alias and everything is peachy
- strong/weak aliases with functions behave just fine
- bug only shows up when working with dynamic code ... static binaries work as
expected
the attached testcases shows the issue pretty clearly
-mike