[PATCH] maint: generate ioctl entries without target architecture code execution

Dmitry V. Levin ldv at altlinux.org
Tue Sep 26 20:29:57 UTC 2017


On Tue, Sep 12, 2017 at 08:13:12PM +0300, Gleb Fotengauer-Malinovskiy wrote:
> ioctls_sym.sh used to generate and invoke target architecture
> executables that limited its applicability.
> After this change, the generated code is just compiled to the target
> architecture object files and all required information is obtained from
> the dwarf sections.
> This approach allows to generate ioctl entries for any target
> architecture supported by compiler.
> 
> * maint/ioctls_sym.awk: New file.
> * maint/ioctls_sym.sh (LC_ALL): Define to C and export.
> (uname_m): Make configurable.
> (CFLAGS): Add -gdwarf-2.
> Do not use print_ioctlent.c.
> Change asm-generic/ioctl.h and asm/ioctl.h hook.
> Dump and process dwarf sections of generated object files.
> * maint/print_ioctlent.c: Remove.

Thanks, applied with minor corrections some time ago but forgot to send
this message in time, sorry about that.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170926/901904cb/attachment.bin>


More information about the Strace-devel mailing list