This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

Re: RFC: Generate lib-names.h and stubs.h from ABI-LIST


On Wed, May 23, 2012 at 11:44 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hi,
>
> I created hjl/abi branch to support ABI-LIST in shlib-versions.
> I am extending syscall-list support to cover all generated files
> which support a list of ABIs. ?I tested gnu/stubs.h on Linux/x86-64.
> I will fix Linux/i386 and Linux/x32. ?The next one will be
> lib-names.h. ?Any comments?
>

I extended syscall-list support to cover all generated files on hjl/abi branch.
If a target supports more than one ABI, it can define the appropriate
abi-list-*-*, like sysdeps/unix/sysv/linux/x86_64/Makefile has

# We don't need any header files.
abi-list-includes :=

abi-list-32-options := -D__i386__ -U__x86_64__
abi-list-32-condition := !defined __x86_64__
abi-list-32-ld-soname := ld-linux.so.2
abi-list-64-options := -U__i386__ -D__x86_64__ -U__ILP32__ -D__LP64__
abi-list-64-condition := defined __x86_64__ && defined __LP64__
abi-list-64-ld-soname := ld-linux-x86-64.so.2
abi-list-x32-options := -U__i386__ -D__x86_64__ -D__ILP32__ -U__LP64__
abi-list-x32-condition := defined __x86_64__ && defined __ILP32__
abi-list-x32-ld-soname := ld-linux-x32.so.2

abi-list-variants is a list of ABIs with the first one as the default.

Any comments?

Thanks.



-- 
H.J.


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