This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add x32 abilist files
On Tue, 15 May 2012, H.J. Lu wrote:
> hjl@gnu-6 glibc]$ cat ./sysdeps/x86_64/x32/shlib-versions
> # Configuration DEFAULT Earliest symbol set
> # ------------- --------------- ------------------------------
> x86_64-.*-linux.* DEFAULT GLIBC_2.16
> x86_64-.*-linux.* ld=ld-linux-x32.so.2 GLIBC_2.16
> [hjl@gnu-6 glibc]$ cat ./sysdeps/x86_64/64/shlib-versions
> # Configuration DEFAULT Earliest symbol set
> # ------------- --------------- ------------------------------
> x86_64-.*-linux.* DEFAULT GLIBC_2.2.5
> x86_64-.*-linux.* ld=ld-linux-x86-64.so.2 GLIBC_2.2.5
> [hjl@gnu-6 glibc]$
>
> You can't tell which one is x32 just by looking at target name.
> Since the only difference is in ld.so among 3 ABIs, my script
> checks name of ld.so. Maybe the same approach can be used
> for other archs. There is still an issue that you need a way
> to #ifdef 3 ABIs. I am not sure if it can be generalized.
If we move entirely to shlib-versions in sysdeps directories, then there
will no longer be a need for the target name column as it stands at
present. Maybe instead it could be replaced by the name of a variant, as
in syscall-list-variants, or something like that. (That's just an idea,
not a full design.)
--
Joseph S. Myers
joseph@codesourcery.com