[PATCH] Linux: Add tables with system call numbers
Joseph Myers
joseph@codesourcery.com
Mon Jun 3 15:27:00 GMT 2019
On Fri, 31 May 2019, Florian Weimer wrote:
> > What would seem more appropriate to me would be e.g. for
> > build-many-glibcs.py to have a new "update-syscalls" option for what to
> > do, which would require a previously built set of compilers (if they're
> > part of what's needed for this process) and would build the Linux kernel
> > headers only to extract syscall numbers from them.
>
> I tried to implement an âupdate-syscall-listsâ with the patch below. It
> needs the compilers stage completed, and it configures glibc, to be able
> to run the âmake update-syscall-listsâ, but it does not require a full
> build/check cycle.
I think the key thing is that it should work with the compilers stage
completed *with an older kernel headers version*. That is, it should
build the kernel headers itself (install them somewhere other than in the
compiler installation, configure glibc using --with-headers= pointing to
that location). Building kernel headers and configuring glibc are both
fast; building compilers isn't.
A full compilers rebuild is (a) slow, (b) something you might want to do
*after* such a change as part of testing the use of new kernel headers,
not before, (c) something you might not want to do at all with new kernel
headers for now, as long as the fds_bits/val namespace issue remains
unresolved and so compilers using Linux 5.0 headers are useful for testing
glibc but compilers using any newer version are not useful for testing
glibc.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list