strong aliases for data do not work properly in shared libs

Mike Frysinger vapier@gentoo.org
Thu Apr 13 15:29:00 GMT 2006


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



More information about the Libc-alpha mailing list