diff options
author | peter <peter@FreeBSD.org> | 2013-11-17 22:52:17 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2013-11-17 22:52:17 +0000 |
commit | 6ba7ed93e26f167230a283ea6a3db30a097bb8eb (patch) | |
tree | a08268f5081298bbb417c0278202ffe5b5b18bde /include/iconv.h | |
parent | 10685f105cb44d311bef08e15894cdae3ee9bbd7 (diff) | |
download | FreeBSD-src-6ba7ed93e26f167230a283ea6a3db30a097bb8eb.zip FreeBSD-src-6ba7ed93e26f167230a283ea6a3db30a097bb8eb.tar.gz |
Attempt to move the POSIX iconv* symbols out of runtime linker space.
FreeBSD systems usually implemented this as a third party module and
our implementation hasn't played as nicely with the old way as it could
have.
To that end:
* Rename the iconv* symbols in libc.so.7 to have a __bsd_ prefix.
* Provide .symver compatability with existing 10.x+ binaries that
referenced the iconv symbols. All existing binaries should work.
* Like on Linux/glibc systems, add a libc_nonshared.a to the ldscript
at /usr/lib/libc.so.
* Move the "iconv*" wrapper symbols to libc_nonshared.a
This should solve the runtime ambiguity about which symbols resolve
to where. If you compile against the iconv in libc, your runtime
dependencies will be unambiguous.
Old 9.x libraries and binaries will always resolve against their
libiconv.so.3 like they did on 9.x. They won't resolve against libc.
Old 10.x binaries will be satisified by the .symver helpers.
This should allow ports to selectively compile against the libiconv
port if needed and it should behave without ambiguity now.
Discussed with: kib
Diffstat (limited to 'include/iconv.h')
-rw-r--r-- | include/iconv.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/iconv.h b/include/iconv.h index c6b0799..da1036a 100644 --- a/include/iconv.h +++ b/include/iconv.h @@ -69,17 +69,12 @@ size_t __iconv(iconv_t, const char **, size_t *, char **, /* * GNU interfaces for iconv */ -/* We have iconvctl() */ -#define _ICONV_VERSION 0x0108 -extern int _iconv_version; - typedef struct { void *spaceholder[64]; } iconv_allocation_t; int iconv_open_into(const char *, const char *, iconv_allocation_t *); -void iconv_set_relocation_prefix(const char *orig_prefix, - const char *curr_prefix); +void iconv_set_relocation_prefix(const char *, const char *); /* * iconvctl() request macros |