This is the mail archive of the libc-hacker@cygnus.com 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]

Re: playing games with symbol versions


> 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>


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