Don't write errno to the GOT, but properly follow the indirection
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 19 Jan 2008 13:30:51 +0000 (13:30 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 19 Jan 2008 13:30:51 +0000 (13:30 +0000)
commitd4fca68c8b3aded13954bc509c820f01052faee8
tree4ca9561b1e6f5fc27f597c9bb1fb9f0fd0e864f8
parentf4f4d776aecf88450d68da2fa9494651ad457232
Don't write errno to the GOT, but properly follow the indirection

This only applies to PIC objects without TLS support, i.e. rtld.
This was broken since long but didn't get caught, because rtld is the
only consumer of this configuration and doesn't deal with errno a lot.

Noticed-by: godlkwrth on IRC while porting WINE
lib/libc/i386/sys/cerror.S