From 3afdc7303c02787effee5dee55425ce85e11c130 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 16 Aug 2019 14:14:57 +0000 Subject: [PATCH] Add @generated tag to libc syscall asm wrappers Although libc syscall wrappers do not get checked in this can aid in finding the source of generated files when spelunking in the objdir. Multiple tools use @generated to identify generated files (for example, in a review Phabricator will by default hide diffs in generated files). For consistency use the @generated tag in makesyscalls.sh as we've done for other generated files, even though these wrappers aren't checked in to the tree. --- lib/libc/sys/Makefile.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 0cbd67a81b7..15c3b004d0f 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -134,12 +134,14 @@ NOTE_GNU_STACK='' .endif ${SASM}: - printf '#include "compat.h"\n' > ${.TARGET} + printf '/* %sgenerated by libc/sys/Makefile.inc */\n' @ > ${.TARGET} + printf '#include "compat.h"\n' >> ${.TARGET} printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' >> ${.TARGET} printf ${NOTE_GNU_STACK} >>${.TARGET} ${SPSEUDO}: - printf '#include "compat.h"\n' > ${.TARGET} + printf '/* %sgenerated by libc/sys/Makefile.inc */\n' @ > ${.TARGET} + printf '#include "compat.h"\n' >> ${.TARGET} printf '#include "SYS.h"\nPSEUDO(${.PREFIX:S/_//})\n' \ >> ${.TARGET} printf ${NOTE_GNU_STACK} >>${.TARGET}