This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

strong aliases for data do not work properly in shared libs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]