rtld: Fix TLS inconsistency, cleanups
authorJohn Marino <draco@marino.st>
Sat, 14 Jan 2012 13:32:07 +0000 (14:32 +0100)
committerJohn Marino <draco@marino.st>
Sat, 14 Jan 2012 13:42:55 +0000 (14:42 +0100)
commit0c151ba00f8c7a259f4dcf94290729889eab686d
tree558cf5d833f13b3f0f438d948f2359a0ac9561ca
parent8301820ef8df692f611b357f285fe4ddca9e5710
rtld: Fix TLS inconsistency, cleanups

Fixes FreeBSD PR kern/160721: TLS is inconsistent
Uses the proper TLS block to calculate the TLS variable address in the
event the TLS data generation was updated.  (FreeBSD SVN 225582)

Also cleaned up a typo and added some parentheses around return
values to sync up with FreeBSD.
libexec/rtld-elf/i386/rtld_start.S
libexec/rtld-elf/rtld.c