<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in Makefile</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>9c6b7fbb - fortify: use if_changed_dep to record header dependency in *.cmd files</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/test_fortify/Makefile#9c6b7fbb</link>
        <description>fortify: use if_changed_dep to record header dependency in *.cmd filesAfter building with CONFIG_FORTIFY_SOURCE=y, many .*.d files are leftin lib/test_fortify/ because the compiler outputs header dependenciesinto *.d without fixdep being invoked.When compiling C files, if_changed_dep should be used so that theauto-generated header dependencies are recorded in .*.cmd files.Currently, if_changed is incorrectly used, and only two headers arehard-coded in lib/Makefile.In the previous patch version, the kbuild test robot detected new errorson GCC 7.GCC 7 or older does not produce test.d with the following test code: $ echo &apos;void b(void) __attribute__((__error__(&quot;&quot;))); void a(void) { b(); }&apos; |   gcc -Wp,-MMD,test.d -c -o /dev/null -x c -Perhaps, this was a bug that existed in older GCC versions.Skip the tests for GCC&lt;=7 for now, as this will be eventually solvedwhen we bump the minimal supported GCC version.Link: https://lore.kernel.org/oe-kbuild-all/CAK7LNARmJcyyzL-jVJfBPi3W684LTDmuhMf1koF0TXoCpKTmcw@mail.gmail.com/T/#m13771bf78ae21adff22efc4d310c973fb4bcaf67Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Link: https://lore.kernel.org/r/20240727150302.1823750-4-masahiroy@kernel.orgSigned-off-by: Kees Cook &lt;kees@kernel.org&gt;

            List of files:
            /linux-6.15/lib/test_fortify/Makefile</description>
        <pubDate>Sat, 27 Jul 2024 15:02:38 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>5a8d0c46 - fortify: move test_fortify.sh to lib/test_fortify/</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/test_fortify/Makefile#5a8d0c46</link>
        <description>fortify: move test_fortify.sh to lib/test_fortify/This script is only used in lib/test_fortify/.There is no reason to keep it in scripts/.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Link: https://lore.kernel.org/r/20240727150302.1823750-3-masahiroy@kernel.orgSigned-off-by: Kees Cook &lt;kees@kernel.org&gt;

            List of files:
            /linux-6.15/lib/test_fortify/Makefile</description>
        <pubDate>Sat, 27 Jul 2024 15:02:37 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>4e9903b0 - fortify: refactor test_fortify Makefile to fix some build problems</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/test_fortify/Makefile#4e9903b0</link>
        <description>fortify: refactor test_fortify Makefile to fix some build problemsThere are some issues in the test_fortify Makefile code.Problem 1: cc-disable-warning invokes compiler dozens of timesTo see how many times the cc-disable-warning is evaluated, changethis code:  $(call cc-disable-warning,fortify-source)to:  $(call cc-disable-warning,$(shell touch /tmp/fortify-$$$$)fortify-source)Then, build the kernel with CONFIG_FORTIFY_SOURCE=y. You will see alarge number of &apos;/tmp/fortify-&lt;PID&gt;&apos; files created:  $ ls -1 /tmp/fortify-* | wc       80      80    1600This means the compiler was invoked 80 times just for checking the-Wno-fortify-source flag support.$(call cc-disable-warning,fortify-source) should be added to a simplevariable instead of a recursive variable.Problem 2: do not recompile string.o when the test code is updatedThe test cases are independent of the kernel. However, when the testcode is updated, $(obj)/string.o is rebuilt and vmlinux is relinkeddue to this dependency:  $(obj)/string.o: $(obj)/$(TEST_FORTIFY_LOG)always-y is suitable for building the log files.Problem 3: redundant code  clean-files += $(addsuffix .o, $(TEST_FORTIFY_LOGS))... is unneeded because the top Makefile globally cleans *.o files.This commit fixes these issues and makes the code readable.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Link: https://lore.kernel.org/r/20240727150302.1823750-2-masahiroy@kernel.orgSigned-off-by: Kees Cook &lt;kees@kernel.org&gt;

            List of files:
            /linux-6.15/lib/test_fortify/Makefile</description>
        <pubDate>Sat, 27 Jul 2024 15:02:36 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
</channel>
</rss>
