playing games with symbol versions
Geoff Keating
geoffk@ozemail.com.au
Mon Apr 12 19:01:00 GMT 1999
> Date: Mon, 12 Apr 1999 14:04:29 -0400
> From: Zack Weinberg <zack@rabi.columbia.edu>
>
>
> Is there any way, when linking a program on a libc-2.1 system, to
> force it to use only the GLIBC_2.0 symbols? I'm looking at a bug in
> the libio backward compat code, and it would make my life easier if I
> could compile testcases.
Build a trivial libc.so that doesn't have any code, but does export all
the right symbols with whatever versions you want.
eg.
#define v(x) void x(void) {}
v(_IO_file_xsputn)
v(_IO_fflush)
...
--
Geoffrey Keating <geoffk@ozemail.com.au>
More information about the Libc-hacker
mailing list