From 504e1b05779bdfab1d96615a42d7911cc0ccf874 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 2 Aug 2018 09:51:33 +0100 Subject: [PATCH 01/71] Correct name of man page for run-on-binaries-in script. Resolves: #1611155 --- .gitignore | 1 + annobin.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6bcd7c1..450b6d7 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,4 @@ /annobin-8.17.tar.xz /annobin-8.18.tar.xz /annobin-8.19.tar.xz +/annobin-8.20.tar.xz diff --git a/annobin.spec b/annobin.spec index bcab40e..8fc8cc6 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.19 +Version: 8.20 Release: 1%{?dist} License: GPLv3+ @@ -190,7 +190,7 @@ make check %doc %{_mandir}/man1/built-by.1.gz %doc %{_mandir}/man1/check-abi.1.gz %doc %{_mandir}/man1/hardened.1.gz -%doc %{_mandir}/man1/run-on-binaries.1.gz +%doc %{_mandir}/man1/run-on-binaries-in.1.gz %if %{with annocheck} %{_bindir}/annocheck @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Aug 02 2018 Nick Clifton - 8.20-1 +- Correct name of man page for run-on-binaries-in script. (#1611155) + * Wed Jul 25 2018 Nick Clifton - 8.19-1 - Allow $ORIGN to be at the start of entries in DT_RPATH and DT_RUNPATH. diff --git a/sources b/sources index 705ef9e..2ca1174 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.19.tar.xz) = 2127314bb521046416b326ec8f67fc5d1e46ba9473ff880b6dacb7406dba2928c4fe260b2605a5677037ae47865d83850694dbb5223afb759688760fbcb073ca +SHA512 (annobin-8.20.tar.xz) = 7b416acf169b365f2cd4f3fa8d22a083ffd060da5c312df4000dedea019a67afe8148648b3b458b3c68c27dcb1bd780c5384fd325de9e7e507e6cf23ea7c6d17 From 2f44ce6b02e9e2d4ec6ac6a8a90d205671f26581 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Thu, 2 Aug 2018 14:01:05 +0100 Subject: [PATCH 02/71] rebuild for new gcc --- annobin.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 8fc8cc6..1e6d94e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -12,7 +12,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.20 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Aug 2 2018 Peter Robinson 8.20-2 +- rebuild for new gcc + * Thu Aug 02 2018 Nick Clifton - 8.20-1 - Correct name of man page for run-on-binaries-in script. (#1611155) From a8c8418bedd01011ffd730ed7647b74eb2f0a18a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 7 Aug 2018 15:21:37 +0100 Subject: [PATCH 03/71] Fix bug in annobin plugin. Add --section-size=NAME option to annocheck. --- .gitignore | 1 + annobin.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 450b6d7..49ab20c 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ /annobin-8.18.tar.xz /annobin-8.19.tar.xz /annobin-8.20.tar.xz +/annobin-8.21.tar.xz diff --git a/annobin.spec b/annobin.spec index 1e6d94e..fa8138b 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,8 +11,8 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.20 -Release: 2%{?dist} +Version: 8.21 +Release: 1%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Aug 07 2018 Nick Clifton - 8.21-1 +- Fix bug in annobin plugin. Add --section-size=NAME option to annocheck. + * Thu Aug 2 2018 Peter Robinson 8.20-2 - rebuild for new gcc diff --git a/sources b/sources index 2ca1174..3eb2a9e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.20.tar.xz) = 7b416acf169b365f2cd4f3fa8d22a083ffd060da5c312df4000dedea019a67afe8148648b3b458b3c68c27dcb1bd780c5384fd325de9e7e507e6cf23ea7c6d17 +SHA512 (annobin-8.21.tar.xz) = f9818d9e29295ffd3ff757b38df58d7ac60207f525dc434d4302d9b54d65483c214133639dc4a979f1dedefe414ceb8de43b70b64a7ac1b2445f2b722fb2f256 From 57a69d60c21491fd479d50b0e084ed5a5cb547c9 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 8 Aug 2018 09:30:17 +0100 Subject: [PATCH 04/71] Reduce version check to gcc major version number only. Skip compiler option checks if binary not built with gcc. Relates: #1603089 --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 49ab20c..1fd8333 100644 --- a/.gitignore +++ b/.gitignore @@ -56,3 +56,4 @@ /annobin-8.19.tar.xz /annobin-8.20.tar.xz /annobin-8.21.tar.xz +/annobin-8.22.tar.xz diff --git a/annobin.spec b/annobin.spec index fa8138b..0427d5e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.21 +Version: 8.22 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Aug 08 2018 Nick Clifton - 8.22-1 +- Reduce version check to gcc major version number only. Skip compiler option checks if binary not built with gcc. (#1603089) + * Tue Aug 07 2018 Nick Clifton - 8.21-1 - Fix bug in annobin plugin. Add --section-size=NAME option to annocheck. diff --git a/sources b/sources index 3eb2a9e..b8d7db5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.21.tar.xz) = f9818d9e29295ffd3ff757b38df58d7ac60207f525dc434d4302d9b54d65483c214133639dc4a979f1dedefe414ceb8de43b70b64a7ac1b2445f2b722fb2f256 +SHA512 (annobin-8.22.tar.xz) = 290e75b7e4e18f16f1c19aa8d14efa671527c212d6fda1ce26b02c11fb6b146771e15bbe4b945e059685db33732de7a3c68e2e7cbe1cc60b4f575691215d206a From 34de7bcad35080f634efbe99da169358750691e7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 8 Aug 2018 13:43:37 +0100 Subject: [PATCH 05/71] Skip checks in __stack_chk_local_fail. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1fd8333..aee03bc 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,4 @@ /annobin-8.20.tar.xz /annobin-8.21.tar.xz /annobin-8.22.tar.xz +/annobin-8.23.tar.xz diff --git a/annobin.spec b/annobin.spec index 0427d5e..8cfe631 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.22 +Version: 8.23 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Aug 08 2018 Nick Clifton - 8.23-1 +- Skip checks in __stack_chk_local_fail. + * Wed Aug 08 2018 Nick Clifton - 8.22-1 - Reduce version check to gcc major version number only. Skip compiler option checks if binary not built with gcc. (#1603089) diff --git a/sources b/sources index b8d7db5..09cd3c2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.22.tar.xz) = 290e75b7e4e18f16f1c19aa8d14efa671527c212d6fda1ce26b02c11fb6b146771e15bbe4b945e059685db33732de7a3c68e2e7cbe1cc60b4f575691215d206a +SHA512 (annobin-8.23.tar.xz) = 762a97f3f61d8c1656d011fb6a870b75f26e4d0c191e11329ba857f8af246c8cb775f5d1901abaed164ed0f7d9356b3ce0ff1aa43ba557b6e64d7b1691cc13a9 From c396cc5131aa9de3703f77abcae6e93a206cc454 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 15 Aug 2018 09:51:54 +0100 Subject: [PATCH 06/71] Skip checks in stack_chk_local_fail.c Treat gaps as FAIL results rather than MAYBE. --- .gitignore | 1 + annobin.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index aee03bc..f8d4e6f 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,4 @@ /annobin-8.21.tar.xz /annobin-8.22.tar.xz /annobin-8.23.tar.xz +/annobin-8.24.tar.xz diff --git a/annobin.spec b/annobin.spec index 8cfe631..afe4abd 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.23 +Version: 8.24 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,10 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Aug 15 2018 Nick Clifton - 8.24-1 +- Skip checks in stack_chk_local_fail.c +- Treat gaps as FAIL results rather than MAYBE. + * Wed Aug 08 2018 Nick Clifton - 8.23-1 - Skip checks in __stack_chk_local_fail. diff --git a/sources b/sources index 09cd3c2..d4d355c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.23.tar.xz) = 762a97f3f61d8c1656d011fb6a870b75f26e4d0c191e11329ba857f8af246c8cb775f5d1901abaed164ed0f7d9356b3ce0ff1aa43ba557b6e64d7b1691cc13a9 +SHA512 (annobin-8.24.tar.xz) = 9c9c7b0c35c838feb3d533874a3946547bb2c14f4ed5deb7b53313cc2e6de411a2b288f92ffdead4ce3fcb696c29f05c111ad75e6a2efad7f95ec137379a18f7 From 4482b57ec20f7c2ba1a347f4ed3f8b417829e80c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 20 Aug 2018 14:26:52 +0100 Subject: [PATCH 07/71] Skip gaps at the end of the .text section in ppc64 binaries. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f8d4e6f..8f0713a 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ /annobin-8.22.tar.xz /annobin-8.23.tar.xz /annobin-8.24.tar.xz +/annobin-8.25.tar.xz diff --git a/annobin.spec b/annobin.spec index afe4abd..39a54e1 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.24 +Version: 8.25 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Aug 20 2018 Nick Clifton - 8.25-1 +- Skip gaps at the end of the .text section in ppc64 binaries. + * Wed Aug 15 2018 Nick Clifton - 8.24-1 - Skip checks in stack_chk_local_fail.c - Treat gaps as FAIL results rather than MAYBE. diff --git a/sources b/sources index d4d355c..ae3c126 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.24.tar.xz) = 9c9c7b0c35c838feb3d533874a3946547bb2c14f4ed5deb7b53313cc2e6de411a2b288f92ffdead4ce3fcb696c29f05c111ad75e6a2efad7f95ec137379a18f7 +SHA512 (annobin-8.25.tar.xz) = ef8a0c5be561ccacbd4f274f3b0f50a307f4dc80ff279b1af5fe876fbcc3d665f48ac91d4c08e796751448bf06382bfa2531db658c2c508c387d0c2f0e9a67ef From 1fa3a94195ca270bcd9009601518ffaa7dcd4e75 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 21 Aug 2018 08:58:31 +0100 Subject: [PATCH 08/71] Fix thinko in ppc64 gap detection code. Resolves: #1619267 --- .gitignore | 1 + annobin.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8f0713a..1267d4b 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,4 @@ /annobin-8.23.tar.xz /annobin-8.24.tar.xz /annobin-8.25.tar.xz +/annobin-8.26.tar.xz diff --git a/annobin.spec b/annobin.spec index 39a54e1..8b7f9b7 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.25 +Version: 8.26 Release: 1%{?dist} License: GPLv3+ @@ -200,8 +200,11 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Aug 21 2018 Nick Clifton - 8.26-1 +- Fix thinko in ppc64 gap detection code. (#1619267) + * Mon Aug 20 2018 Nick Clifton - 8.25-1 -- Skip gaps at the end of the .text section in ppc64 binaries. +- Skip gaps at the end of the .text section in ppc64 binaries. (#1619267) * Wed Aug 15 2018 Nick Clifton - 8.24-1 - Skip checks in stack_chk_local_fail.c diff --git a/sources b/sources index ae3c126..ab694b9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.25.tar.xz) = ef8a0c5be561ccacbd4f274f3b0f50a307f4dc80ff279b1af5fe876fbcc3d665f48ac91d4c08e796751448bf06382bfa2531db658c2c508c387d0c2f0e9a67ef +SHA512 (annobin-8.26.tar.xz) = 1d3233944aeacd084446618ab12e45eb5ef8fa6a5d9493f23c99ea197f126b461156ca84e556ca942df7347e005077adfeeca49e0a0dd109f9bd69ce43590f7a From 665e3d6465a2bce8fec5dbbc470134e721805fcd Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 22 Aug 2018 11:50:15 +0100 Subject: [PATCH 09/71] Skip gaps at the end of functions. (#1619267) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1267d4b..7b69ea7 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,4 @@ /annobin-8.24.tar.xz /annobin-8.25.tar.xz /annobin-8.26.tar.xz +/annobin-8.27.tar.xz diff --git a/annobin.spec b/annobin.spec index 8b7f9b7..a2a76cd 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.26 +Version: 8.27 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Aug 22 2018 Nick Clifton - 8.27-1 +- Skip gaps at the end of functions. (#1619267) + * Tue Aug 21 2018 Nick Clifton - 8.26-1 - Fix thinko in ppc64 gap detection code. (#1619267) diff --git a/sources b/sources index ab694b9..97029f5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.26.tar.xz) = 1d3233944aeacd084446618ab12e45eb5ef8fa6a5d9493f23c99ea197f126b461156ca84e556ca942df7347e005077adfeeca49e0a0dd109f9bd69ce43590f7a +SHA512 (annobin-8.27.tar.xz) = 888c9983d5d331eaf323f59bbd4413cd345b32b8fdba5b795f787b277c20f3798d7363272f798a124cbccc1d7971b85007b33f22ebdc85630625766b49b14e4d From f8f44e93466f2d6b5929a03adfc817e56a70a9ac Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 23 Aug 2018 11:33:37 +0100 Subject: [PATCH 10/71] Skip gaps covered by _x86.get_pc_thunk and _savegpr symbols. Merge ranges where one is wholly covered by another. --- annobin.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/annobin.spec b/annobin.spec index a2a76cd..2ff6552 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.27 +Version: 8.28 Release: 1%{?dist} License: GPLv3+ @@ -94,8 +94,7 @@ hardening options. # the chroots created by our build system # # So we instead query the version from gcc's output. -# -# gcc.spec has: +## gcc.spec has: # Version: %%{gcc_version} # Release: %%{gcc_release}%%{?dist} # ...snip... @@ -200,6 +199,10 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Aug 23 2018 Nick Clifton - 8.28-1 +- Skip gaps covered by _x86.get_pc_thunk and _savegpr symbols. (#1619267) +- Merge ranges where one is wholly covered by another. + * Wed Aug 22 2018 Nick Clifton - 8.27-1 - Skip gaps at the end of functions. (#1619267) From 59960d354a89374356cb3fd461473796d395954b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 23 Aug 2018 14:07:31 +0100 Subject: [PATCH 11/71] Add more names to the gap skip list. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7b69ea7..ca35f4a 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,4 @@ /annobin-8.25.tar.xz /annobin-8.26.tar.xz /annobin-8.27.tar.xz +/annobin-8.29.tar.xz diff --git a/annobin.spec b/annobin.spec index 2ff6552..c092030 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.28 +Version: 8.29 Release: 1%{?dist} License: GPLv3+ @@ -199,6 +199,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Aug 23 2018 Nick Clifton - 8.29-1 +- Add more names to the gap skip list. (#1619267) + * Thu Aug 23 2018 Nick Clifton - 8.28-1 - Skip gaps covered by _x86.get_pc_thunk and _savegpr symbols. (#1619267) - Merge ranges where one is wholly covered by another. diff --git a/sources b/sources index 97029f5..04d3363 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.27.tar.xz) = 888c9983d5d331eaf323f59bbd4413cd345b32b8fdba5b795f787b277c20f3798d7363272f798a124cbccc1d7971b85007b33f22ebdc85630625766b49b14e4d +SHA512 (annobin-8.29.tar.xz) = 402aded8addf878f2b3244805f8c0938302f525c0615e992cc7b961c808c64508685dbbdcfaeb2a4ad8a9b40190e637e0475d2e73b427ed8b2a6e29825f209c5 From ccb481d55dc28a8cd98620b76e515c8626318162 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 29 Aug 2018 11:09:02 +0100 Subject: [PATCH 12/71] Generate notes for comdat sections. --- .gitignore | 1 + annobin.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ca35f4a..7e384b6 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,4 @@ /annobin-8.26.tar.xz /annobin-8.27.tar.xz /annobin-8.29.tar.xz +/annobin-8.30.tar.xz diff --git a/annobin.spec b/annobin.spec index c092030..66fa07e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.29 +Version: 8.30 Release: 1%{?dist} License: GPLv3+ @@ -94,7 +94,8 @@ hardening options. # the chroots created by our build system # # So we instead query the version from gcc's output. -## gcc.spec has: +# +# gcc.spec has: # Version: %%{gcc_version} # Release: %%{gcc_release}%%{?dist} # ...snip... @@ -199,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Aug 29 2018 Nick Clifton - 8.30-1 +- Generate notes for comdat sections. (#1619267) + * Thu Aug 23 2018 Nick Clifton - 8.29-1 - Add more names to the gap skip list. (#1619267) diff --git a/sources b/sources index 04d3363..cc94b02 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.29.tar.xz) = 402aded8addf878f2b3244805f8c0938302f525c0615e992cc7b961c808c64508685dbbdcfaeb2a4ad8a9b40190e637e0475d2e73b427ed8b2a6e29825f209c5 +SHA512 (annobin-8.30.tar.xz) = 9dc9987662ddb8b16c828957547b16f4ffd50f0587daf68d1a3dc9e4425765693cf09f3b134ad9a7520207edd27724513f4e13e81437697a0ca70fe53bcc3d8b From a241ed8b2905d0014cbf6a3c27bf206d3e761666 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 30 Aug 2018 11:59:48 +0100 Subject: [PATCH 13/71] - Fix bug in hardened tool which would skip gcc compiled files if the notes were too small. - Fix bugs in section-size tool. - Fix bug in buillt-by tool. --- .gitignore | 1 + annobin.spec | 7 ++++++- sources | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7e384b6..da610d5 100644 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,4 @@ /annobin-8.27.tar.xz /annobin-8.29.tar.xz /annobin-8.30.tar.xz +/annobin-8.31.tar.xz diff --git a/annobin.spec b/annobin.spec index 66fa07e..05af5f3 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.30 +Version: 8.31 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,11 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Aug 30 2018 Nick Clifton - 8.31-1 +- Fix bug in hardened tool which would skip gcc compiled files if the notes were too small. +- Fix bugs in section-size tool. +- Fix bug in buillt-by tool. + * Wed Aug 29 2018 Nick Clifton - 8.30-1 - Generate notes for comdat sections. (#1619267) diff --git a/sources b/sources index cc94b02..858d1a6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.30.tar.xz) = 9dc9987662ddb8b16c828957547b16f4ffd50f0587daf68d1a3dc9e4425765693cf09f3b134ad9a7520207edd27724513f4e13e81437697a0ca70fe53bcc3d8b +SHA512 (annobin-8.31.tar.xz) = f6f4b632a77690467ec253c122ae83d0fc2cbc9116737fcc5d665cc78890aa872d940687c8143932f842dd1fd10c84fc389c4f9e0c7dc1db4fb6bdb8c7e04c86 From 3218a502f32a18b2ee39ddf7f7c3f19690373ec5 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 3 Sep 2018 16:45:27 +0100 Subject: [PATCH 14/71] Add test for ET_EXEC binaries. Document --report-unknown option. --- .gitignore | 1 + annobin.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index da610d5..4e6ce30 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,4 @@ /annobin-8.29.tar.xz /annobin-8.30.tar.xz /annobin-8.31.tar.xz +/annobin-8.32.tar.xz diff --git a/annobin.spec b/annobin.spec index 05af5f3..966c07c 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.31 +Version: 8.32 Release: 1%{?dist} License: GPLv3+ @@ -200,10 +200,14 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Sep 03 2018 Nick Clifton - 8.32-1 +- Add test for ET_EXEC binaries. +- Document --report-unknown option. + * Thu Aug 30 2018 Nick Clifton - 8.31-1 - Fix bug in hardened tool which would skip gcc compiled files if the notes were too small. - Fix bugs in section-size tool. -- Fix bug in buillt-by tool. +- Fix bug in built-by tool. * Wed Aug 29 2018 Nick Clifton - 8.30-1 - Generate notes for comdat sections. (#1619267) diff --git a/sources b/sources index 858d1a6..0cfbc6e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.31.tar.xz) = f6f4b632a77690467ec253c122ae83d0fc2cbc9116737fcc5d665cc78890aa872d940687c8143932f842dd1fd10c84fc389c4f9e0c7dc1db4fb6bdb8c7e04c86 +SHA512 (annobin-8.32.tar.xz) = 67590002b62316df9fddfe94b9cf7a956242d0dc75203a003c34263481e3ec31661ce2a9b0b2087536653bf0929f489a33974554cb32ba573f0ff23d6f3326de From 38c6f9ee429e3ebe83687442854e972c33307de6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 12 Sep 2018 14:27:41 +0100 Subject: [PATCH 15/71] Add timing tool to report on speed of the checks. Add check for conflicting use of the -fshort-enum option. Add check of the GNU Property notes. Skip check for -O2 if compiled with -Og. (#1624162) --- .gitignore | 1 + annobin.spec | 10 ++++++++-- sources | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4e6ce30..2ca7bc6 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,4 @@ /annobin-8.30.tar.xz /annobin-8.31.tar.xz /annobin-8.32.tar.xz +/annobin-8.33.tar.xz diff --git a/annobin.spec b/annobin.spec index 966c07c..26ef33c 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.32 +Version: 8.33 Release: 1%{?dist} License: GPLv3+ @@ -200,8 +200,14 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Sep 12 2018 Nick Clifton - 8.33-1 +- Add timing tool to report on speed of the checks. +- Add check for conflicting use of the -fshort-enum option. +- Add check of the GNU Property notes. +- Skip check for -O2 if compiled with -Og. (#1624162) + * Mon Sep 03 2018 Nick Clifton - 8.32-1 -- Add test for ET_EXEC binaries. +- Add test for ET_EXEC binaries. (#1625627) - Document --report-unknown option. * Thu Aug 30 2018 Nick Clifton - 8.31-1 diff --git a/sources b/sources index 0cfbc6e..d081c94 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.32.tar.xz) = 67590002b62316df9fddfe94b9cf7a956242d0dc75203a003c34263481e3ec31661ce2a9b0b2087536653bf0929f489a33974554cb32ba573f0ff23d6f3326de +SHA512 (annobin-8.33.tar.xz) = 0004a241f83ca2b0002cb2b0484f0956cf8c3562680a724d6b79bb750fa973f57f3a191cedf454e424c64c3fba4ebfd9a2770bb3e4083dd21cf07c6181ee6ab2 From 62a035e246fe552d4fa3bc08a0d43e65a2859128 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 17 Sep 2018 11:40:50 +0100 Subject: [PATCH 16/71] Ensure 4 byte alignment of note sub-sections. Resolves: #1629671 --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2ca7bc6..5c9eed4 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,4 @@ /annobin-8.31.tar.xz /annobin-8.32.tar.xz /annobin-8.33.tar.xz +/annobin-8.34.tar.xz diff --git a/annobin.spec b/annobin.spec index 26ef33c..4516410 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.33 +Version: 8.34 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Sep 17 2018 Nick Clifton - 8.34-1 +- Ensure 4 byte alignment of note sub-sections. (#1629671) + * Wed Sep 12 2018 Nick Clifton - 8.33-1 - Add timing tool to report on speed of the checks. - Add check for conflicting use of the -fshort-enum option. diff --git a/sources b/sources index d081c94..6ae7ecb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.33.tar.xz) = 0004a241f83ca2b0002cb2b0484f0956cf8c3562680a724d6b79bb750fa973f57f3a191cedf454e424c64c3fba4ebfd9a2770bb3e4083dd21cf07c6181ee6ab2 +SHA512 (annobin-8.34.tar.xz) = 89b84f8fff4ee78420c28103f69df7fcb5679b22ad3eede50a6ac15b395d5fd8bee7719a0e6baba0b4ceaf5438a13e8c6e02fba3326da025f9b999b62b3e5e1e From 00645328fd4ba3f607fe5781cf9b67ab6139a473 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 17 Sep 2018 14:47:45 +0100 Subject: [PATCH 17/71] Skip failures for PIC vs PIE. (#1629698) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5c9eed4..db7de83 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,4 @@ /annobin-8.32.tar.xz /annobin-8.33.tar.xz /annobin-8.34.tar.xz +/annobin-8.35.tar.xz diff --git a/annobin.spec b/annobin.spec index 4516410..e872916 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.34 +Version: 8.35 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Sep 17 2018 Nick Clifton - 8.35-1 +- Skip failures for PIC vs PIE. (#1629698) + * Mon Sep 17 2018 Nick Clifton - 8.34-1 - Ensure 4 byte alignment of note sub-sections. (#1629671) diff --git a/sources b/sources index 6ae7ecb..f3dd6d8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.34.tar.xz) = 89b84f8fff4ee78420c28103f69df7fcb5679b22ad3eede50a6ac15b395d5fd8bee7719a0e6baba0b4ceaf5438a13e8c6e02fba3326da025f9b999b62b3e5e1e +SHA512 (annobin-8.35.tar.xz) = 43cf7bd87d3ac9a8aa3882ee4e8e6cfe7e3f98027a8216de166cd19c3e71286e27b92b365198e5800ed77029876d500bc57631384fa4786fae29d2a8d5dbf002 From 98aa3b8d59d71be899f19ca7b2d7d5ce76966730 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 18 Sep 2018 11:41:21 +0100 Subject: [PATCH 18/71] Improve error message when an ET_EXEC binary is detected. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index db7de83..375caad 100644 --- a/.gitignore +++ b/.gitignore @@ -69,3 +69,4 @@ /annobin-8.33.tar.xz /annobin-8.34.tar.xz /annobin-8.35.tar.xz +/annobin-8.36.tar.xz diff --git a/annobin.spec b/annobin.spec index e872916..1d8bbd1 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.35 +Version: 8.36 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Sep 18 2018 Nick Clifton - 8.36-1 +- Improve error message when an ET_EXEC binary is detected. + * Mon Sep 17 2018 Nick Clifton - 8.35-1 - Skip failures for PIC vs PIE. (#1629698) diff --git a/sources b/sources index f3dd6d8..0564e86 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.35.tar.xz) = 43cf7bd87d3ac9a8aa3882ee4e8e6cfe7e3f98027a8216de166cd19c3e71286e27b92b365198e5800ed77029876d500bc57631384fa4786fae29d2a8d5dbf002 +SHA512 (annobin-8.36.tar.xz) = 40a76b6770f8671c36ffa63ed0e563b1d77f3be53109330f89ca031a25cf289642ba0bc2d77496b567556392d1ab942e8989de88b78f201a0da708e097838460 From 97b046a1ec4f869e2af5f398c88d2267110cf6b8 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 19 Sep 2018 15:43:54 +0100 Subject: [PATCH 19/71] Make the --skip-* options skip all messages about the specified test. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 375caad..3404f29 100644 --- a/.gitignore +++ b/.gitignore @@ -70,3 +70,4 @@ /annobin-8.34.tar.xz /annobin-8.35.tar.xz /annobin-8.36.tar.xz +/annobin-8.37.tar.xz diff --git a/annobin.spec b/annobin.spec index 1d8bbd1..9f20b5d 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.36 +Version: 8.37 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Sep 19 2018 Nick Clifton - 8.37-1 +- Make the --skip-* options skip all messages about the specified test. + * Tue Sep 18 2018 Nick Clifton - 8.36-1 - Improve error message when an ET_EXEC binary is detected. diff --git a/sources b/sources index 0564e86..5fc6ded 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.36.tar.xz) = 40a76b6770f8671c36ffa63ed0e563b1d77f3be53109330f89ca031a25cf289642ba0bc2d77496b567556392d1ab942e8989de88b78f201a0da708e097838460 +SHA512 (annobin-8.37.tar.xz) = e607f7e48b942bbf17c9ef280082250fecb4d41dd722e5835c05e8f03d1443090dae5da6f657416c23438ba57156670f3ea72ad134f4e22e1a02f9316614fd9a From 2cdf84f0b48c8c89c6d6a6e0d9e9fde84d46fce1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 21 Sep 2018 18:43:52 +0100 Subject: [PATCH 20/71] Generate notes and groups for .text.hot and .text.unlikely sections. When -ffunction-sections is active, put notes for startup sections into .text.startup.foo rather than .text.foo. Similarly put exit section notes into .text.exit.foo. (#1630574) Change annocheck's maybe result for GNU Property note being missing into a PASS if it is not needed and a FAIL if it is needed. --- .gitignore | 1 + annobin.spec | 8 +++++++- sources | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3404f29..46a11a5 100644 --- a/.gitignore +++ b/.gitignore @@ -71,3 +71,4 @@ /annobin-8.35.tar.xz /annobin-8.36.tar.xz /annobin-8.37.tar.xz +/annobin-8.38.tar.xz diff --git a/annobin.spec b/annobin.spec index 9f20b5d..9574c04 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.37 +Version: 8.38 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,12 @@ make check #--------------------------------------------------------------------------------- %changelog +* Fri Sep 21 2018 Nick Clifton - 8.38-1 +- Generate notes and groups for .text.hot and .text.unlikely sections. +- When -ffunction-sections is active, put notes for startup sections into .text.startup.foo rather than .text.foo. +- Similarly put exit section notes into .text.exit.foo. (#1630574) +- Change annocheck's maybe result for GNU Property note being missing into a PASS if it is not needed and a FAIL if it is needed. + * Wed Sep 19 2018 Nick Clifton - 8.37-1 - Make the --skip-* options skip all messages about the specified test. diff --git a/sources b/sources index 5fc6ded..4d9f74d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.37.tar.xz) = e607f7e48b942bbf17c9ef280082250fecb4d41dd722e5835c05e8f03d1443090dae5da6f657416c23438ba57156670f3ea72ad134f4e22e1a02f9316614fd9a +SHA512 (annobin-8.38.tar.xz) = 817d7ac705b638814d475bc3a7ee8c3489ba3f5f5669e0c6b9ecba1fff07dcf26a5c6684d42d9d8ad1059d669fb64584d6b1da34ec6b9ce222d7b4ec2936ae37 From 740bbaa8915b1f892b89d71f035cc37fcdaf8886 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 21 Sep 2018 21:34:13 +0100 Subject: [PATCH 21/71] Tweak tests. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 46a11a5..ec0d59e 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,4 @@ /annobin-8.36.tar.xz /annobin-8.37.tar.xz /annobin-8.38.tar.xz +/annobin-8.39.tar.xz diff --git a/annobin.spec b/annobin.spec index 9574c04..8ba5726 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.38 +Version: 8.39 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Fri Sep 21 2018 Nick Clifton - 8.39-1 +- Tweak tests. + * Fri Sep 21 2018 Nick Clifton - 8.38-1 - Generate notes and groups for .text.hot and .text.unlikely sections. - When -ffunction-sections is active, put notes for startup sections into .text.startup.foo rather than .text.foo. diff --git a/sources b/sources index 4d9f74d..3f93827 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.38.tar.xz) = 817d7ac705b638814d475bc3a7ee8c3489ba3f5f5669e0c6b9ecba1fff07dcf26a5c6684d42d9d8ad1059d669fb64584d6b1da34ec6b9ce222d7b4ec2936ae37 +SHA512 (annobin-8.39.tar.xz) = 0f8e2f1088f461e939b4ed46e13022975fa55fc63ff106d6abb6523db33faef3ae92388ca36fcd5de48d87d5cbc4ca2166205cae3c395f35edb9df0e01dc15b5 From 50a4793ba298ac43211ae5d08d0ee1538ddccbf1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 25 Sep 2018 10:17:37 +0100 Subject: [PATCH 22/71] Make annocheck ignore symbols suffixed with ".end". --- .gitignore | 1 + annobin.spec | 36 +++++++++++++++++++++++------------- sources | 2 +- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index ec0d59e..de9cecb 100644 --- a/.gitignore +++ b/.gitignore @@ -73,3 +73,4 @@ /annobin-8.37.tar.xz /annobin-8.38.tar.xz /annobin-8.39.tar.xz +/annobin-8.41.tar.xz diff --git a/annobin.spec b/annobin.spec index 8ba5726..6319d8e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -1,17 +1,21 @@ -# Do not build the annobin plugin with annotation enabled. -# This is because if we are bootstrapping a new build environment we can have -# a new version of gcc installed, but without a new of annobin installed. -# (ie we are building the new version of annobin to go with the new version -# of gcc). If the *old* annobin plugin is used whilst building this new -# version, the old plugin will complain that version of gcc for which it -# was built is different from the version of gcc that is now being used, and -# then it will abort. -%undefine _annotated_build +# Suppress this for BZ 1630550. +# The problem should now only arise when rebasing to a new majopr version +# of gcc, in which case the undefine below can be temporarily reinstated. +# +# # Do not build the annobin plugin with annotation enabled. +# # This is because if we are bootstrapping a new build environment we can have +# # a new version of gcc installed, but without a new of annobin installed. +# # (ie we are building the new version of annobin to go with the new version +# # of gcc). If the *old* annobin plugin is used whilst building this new +# # version, the old plugin will complain that version of gcc for which it +# # was built is different from the version of gcc that is now being used, and +# # then it will abort. +# %%undefine _annotated_build Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.39 +Version: 8.41 Release: 1%{?dist} License: GPLv3+ @@ -155,10 +159,10 @@ touch doc/annobin.info # double annotations in it. (If the build system enables annotations # for plugins by default). I have not tested this yet, but I think # that it should be OK. -cp plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp-annobin.so +cp plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp_annobin.so make -C plugin clean -make -C plugin CXXFLAGS="%{optflags} -fplugin=%{_tmppath}/tmp-annobin.so" -rm %{_tmppath}/tmp-annobin.so +make -C plugin CXXFLAGS="%{optflags} -fplugin=%{_tmppath}/tmp_annobin.so -fplugin-arg-tmp_annobin-rename" +rm %{_tmppath}/tmp_annobin.so #--------------------------------------------------------------------------------- @@ -200,6 +204,12 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Sep 25 2018 Nick Clifton - 8.41-1 +- Make annocheck ignore symbols suffixed with ".end". (#1639618) + +* Mon Sep 24 2018 Nick Clifton - 8.40-1 +- Reinstate building annobin with annobin enabled. (#1630550) + * Fri Sep 21 2018 Nick Clifton - 8.39-1 - Tweak tests. diff --git a/sources b/sources index 3f93827..cd6fcc5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.39.tar.xz) = 0f8e2f1088f461e939b4ed46e13022975fa55fc63ff106d6abb6523db33faef3ae92388ca36fcd5de48d87d5cbc4ca2166205cae3c395f35edb9df0e01dc15b5 +SHA512 (annobin-8.41.tar.xz) = 457337b457261f7c93a3c6beeaf810a05e74f76e05dbe0d3951d121a071188fec31527b1dfe3fdc60d4756159a30d75ad89e43f7c9edd3b077fd39606ffe10cf From fa19a50b6c315a8200903a92b8b48d8df7ebf820 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 1 Oct 2018 10:01:11 +0100 Subject: [PATCH 23/71] Skip compiler option checks for non-GNU producers. (#1633749) Fix function section support (again). (#1630574) Ignore ppc64le notes where start = end + 2. (#1632259) --- .gitignore | 1 + annobin.spec | 11 ++++++++++- sources | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index de9cecb..0818343 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,4 @@ /annobin-8.38.tar.xz /annobin-8.39.tar.xz /annobin-8.41.tar.xz +/annobin-8.44.tar.xz diff --git a/annobin.spec b/annobin.spec index 6319d8e..77c6596 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.41 +Version: 8.44 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,15 @@ make check #--------------------------------------------------------------------------------- %changelog +* Fri Sep 28 2018 Nick Clifton - 8.44-1 +- Skip compiler option checks for non-GNU producers. (#1633749) + +* Wed Sep 26 2018 Nick Clifton - 8.43-1 +- Fix function section support (again). (#1630574) + +* Tue Sep 25 2018 Nick Clifton - 8.42-1 +- Ignore ppc64le notes where start = end + 2. (#1632259) + * Tue Sep 25 2018 Nick Clifton - 8.41-1 - Make annocheck ignore symbols suffixed with ".end". (#1639618) diff --git a/sources b/sources index cd6fcc5..9c38309 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.41.tar.xz) = 457337b457261f7c93a3c6beeaf810a05e74f76e05dbe0d3951d121a071188fec31527b1dfe3fdc60d4756159a30d75ad89e43f7c9edd3b077fd39606ffe10cf +SHA512 (annobin-8.44.tar.xz) = d6e794cae1202dc312d4e2f29d95d7911bc768137cbd2e30efb86abe39a2eb35921ea88473635616b1e29377e3313794011f0aad279777f61dcae9e783eedde1 From 5b660fd1128e56df7f57c2a7432f6778cf4132c2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 3 Oct 2018 09:37:55 +0100 Subject: [PATCH 24/71] Fix function section support (again). (#1630574) --- annobin.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 77c6596..1c4ea33 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.44 +Version: 8.45 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Oct 01 2018 Nick Clifton - 8.45-1 +- Fix function section support (again). (#1630574) + * Fri Sep 28 2018 Nick Clifton - 8.44-1 - Skip compiler option checks for non-GNU producers. (#1633749) From f0f59cd27acf089e4d2a36cbad5b979399fda0cc Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 3 Oct 2018 09:42:30 +0100 Subject: [PATCH 25/71] Update sources. --- .gitignore | 1 + sources | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0818343..b1060ad 100644 --- a/.gitignore +++ b/.gitignore @@ -75,3 +75,4 @@ /annobin-8.39.tar.xz /annobin-8.41.tar.xz /annobin-8.44.tar.xz +/annobin-8.45.tar.xz diff --git a/sources b/sources index 9c38309..587fe0e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.44.tar.xz) = d6e794cae1202dc312d4e2f29d95d7911bc768137cbd2e30efb86abe39a2eb35921ea88473635616b1e29377e3313794011f0aad279777f61dcae9e783eedde1 +SHA512 (annobin-8.45.tar.xz) = 3dc5ab08032fc93fe2485c44f4c01cc35d4705e36c959aa3aed28615140028b26a3524ea83e543edcbc2fa066dd9af8141d8f47be2c25cb567b8b9b277ac1084 From 1750e064708fe42e41721cefa27f8a292e59d89d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 5 Oct 2018 12:22:45 +0100 Subject: [PATCH 26/71] - Delay generating attach_to_group directives until the end of the compilation. (#1636265) - Fix bug introduced in previous delta which would trigger a seg-fault when scanning for gaps. - Annobin: Fix section name selection for startup sections. - Annocheck: Improve gap skipping heuristics. (#1630574) --- .gitignore | 1 + annobin.spec | 12 +++++++++++- sources | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b1060ad..07c862d 100644 --- a/.gitignore +++ b/.gitignore @@ -76,3 +76,4 @@ /annobin-8.41.tar.xz /annobin-8.44.tar.xz /annobin-8.45.tar.xz +/annobin-8.48.tar.xz diff --git a/annobin.spec b/annobin.spec index 1c4ea33..a598cf9 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.45 +Version: 8.48 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,16 @@ make check #--------------------------------------------------------------------------------- %changelog +* Fri Oct 05 2018 Nick Clifton - 8.48-1 +- Delay generating attach_to_group directives until the end of the compilation. (#1636265) + +* Mon Oct 01 2018 Nick Clifton - 8.47-1 +- Fix bug introduced in previous delta which would trigger a seg-fault when scanning for gaps. + +* Mon Oct 01 2018 Nick Clifton - 8.46-1 +- Annobin: Fix section name selection for startup sections. +- Annocheck: Improve gap skipping heuristics. (#1630574) + * Mon Oct 01 2018 Nick Clifton - 8.45-1 - Fix function section support (again). (#1630574) diff --git a/sources b/sources index 587fe0e..aa35a71 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.45.tar.xz) = 3dc5ab08032fc93fe2485c44f4c01cc35d4705e36c959aa3aed28615140028b26a3524ea83e543edcbc2fa066dd9af8141d8f47be2c25cb567b8b9b277ac1084 +SHA512 (annobin-8.48.tar.xz) = ad161d4ee6700c71e8559b6ada91f068a56c280ddebb821f489f7bc59056e273a676683337cfa2b39d314e2f204df0b98fb87aeb8afdf7d34b097514b5df80cb From 66bc6309ffcaaf243c6027e0a351ff89c14631d6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 8 Oct 2018 10:42:53 +0100 Subject: [PATCH 27/71] Skip dynamic checks for binaries without a dynamic segment. (#1636606) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 07c862d..9ee7773 100644 --- a/.gitignore +++ b/.gitignore @@ -77,3 +77,4 @@ /annobin-8.44.tar.xz /annobin-8.45.tar.xz /annobin-8.48.tar.xz +/annobin-8.49.tar.xz diff --git a/annobin.spec b/annobin.spec index a598cf9..0dbb8f5 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.48 +Version: 8.49 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Oct 08 2018 Nick Clifton - 8.49-1 +- Skip dynamic checks for binaries without a dynamic segment. (#1636606) + * Fri Oct 05 2018 Nick Clifton - 8.48-1 - Delay generating attach_to_group directives until the end of the compilation. (#1636265) diff --git a/sources b/sources index aa35a71..810cfbb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.48.tar.xz) = ad161d4ee6700c71e8559b6ada91f068a56c280ddebb821f489f7bc59056e273a676683337cfa2b39d314e2f204df0b98fb87aeb8afdf7d34b097514b5df80cb +SHA512 (annobin-8.49.tar.xz) = 933f23303085222ca60f4e5d5279959a648632b9f84a118bc8faf98b1968ccf65a35ee685fd8170321c466474acec323107d1d4fc672acc4280609662f2f95da From 863cedb167e58511a8e430668ae89a946372a52f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 8 Oct 2018 17:13:56 +0100 Subject: [PATCH 28/71] Fix edge case computing section names for end symbols. (#1637039) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9ee7773..a7ce58e 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,4 @@ /annobin-8.45.tar.xz /annobin-8.48.tar.xz /annobin-8.49.tar.xz +/annobin-8.50.tar.xz diff --git a/annobin.spec b/annobin.spec index 0dbb8f5..7a38737 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.49 +Version: 8.50 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Oct 08 2018 Nick Clifton - 8.50-1 +- Fix edge case computing section names for end symbols. (#1637039) + * Mon Oct 08 2018 Nick Clifton - 8.49-1 - Skip dynamic checks for binaries without a dynamic segment. (#1636606) diff --git a/sources b/sources index 810cfbb..13cda55 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.49.tar.xz) = 933f23303085222ca60f4e5d5279959a648632b9f84a118bc8faf98b1968ccf65a35ee685fd8170321c466474acec323107d1d4fc672acc4280609662f2f95da +SHA512 (annobin-8.50.tar.xz) = 1afdc50b472956eae64a015b544ae3e733fd758125d3e446f8b715340d22a1ba1c78390756e9d3f3ec941bca3c1f1d42f51b08b3238546ddc1bfb6c1d5c801a4 From 28d895fe9def7a6e11e5e654ee58eb2198e1fd5c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 10 Oct 2018 16:50:29 +0100 Subject: [PATCH 29/71] Generate notes for unlikely sections. (#1630620) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a7ce58e..e410af3 100644 --- a/.gitignore +++ b/.gitignore @@ -79,3 +79,4 @@ /annobin-8.48.tar.xz /annobin-8.49.tar.xz /annobin-8.50.tar.xz +/annobin-8.51.tar.xz diff --git a/annobin.spec b/annobin.spec index 7a38737..2938264 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.50 +Version: 8.51 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Oct 10 2018 Nick Clifton - 8.51-1 +- Generate notes for unlikely sections. (#1630620) + * Mon Oct 08 2018 Nick Clifton - 8.50-1 - Fix edge case computing section names for end symbols. (#1637039) diff --git a/sources b/sources index 13cda55..f14bf83 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.50.tar.xz) = 1afdc50b472956eae64a015b544ae3e733fd758125d3e446f8b715340d22a1ba1c78390756e9d3f3ec941bca3c1f1d42f51b08b3238546ddc1bfb6c1d5c801a4 +SHA512 (annobin-8.51.tar.xz) = 182ba21d799ba002199a03b18df7f68ab7646bf6d3945fbb431f10abcf0a49e433e781f6d4368d763737a2ec5915074156909dd8349ba4f364e0ce6f76ab304a From a4ffb9c75e8f09048c6d19373e03328994a96924 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 10 Oct 2018 18:14:55 +0100 Subject: [PATCH 30/71] Use uppercase for all fail/mayb/pass results. (#1637706) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e410af3..0b4e4bc 100644 --- a/.gitignore +++ b/.gitignore @@ -80,3 +80,4 @@ /annobin-8.49.tar.xz /annobin-8.50.tar.xz /annobin-8.51.tar.xz +/annobin-8.52.tar.xz diff --git a/annobin.spec b/annobin.spec index 2938264..9b3a2d7 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.51 +Version: 8.52 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Oct 10 2018 Nick Clifton - 8.52-1 +- Use uppercase for all fail/mayb/pass results. (#1637706) + * Wed Oct 10 2018 Nick Clifton - 8.51-1 - Generate notes for unlikely sections. (#1630620) diff --git a/sources b/sources index f14bf83..6ef0d62 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.51.tar.xz) = 182ba21d799ba002199a03b18df7f68ab7646bf6d3945fbb431f10abcf0a49e433e781f6d4368d763737a2ec5915074156909dd8349ba4f364e0ce6f76ab304a +SHA512 (annobin-8.52.tar.xz) = c49d5279686377cbb75bac817aa7d0cdbc1cec9d3f27f0f8fc325e9e228d82447516490330b232f8ad27ee587436c6e2030cb19cf4964aecbbbb2a447300edee From 31fd1dfa5c2c3edbe4f8dda9731e2e13f19db777 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 11 Oct 2018 16:11:08 +0100 Subject: [PATCH 31/71] Also skip virtual thinks created by G++. (#1630619) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0b4e4bc..8dc365b 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,4 @@ /annobin-8.50.tar.xz /annobin-8.51.tar.xz /annobin-8.52.tar.xz +/annobin-8.53.tar.xz diff --git a/annobin.spec b/annobin.spec index 9b3a2d7..4939490 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.52 +Version: 8.53 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Oct 11 2018 Nick Clifton - 8.53-1 +- Also skip virtual thinks created by G++. (#1630619) + * Wed Oct 10 2018 Nick Clifton - 8.52-1 - Use uppercase for all fail/mayb/pass results. (#1637706) diff --git a/sources b/sources index 6ef0d62..6ab527e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.52.tar.xz) = c49d5279686377cbb75bac817aa7d0cdbc1cec9d3f27f0f8fc325e9e228d82447516490330b232f8ad27ee587436c6e2030cb19cf4964aecbbbb2a447300edee +SHA512 (annobin-8.53.tar.xz) = 12db7daeae70e2c27a4611d162ae2414173f8c33ad92648cae17325de0b69180fdcab7323be84494e9e3066478b1fb7702bd0dc00dfcc3253313ac0ddbbb0c03 From 107f5ddd1246bd9b4b2da5a863fee05cd685a936 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 16 Oct 2018 15:37:17 +0100 Subject: [PATCH 32/71] Skip PPC64 linker stubs created in the middle of text sections. Reset the (PPC64) section start symbol to 0 if its section is empty. (#1638251) --- annobin.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 4939490..2891a09 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.53 +Version: 8.55 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,10 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Oct 16 2018 Nick Clifton - 8.55-1 +- Skip PPC64 linker stubs created in the middle of text sections. +- Reset the (PPC64) section start symbol to 0 if its section is empty. (#1638251) + * Thu Oct 11 2018 Nick Clifton - 8.53-1 - Also skip virtual thinks created by G++. (#1630619) From 0b540ceed9a1ea34df1a79e0b1fbd9b177834c88 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 18 Oct 2018 10:40:33 +0100 Subject: [PATCH 33/71] Add new sources --- .gitignore | 1 + sources | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8dc365b..4f3785a 100644 --- a/.gitignore +++ b/.gitignore @@ -82,3 +82,4 @@ /annobin-8.51.tar.xz /annobin-8.52.tar.xz /annobin-8.53.tar.xz +/annobin-8.55.tar.xz diff --git a/sources b/sources index 6ab527e..6a038cf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.53.tar.xz) = 12db7daeae70e2c27a4611d162ae2414173f8c33ad92648cae17325de0b69180fdcab7323be84494e9e3066478b1fb7702bd0dc00dfcc3253313ac0ddbbb0c03 +SHA512 (annobin-8.55.tar.xz) = 4dcc3616d52802a7395be5bbffaf953c4037dd8e9c18d519aa104cf2c301e966e781529d34086bcc5459e9cfa121c98485c1bb4ef33880ac621e765b2eda3f74 From a7bd5f0b0f28a7c5cc61685e99ad897174b2ef1a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 18 Oct 2018 12:03:24 +0100 Subject: [PATCH 34/71] Skip PPC64 linker stubs created in the middle of text sections. (#1630640) --- .gitignore | 1 + annobin.spec | 6 ++++-- sources | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4f3785a..920e4c9 100644 --- a/.gitignore +++ b/.gitignore @@ -83,3 +83,4 @@ /annobin-8.52.tar.xz /annobin-8.53.tar.xz /annobin-8.55.tar.xz +/annobin-8.56.tar.xz diff --git a/annobin.spec b/annobin.spec index 2891a09..15afad9 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.55 +Version: 8.56 Release: 1%{?dist} License: GPLv3+ @@ -204,8 +204,10 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Oct 18 2018 Nick Clifton - 8.56-1 +- Skip PPC64 linker stubs created in the middle of text sections. (#1630640) + * Tue Oct 16 2018 Nick Clifton - 8.55-1 -- Skip PPC64 linker stubs created in the middle of text sections. - Reset the (PPC64) section start symbol to 0 if its section is empty. (#1638251) * Thu Oct 11 2018 Nick Clifton - 8.53-1 diff --git a/sources b/sources index 6a038cf..0c66442 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.55.tar.xz) = 4dcc3616d52802a7395be5bbffaf953c4037dd8e9c18d519aa104cf2c301e966e781529d34086bcc5459e9cfa121c98485c1bb4ef33880ac621e765b2eda3f74 +SHA512 (annobin-8.56.tar.xz) = 4505783562a6be2fa630812ae0a3cdcd4702b861f0dda09677022a94b5358afc00de52d59119d3d3edc87564a9c031e368c55b82c1c2822ac5606c722d062641 From b6fefda299ce21471ba968a4df2f55e387cbc4b2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 18 Oct 2018 13:19:51 +0100 Subject: [PATCH 35/71] Suppress free of invalid pointer. (#1638371) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 920e4c9..e094f1b 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,4 @@ /annobin-8.53.tar.xz /annobin-8.55.tar.xz /annobin-8.56.tar.xz +/annobin-8.57.tar.xz diff --git a/annobin.spec b/annobin.spec index 15afad9..5cb0ba7 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.56 +Version: 8.57 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Oct 18 2018 Nick Clifton - 8.57-1 +- Suppress free of invalid pointer. (#1638371) + * Thu Oct 18 2018 Nick Clifton - 8.56-1 - Skip PPC64 linker stubs created in the middle of text sections. (#1630640) diff --git a/sources b/sources index 0c66442..d4c3312 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.56.tar.xz) = 4505783562a6be2fa630812ae0a3cdcd4702b861f0dda09677022a94b5358afc00de52d59119d3d3edc87564a9c031e368c55b82c1c2822ac5606c722d062641 +SHA512 (annobin-8.57.tar.xz) = 62d8efcefedc6ba7a13c276d35b6ce1abc6ad11a2d45e097178edd2a5f73180d213704446660283c81e50782b5972ae73a30fc1a51c1e85c5ca338e78fcbd4ed From 9eeba2575db5f3a3ccffb6127574b7003977578a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 18 Oct 2018 15:29:57 +0100 Subject: [PATCH 36/71] Skip PPC64 linker stubs created in the middle of text sections (again). (#1630640) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e094f1b..b45a561 100644 --- a/.gitignore +++ b/.gitignore @@ -85,3 +85,4 @@ /annobin-8.55.tar.xz /annobin-8.56.tar.xz /annobin-8.57.tar.xz +/annobin-8.58.tar.xz diff --git a/annobin.spec b/annobin.spec index 5cb0ba7..90880dc 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.57 +Version: 8.58 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Oct 18 2018 Nick Clifton - 8.58-1 +- Skip PPC64 linker stubs created in the middle of text sections (again). (#1630640) + * Thu Oct 18 2018 Nick Clifton - 8.57-1 - Suppress free of invalid pointer. (#1638371) diff --git a/sources b/sources index d4c3312..67bf600 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.57.tar.xz) = 62d8efcefedc6ba7a13c276d35b6ce1abc6ad11a2d45e097178edd2a5f73180d213704446660283c81e50782b5972ae73a30fc1a51c1e85c5ca338e78fcbd4ed +SHA512 (annobin-8.58.tar.xz) = f1f6dc86b52ec8ca56d75ad0a8ec47bcb1f443fe81b3b36f5f8225077f359f335f65ad26ebf68d3bfe7fd918e5cb35da381742abfa150841515d3bda851c0bc4 From 819496e5f7bdb9a4c53e671402b8b9a72bfe2ec4 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 5 Nov 2018 17:08:28 +0000 Subject: [PATCH 37/71] Ensure GNU Property notes are 8-byte aligned in x86_64 binaries. Resolves: #1645817 --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b45a561..0368700 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,4 @@ /annobin-8.56.tar.xz /annobin-8.57.tar.xz /annobin-8.58.tar.xz +/annobin-8.59.tar.xz diff --git a/annobin.spec b/annobin.spec index 90880dc..2048c5a 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.58 +Version: 8.59 Release: 1%{?dist} License: GPLv3+ @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Nov 05 2018 Nick Clifton - 8.59-1 +- Ensure GNU Property notes are 8-byte aligned in x86_64 binaries. (#1645817) + * Thu Oct 18 2018 Nick Clifton - 8.58-1 - Skip PPC64 linker stubs created in the middle of text sections (again). (#1630640) diff --git a/sources b/sources index 67bf600..d257c37 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.58.tar.xz) = f1f6dc86b52ec8ca56d75ad0a8ec47bcb1f443fe81b3b36f5f8225077f359f335f65ad26ebf68d3bfe7fd918e5cb35da381742abfa150841515d3bda851c0bc4 +SHA512 (annobin-8.59.tar.xz) = ff712b19af580bcbc8ccbd8c2729d45d596ff95b58144d202c57d3620e3aad8a75a6cf599bd2c724afd403bbd58d6e20589d9ae91cd538aae85e8c5946ee80d9 From eef6b3c65bc233a03bf7305a0dfcf1c9d20faebc Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 13 Nov 2018 13:20:17 +0000 Subject: [PATCH 38/71] Skip -Wl,-z,now and -Wl,-z,relro checks for non-gcc produced binaries. --- .gitignore | 1 + annobin.spec | 27 ++++++++++++++------------- sources | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 0368700..c41a724 100644 --- a/.gitignore +++ b/.gitignore @@ -87,3 +87,4 @@ /annobin-8.57.tar.xz /annobin-8.58.tar.xz /annobin-8.59.tar.xz +/annobin-8.60.tar.xz diff --git a/annobin.spec b/annobin.spec index 2048c5a..d29d780 100644 --- a/annobin.spec +++ b/annobin.spec @@ -1,12 +1,12 @@ # Suppress this for BZ 1630550. -# The problem should now only arise when rebasing to a new majopr version +# The problem should now only arise when rebasing to a new major version # of gcc, in which case the undefine below can be temporarily reinstated. # # # Do not build the annobin plugin with annotation enabled. # # This is because if we are bootstrapping a new build environment we can have # # a new version of gcc installed, but without a new of annobin installed. -# # (ie we are building the new version of annobin to go with the new version +# # (i.e. we are building the new version of annobin to go with the new version # # of gcc). If the *old* annobin plugin is used whilst building this new # # version, the old plugin will complain that version of gcc for which it # # was built is different from the version of gcc that is now being used, and @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.59 +Version: 8.60 Release: 1%{?dist} License: GPLv3+ @@ -44,14 +44,12 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz BuildRequires: gcc gcc-plugin-devel gcc-c++ %description -A plugin for GCC that records extra information in the files that it compiles, -and a set of scripts that analyze the recorded information. These scripts can -determine things ABI clashes in compiled binaries, or the absence of required -hardening options. +Provides a plugin for GCC that records extra information in the files +that it compiles and a set of scripts that can analyze the recorded +information. -Note - the plugin is enabled in gcc builds via flags provided by the -redhat-rpm-macros package, and the analysis tools rely upon the readelf program -from the binutils package. +Note - the plugin is automatically enabled in gcc builds via flags +provided by the redhat-rpm-macros package. #--------------------------------------------------------------------------------- %if %{with tests} @@ -204,6 +202,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Nov 13 2018 Nick Clifton - 8.60-1 +- Skip -Wl,-z,now and -Wl,-z,relro checks for non-gcc produced binaries. (#1624421) + * Mon Nov 05 2018 Nick Clifton - 8.59-1 - Ensure GNU Property notes are 8-byte aligned in x86_64 binaries. (#1645817) @@ -337,7 +338,7 @@ make check - Correct name of man page for run-on-binaries-in script. (#1611155) * Wed Jul 25 2018 Nick Clifton - 8.19-1 -- Allow $ORIGN to be at the start of entries in DT_RPATH and DT_RUNPATH. +- Allow $ORIGIN to be at the start of entries in DT_RPATH and DT_RUNPATH. * Mon Jul 23 2018 Nick Clifton - 8.18-1 - Add support for big endian targets. @@ -359,7 +360,7 @@ make check - Fix symbol placement in functions with local assembler. * Tue Jul 17 2018 Nick Clifton - 8.12-1 -- Fix assertions in rnage checking code. Add detection of -U options. +- Fix assertions in range checking code. Add detection of -U options. * Tue Jul 17 2018 Nick Clifton - 8.11-1 - Handle function sections properly. Handle .text.startup and .text.unlikely sections. Improve gap detection and reporting. (#1601055) @@ -529,7 +530,7 @@ make check * Thu Sep 21 2017 Nick Clifton - 2.3-1 - Add annobin-tests subpackage containing some preliminary tests. -- Remove link-time test for unsuported targets. +- Remove link-time test for unsupported targets. * Wed Aug 02 2017 Fedora Release Engineering - 2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index d257c37..1893695 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.59.tar.xz) = ff712b19af580bcbc8ccbd8c2729d45d596ff95b58144d202c57d3620e3aad8a75a6cf599bd2c724afd403bbd58d6e20589d9ae91cd538aae85e8c5946ee80d9 +SHA512 (annobin-8.60.tar.xz) = f6e6ce75029a3ab1c0d8a510f8f6a89d8fc93c5d04c81dbaa5cf483da3781897028051ec050a37eb94ed06e4722f082bcf215740c035aca69b973201e52faea4 From d3a48b47e300a5ea765ae015fed9064c6ee04496 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 19 Nov 2018 12:06:27 +0000 Subject: [PATCH 39/71] Fix building with gcc version 4. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c41a724..8ca2ca8 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,4 @@ /annobin-8.58.tar.xz /annobin-8.59.tar.xz /annobin-8.60.tar.xz +/annobin-8.61.tar.xz diff --git a/annobin.spec b/annobin.spec index d29d780..5777fc8 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.60 +Version: 8.61 Release: 1%{?dist} License: GPLv3+ @@ -202,6 +202,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Nov 19 2018 Nick Clifton - 8.61-1 +- Fix building with gcc version 4. + * Tue Nov 13 2018 Nick Clifton - 8.60-1 - Skip -Wl,-z,now and -Wl,-z,relro checks for non-gcc produced binaries. (#1624421) diff --git a/sources b/sources index 1893695..0afb427 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.60.tar.xz) = f6e6ce75029a3ab1c0d8a510f8f6a89d8fc93c5d04c81dbaa5cf483da3781897028051ec050a37eb94ed06e4722f082bcf215740c035aca69b973201e52faea4 +SHA512 (annobin-8.61.tar.xz) = fe2b49b04b6a0783c245a2e73fa260a19aa3206fce592c03421bab78374b7eab965b901bbad6e1e122623242c9f7a756b3ce40e651d6359540b83cfcb39b7d98 From 1a9432d76e2dffc9c3ae7966cce50b2d5b76a6c3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 26 Nov 2018 14:17:58 +0000 Subject: [PATCH 40/71] Annocheck: Add test for ENDBR instruction at entry address of x86/x86_64 executables. (#1652925) --- .gitignore | 1 + annobin.spec | 24 ++++++++++++++---------- sources | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 8ca2ca8..1289a2c 100644 --- a/.gitignore +++ b/.gitignore @@ -89,3 +89,4 @@ /annobin-8.59.tar.xz /annobin-8.60.tar.xz /annobin-8.61.tar.xz +/annobin-8.62.tar.xz diff --git a/annobin.spec b/annobin.spec index 5777fc8..c27ee1e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.61 +Version: 8.62 Release: 1%{?dist} License: GPLv3+ @@ -114,16 +114,8 @@ hardening options. # we can scrape out the "4.6.1" from the version line. # # The following implements the above: -# -# Note - gawk will emit a warning message saying: -# -# gawk: cmd. line:1: warning: escape sequence `\)' treated as plain `)' -# -# I have not been able to work out how to remove this message, but still provide -# sufficient escaping for the command line to survive intact as it is passed -# down through the sub-shell. -%global gcc_vr %(gcc --version | gawk 'match (\$0, ".*Red Hat \([^\\)-]*\)", a) { print a[1]; }') +%global gcc_vr %(gcc --version | head -n 1 | sed -e 's|.*(Red\ Hat\ ||g' | sed -e 's|)$||g') # This is a gcc plugin, hence gcc is required. %if %{with_hard_gcc_version_requirement} @@ -136,6 +128,12 @@ Requires: gcc #--------------------------------------------------------------------------------- %prep + +if [ -z "%{gcc_vr}" ]; then + echo "*** Missing gcc_vr spec file macro, cannot continue." >&2 + exit 1 +fi + %autosetup -p1 # The plugin has to be configured with the same arcane configure @@ -202,6 +200,12 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Nov 26 2018 Nick Clifton - 8.62-1 +- Annocheck: Add test for ENDBR instruction at entry address of x86/x86_64 executables. (#1652925) + +* Tue Nov 20 2018 David Cantrell - 8.61-2 +- Adjust how the gcc_vr macro is set. + * Mon Nov 19 2018 Nick Clifton - 8.61-1 - Fix building with gcc version 4. diff --git a/sources b/sources index 0afb427..51f8709 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.61.tar.xz) = fe2b49b04b6a0783c245a2e73fa260a19aa3206fce592c03421bab78374b7eab965b901bbad6e1e122623242c9f7a756b3ce40e651d6359540b83cfcb39b7d98 +SHA512 (annobin-8.62.tar.xz) = bb925631b3730880191cbe50077ec57e4ee572e0a140e512281bb51356215303f679aacd94f212bb357a28b5adfd149b0c32af14ba7d05e1597c583e179a7d7f From dbdec1ad35f51f3f4936d09a0d4bf36a9c6f4980 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 26 Nov 2018 15:05:19 +0000 Subject: [PATCH 41/71] Annocheck: Disable ENDBR test for shared libraries. (#1652925) --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1289a2c..c468a72 100644 --- a/.gitignore +++ b/.gitignore @@ -90,3 +90,4 @@ /annobin-8.60.tar.xz /annobin-8.61.tar.xz /annobin-8.62.tar.xz +/annobin-8.63.tar.xz diff --git a/annobin.spec b/annobin.spec index c27ee1e..83842f1 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.62 +Version: 8.63 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Nov 26 2018 Nick Clifton - 8.63-1 +- Annocheck: Disable ENDBR test for shared libraries. (#1652925) + * Mon Nov 26 2018 Nick Clifton - 8.62-1 - Annocheck: Add test for ENDBR instruction at entry address of x86/x86_64 executables. (#1652925) diff --git a/sources b/sources index 51f8709..574e458 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.62.tar.xz) = bb925631b3730880191cbe50077ec57e4ee572e0a140e512281bb51356215303f679aacd94f212bb357a28b5adfd149b0c32af14ba7d05e1597c583e179a7d7f +SHA512 (annobin-8.63.tar.xz) = 5c89d67aa41ab38dbb988c8804330a0bbf9aa14f41d7cb23116be637e2b5b6c85ceeb375571c22923ae3f9786230ab5ef46ccec9db199c3071f903c98b092ed9 From 60a01e9fa215f80aacecfb4ea4ef12d4c67aa6ca Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 30 Nov 2018 16:02:59 +0000 Subject: [PATCH 42/71] Annocheck: Skip gaps in PPC64 executables covered by start_bcax_ symbols. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c468a72..a512628 100644 --- a/.gitignore +++ b/.gitignore @@ -91,3 +91,4 @@ /annobin-8.61.tar.xz /annobin-8.62.tar.xz /annobin-8.63.tar.xz +/annobin-8.64.tar.xz diff --git a/annobin.spec b/annobin.spec index 83842f1..8672682 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.63 +Version: 8.64 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Fri Nov 30 2018 Nick Clifton - 8.64-1 +- Annocheck: Skip gaps in PPC64 executables covered by start_bcax_ symbols. (#1630564) + * Mon Nov 26 2018 Nick Clifton - 8.63-1 - Annocheck: Disable ENDBR test for shared libraries. (#1652925) diff --git a/sources b/sources index 574e458..7fd5a1f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.63.tar.xz) = 5c89d67aa41ab38dbb988c8804330a0bbf9aa14f41d7cb23116be637e2b5b6c85ceeb375571c22923ae3f9786230ab5ef46ccec9db199c3071f903c98b092ed9 +SHA512 (annobin-8.64.tar.xz) = 98094e9c4c896cb3e1368a087ba4c3239fc491ef8d9f18213e5b65407e868bf66a307efb3dbf5a7d203ead0c1f33af43842af3d8718f6dacc96a5a5f88fdc4da From a4538d86c6698b3736f796670243f243004acc5b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 11 Dec 2018 09:59:46 +0000 Subject: [PATCH 43/71] Annobin: Fix handling of multiple .text.unlikely sections. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a512628..7aafc20 100644 --- a/.gitignore +++ b/.gitignore @@ -92,3 +92,4 @@ /annobin-8.62.tar.xz /annobin-8.63.tar.xz /annobin-8.64.tar.xz +/annobin-8.65.tar.xz diff --git a/annobin.spec b/annobin.spec index 8672682..1a2f2c2 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.64 +Version: 8.65 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Dec 11 2018 Nick Clifton - 8.65-1 +- Annobin: Fix handling of multiple .text.unlikely sections. + * Fri Nov 30 2018 Nick Clifton - 8.64-1 - Annocheck: Skip gaps in PPC64 executables covered by start_bcax_ symbols. (#1630564) diff --git a/sources b/sources index 7fd5a1f..7bd3a32 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.64.tar.xz) = 98094e9c4c896cb3e1368a087ba4c3239fc491ef8d9f18213e5b65407e868bf66a307efb3dbf5a7d203ead0c1f33af43842af3d8718f6dacc96a5a5f88fdc4da +SHA512 (annobin-8.65.tar.xz) = 0099198ea90b92483466bbc2d6be09c55eccd91bc1ff64a67ec69f0fdae44074f6aecbfc4542568263599ab68cb090cfa02b34259cccf1fce6e46ac0d40b9a9a From 61981bee0e63835c622051930c1d88a04d34189c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 2 Jan 2019 13:54:48 +0000 Subject: [PATCH 44/71] Annocheck: Do not ignore -Og when checking to see if an optimization level has been set. (#1624162) --- annobin.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 1a2f2c2..1f92bc3 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.65 +Version: 8.66 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Jan 02 2019 Nick Clifton - 8.66-1 +- Annocheck: Do not ignore -Og when checking to see if an optimization level has been set. (#1624162) + * Tue Dec 11 2018 Nick Clifton - 8.65-1 - Annobin: Fix handling of multiple .text.unlikely sections. From 08a082430f954f4a34eb62e6657c326e1d003604 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 2 Jan 2019 14:24:59 +0000 Subject: [PATCH 45/71] Add new sources --- .gitignore | 1 + sources | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7aafc20..c361417 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,4 @@ /annobin-8.63.tar.xz /annobin-8.64.tar.xz /annobin-8.65.tar.xz +/annobin-8.66.tar.xz diff --git a/sources b/sources index 7bd3a32..cd63f90 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.65.tar.xz) = 0099198ea90b92483466bbc2d6be09c55eccd91bc1ff64a67ec69f0fdae44074f6aecbfc4542568263599ab68cb090cfa02b34259cccf1fce6e46ac0d40b9a9a +SHA512 (annobin-8.66.tar.xz) = a4a7cb80df26717e9dd2f04ef7deeca8ac0b4232683f2e0b3550e2f11da3191083afd866e53d3f1ca0989326f0143fae94adada1b551cb18370b5b4be44ccc2b From c4182306481f4eb6ecef9e33b91c86c6c2e89e86 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 17 Jan 2019 10:18:16 +0000 Subject: [PATCH 46/71] Annocheck: Only skip specific checks for specific symbols. Annobin: Record the setting of the -fomit-frame-pointer option. Resolves: #1666823 --- .gitignore | 1 + annobin.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c361417..1c67bd1 100644 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,4 @@ /annobin-8.64.tar.xz /annobin-8.65.tar.xz /annobin-8.66.tar.xz +/annobin-8.67.tar.xz diff --git a/annobin.spec b/annobin.spec index 1f92bc3..7d13604 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.66 +Version: 8.67 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,10 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Jan 17 2019 Nick Clifton - 8.67-1 +- Annocheck: Only skip specific checks for specific symbols. (#1666823) +- Annobin: Record the setting of the -fomit-frame-pointer option. + * Wed Jan 02 2019 Nick Clifton - 8.66-1 - Annocheck: Do not ignore -Og when checking to see if an optimization level has been set. (#1624162) diff --git a/sources b/sources index cd63f90..8101c4c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.66.tar.xz) = a4a7cb80df26717e9dd2f04ef7deeca8ac0b4232683f2e0b3550e2f11da3191083afd866e53d3f1ca0989326f0143fae94adada1b551cb18370b5b4be44ccc2b +SHA512 (annobin-8.67.tar.xz) = 4ac5c4bcc6ed77cea1ff8a40c92de5c8f1aa5a045914e41817829436d7569505bdb6780d562ed9b9de1d74891e14b16bc6aee33457bc1a8beb11c5497aca4315 From 1e95c472c2e69db21182806398a5632f404a68af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Mon, 21 Jan 2019 11:54:35 +0100 Subject: [PATCH 47/71] Rebuilt for GCC 9 --- annobin.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 7d13604..8adf6b6 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.67 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Jan 21 2019 Björn Esser - 8.67-2 +- Rebuilt for GCC 9 + * Thu Jan 17 2019 Nick Clifton - 8.67-1 - Annocheck: Only skip specific checks for specific symbols. (#1666823) - Annobin: Record the setting of the -fomit-frame-pointer option. From aac7af99b5a01d4ae2a8f69c3efe811e1504cf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Mon, 21 Jan 2019 12:03:16 +0100 Subject: [PATCH 48/71] Disable annotated build --- annobin.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 8adf6b6..ee44d87 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ # # version, the old plugin will complain that version of gcc for which it # # was built is different from the version of gcc that is now being used, and # # then it will abort. -# %%undefine _annotated_build +%undefine _annotated_build Name: annobin Summary: Binary annotation plugin for GCC From e1bf6de1faf8759c33824c0c57e2759a7db52266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Mon, 21 Jan 2019 12:03:49 +0100 Subject: [PATCH 49/71] Rebuilt with annotations enabled --- annobin.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/annobin.spec b/annobin.spec index ee44d87..4fc4d34 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,12 +11,12 @@ # # version, the old plugin will complain that version of gcc for which it # # was built is different from the version of gcc that is now being used, and # # then it will abort. -%undefine _annotated_build +# %%undefine _annotated_build Name: annobin Summary: Binary annotation plugin for GCC Version: 8.67 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Jan 21 2019 Björn Esser - 8.67-3 +- Rebuilt with annotations enabled + * Mon Jan 21 2019 Björn Esser - 8.67-2 - Rebuilt for GCC 9 From 16e73c5719b85f848818b2f1a2dc0d7cd701b3f7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 23 Jan 2019 13:57:56 +0000 Subject: [PATCH 50/71] Annocheck: Skip checks for -D_FORTIFY_SOURCE and -D_GLIBCXX_ASSERTIONS if there is no compiler generated code in the binary. --- .gitignore | 1 + annobin.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1c67bd1..81422ce 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,4 @@ /annobin-8.65.tar.xz /annobin-8.66.tar.xz /annobin-8.67.tar.xz +/annobin-8.68.tar.xz diff --git a/annobin.spec b/annobin.spec index 4fc4d34..0fbc45d 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,8 +15,8 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.67 -Release: 3%{?dist} +Version: 8.68 +Release: 1%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -200,6 +200,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Wed Jan 23 2019 Nick Clifton - 8.68-1 +- Annocheck: Skip checks for -D_FORTIFY_SOURCE and -D_GLIBCXX_ASSERTIONS if there is no compiler generated code in the binary. + * Mon Jan 21 2019 Björn Esser - 8.67-3 - Rebuilt with annotations enabled diff --git a/sources b/sources index 8101c4c..d16c8b9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.67.tar.xz) = 4ac5c4bcc6ed77cea1ff8a40c92de5c8f1aa5a045914e41817829436d7569505bdb6780d562ed9b9de1d74891e14b16bc6aee33457bc1a8beb11c5497aca4315 +SHA512 (annobin-8.68.tar.xz) = 86416440797fafcffbb627f7ecea9306f0d8619f7ba51b47c82a675fc3e43fdd49c687af0f33344c5478d9d72112e8718b19232e48b481b4942ffa2cc1f887ba From 443440ae4af861c0ec782f8106ef9e7fac8b6b9b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 24 Jan 2019 15:47:34 +0000 Subject: [PATCH 51/71] Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9. Annocheck: Add a note displaying tool. --- .gitignore | 1 + annobin.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 81422ce..45b249b 100644 --- a/.gitignore +++ b/.gitignore @@ -96,3 +96,4 @@ /annobin-8.66.tar.xz /annobin-8.67.tar.xz /annobin-8.68.tar.xz +/annobin-8.69.tar.xz diff --git a/annobin.spec b/annobin.spec index 0fbc45d..a654c09 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.68 +Version: 8.69 Release: 1%{?dist} License: GPLv3+ @@ -200,6 +200,10 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Jan 24 2019 Nick Clifton - 8.69-1 +- Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9. +- Annocheck: Add a note displaying tool. + * Wed Jan 23 2019 Nick Clifton - 8.68-1 - Annocheck: Skip checks for -D_FORTIFY_SOURCE and -D_GLIBCXX_ASSERTIONS if there is no compiler generated code in the binary. diff --git a/sources b/sources index d16c8b9..d114ded 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.68.tar.xz) = 86416440797fafcffbb627f7ecea9306f0d8619f7ba51b47c82a675fc3e43fdd49c687af0f33344c5478d9d72112e8718b19232e48b481b4942ffa2cc1f887ba +SHA512 (annobin-8.69.tar.xz) = 09c5a112652cd22fd690cc858846e48f0eda548bed5e0484b7a76ca4d59c4259a519f84414fb3b50ab9661ae03f0b461b8c07fe35ed7eac58f2fb3a89021d1bb From a8a0b583561e80ed0d3bd01f3765a899e2364cf0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 28 Jan 2019 16:47:39 +0000 Subject: [PATCH 52/71] Add an exact requirement on the major version of gcc. Resolves: #1607430 --- annobin.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index a654c09..01a427e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.69 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -41,7 +41,11 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz #--------------------------------------------------------------------------------- +# BZ 1607430 - There is an exact requirement on the major version of gcc. +%define gcc_runtime_req_version %(rpm -q --qf '%{version}' gcc) + BuildRequires: gcc gcc-plugin-devel gcc-c++ +Requires: gcc = %{gcc_runtime_req_version} %description Provides a plugin for GCC that records extra information in the files @@ -200,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Jan 28 2019 Nick Clifton - 8.69-2 +- Add an exact requirement on the major version of gcc. + * Thu Jan 24 2019 Nick Clifton - 8.69-1 - Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9. - Annocheck: Add a note displaying tool. From dc77d4f997eaa4ebf9a2c6ae41b4dac0924e2e0e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 28 Jan 2019 16:48:37 +0000 Subject: [PATCH 53/71] Add BZ number to changelog. --- annobin.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 01a427e..9d2b6c8 100644 --- a/annobin.spec +++ b/annobin.spec @@ -205,7 +205,7 @@ make check %changelog * Mon Jan 28 2019 Nick Clifton - 8.69-2 -- Add an exact requirement on the major version of gcc. +- Add an exact requirement on the major version of gcc. (#1607430) * Thu Jan 24 2019 Nick Clifton - 8.69-1 - Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9. From fbf6e93ffcd0b5d66776d08dc46e4af15aef3348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Mon, 28 Jan 2019 19:00:38 +0100 Subject: [PATCH 54/71] Fix rpm query for gcc version --- annobin.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/annobin.spec b/annobin.spec index 9d2b6c8..f9dff76 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.69 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -42,7 +42,7 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz #--------------------------------------------------------------------------------- # BZ 1607430 - There is an exact requirement on the major version of gcc. -%define gcc_runtime_req_version %(rpm -q --qf '%{version}' gcc) +%define gcc_runtime_req_version %(rpm -q --qf '%%{version}' gcc) BuildRequires: gcc gcc-plugin-devel gcc-c++ Requires: gcc = %{gcc_runtime_req_version} @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Jan 28 2019 Björn Esser - 8.69-3 +- Fix rpm query for gcc version. + * Mon Jan 28 2019 Nick Clifton - 8.69-2 - Add an exact requirement on the major version of gcc. (#1607430) From c199efec9cf9b733539ae713cadb72b0b6ee488a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Mon, 28 Jan 2019 19:03:16 +0100 Subject: [PATCH 55/71] Disable annotated build --- annobin.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index f9dff76..833b969 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,7 +11,7 @@ # # version, the old plugin will complain that version of gcc for which it # # was built is different from the version of gcc that is now being used, and # # then it will abort. -# %%undefine _annotated_build +%undefine _annotated_build Name: annobin Summary: Binary annotation plugin for GCC From 9265fb5b34ac14c2b8bd19ef7d5d8e0872e199aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Mon, 28 Jan 2019 19:03:52 +0100 Subject: [PATCH 56/71] Rebuilt with annotations enabled --- annobin.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/annobin.spec b/annobin.spec index 833b969..aface21 100644 --- a/annobin.spec +++ b/annobin.spec @@ -11,12 +11,12 @@ # # version, the old plugin will complain that version of gcc for which it # # was built is different from the version of gcc that is now being used, and # # then it will abort. -%undefine _annotated_build +# %%undefine _annotated_build Name: annobin Summary: Binary annotation plugin for GCC Version: 8.69 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -204,6 +204,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Mon Jan 28 2019 Björn Esser - 8.69-4 +- Rebuilt with annotations enabled + * Mon Jan 28 2019 Björn Esser - 8.69-3 - Fix rpm query for gcc version. From 5524770463eabbccdc2c58d1fa5a4b01dbf6aefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 29 Jan 2019 11:06:30 +0100 Subject: [PATCH 57/71] Really fix rhbz#1607430. --- annobin.spec | 98 +++++++++++++++++++++++++++------------------------- 1 file changed, 51 insertions(+), 47 deletions(-) diff --git a/annobin.spec b/annobin.spec index aface21..1ab4a42 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.69 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -41,11 +41,54 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz #--------------------------------------------------------------------------------- +# [Stolen from gcc-python-plugin] +# GCC will only load plugins that were built against exactly that build of GCC +# We thus need to embed the exact GCC version as a requirement within the +# metadata. +# +# Define "gcc_vr", a variable to hold the VERSION-RELEASE string for the gcc +# we are being built against. +# +# Unfortunately, we can't simply run: +# rpm -q --qf="%%{version}-%%{release}" +# to determine this, as there's no guarantee of a sane rpm database within +# the chroots created by our build system +# +# So we instead query the version from gcc's output. +# +# gcc.spec has: +# Version: %%{gcc_version} +# Release: %%{gcc_release}%%{?dist} +# ...snip... +# echo 'Red Hat %%{version}-%%{gcc_release}' > gcc/DEV-PHASE +# +# So, given this output: +# +# $ gcc --version +# gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9) +# Copyright (C) 2011 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# we can scrape out the "4.6.1" from the version line. +# +# The following implements the above: + +%global gcc_vr %(gcc --version | head -n 1 | sed -e 's|.*(Red\ Hat\ ||g' -e 's|)$||g') + +# We need the major version of gcc. +%global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".") +%global gcc_next %(v="%{gcc_major}"; echo $((++v))) + +# This is a gcc plugin, hence gcc is required. +%if %{with_hard_gcc_version_requirement} # BZ 1607430 - There is an exact requirement on the major version of gcc. -%define gcc_runtime_req_version %(rpm -q --qf '%%{version}' gcc) +Requires: (gcc >= %{gcc_major} and gcc < %{gcc_next}) +%else +Requires: gcc +%endif BuildRequires: gcc gcc-plugin-devel gcc-c++ -Requires: gcc = %{gcc_runtime_req_version} %description Provides a plugin for GCC that records extra information in the files @@ -86,58 +129,16 @@ hardening options. %global ANNOBIN_PLUGIN_DIR %(gcc --print-file-name=plugin) -# [Stolen from gcc-python-plugin] -# GCC will only load plugins that were built against exactly that build of GCC -# We thus need to embed the exact GCC version as a requirement within the -# metadata. -# -# Define "gcc_vr", a variable to hold the VERSION-RELEASE string for the gcc -# we are being built against. -# -# Unfortunately, we can't simply run: -# rpm -q --qf="%%{version}-%%{release}" -# to determine this, as there's no guarantee of a sane rpm database within -# the chroots created by our build system -# -# So we instead query the version from gcc's output. -# -# gcc.spec has: -# Version: %%{gcc_version} -# Release: %%{gcc_release}%%{?dist} -# ...snip... -# echo 'Red Hat %%{version}-%%{gcc_release}' > gcc/DEV-PHASE -# -# So, given this output: -# -# $ gcc --version -# gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9) -# Copyright (C) 2011 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# -# we can scrape out the "4.6.1" from the version line. -# -# The following implements the above: - -%global gcc_vr %(gcc --version | head -n 1 | sed -e 's|.*(Red\ Hat\ ||g' | sed -e 's|)$||g') - -# This is a gcc plugin, hence gcc is required. -%if %{with_hard_gcc_version_requirement} -Requires: gcc == %{gcc_vr} -BuildRequires: gcc == %{gcc_vr} -%else -Requires: gcc -%endif - #--------------------------------------------------------------------------------- %prep - if [ -z "%{gcc_vr}" ]; then echo "*** Missing gcc_vr spec file macro, cannot continue." >&2 exit 1 fi +echo "Requires: (gcc >= %{gcc_major} and gcc < %{gcc_next})" + %autosetup -p1 # The plugin has to be configured with the same arcane configure @@ -204,6 +205,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Jan 29 2019 Björn Esser - 8.69-5 +- Really fix rhbz#1607430. + * Mon Jan 28 2019 Björn Esser - 8.69-4 - Rebuilt with annotations enabled From e0d9656b6324e5fec827e1d0e61e05859ebbf781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 29 Jan 2019 11:20:37 +0100 Subject: [PATCH 58/71] Fix build of srpm. --- annobin.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/annobin.spec b/annobin.spec index 1ab4a42..31d34c9 100644 --- a/annobin.spec +++ b/annobin.spec @@ -80,6 +80,11 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz %global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".") %global gcc_next %(v="%{gcc_major}"; echo $((++v))) +# Needed when building the srpm. +%if 0%{?gcc_major} == 0 +%global gcc_major 0 +%endif + # This is a gcc plugin, hence gcc is required. %if %{with_hard_gcc_version_requirement} # BZ 1607430 - There is an exact requirement on the major version of gcc. From a406d384be55930402d2db0ada6bc99585a5c39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 29 Jan 2019 11:26:55 +0100 Subject: [PATCH 59/71] Use with for rich dependency on gcc. --- annobin.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/annobin.spec b/annobin.spec index 31d34c9..f2f728e 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.69 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -88,7 +88,7 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz # This is a gcc plugin, hence gcc is required. %if %{with_hard_gcc_version_requirement} # BZ 1607430 - There is an exact requirement on the major version of gcc. -Requires: (gcc >= %{gcc_major} and gcc < %{gcc_next}) +Requires: (gcc >= %{gcc_major} with gcc < %{gcc_next}) %else Requires: gcc %endif @@ -142,7 +142,7 @@ if [ -z "%{gcc_vr}" ]; then exit 1 fi -echo "Requires: (gcc >= %{gcc_major} and gcc < %{gcc_next})" +echo "Requires: (gcc >= %{gcc_major} with gcc < %{gcc_next})" %autosetup -p1 @@ -210,6 +210,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Tue Jan 29 2019 Björn Esser - 8.69-6 +- Use 'with' for rich dependency on gcc + * Tue Jan 29 2019 Björn Esser - 8.69-5 - Really fix rhbz#1607430. From cbc345947e1df640c5d0753136711db903eb25f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 13:20:17 +0000 Subject: [PATCH 60/71] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- annobin.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index f2f728e..1667670 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.69 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -210,6 +210,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 8.69-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Tue Jan 29 2019 Björn Esser - 8.69-6 - Use 'with' for rich dependency on gcc From e7dabf64aad6c1a0defe7d7a2a482ae6890a6c3e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 1 Feb 2019 15:23:41 +0000 Subject: [PATCH 61/71] Add section flag matching ability to section size tool. --- .gitignore | 1 + annobin.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 45b249b..1e7c10f 100644 --- a/.gitignore +++ b/.gitignore @@ -97,3 +97,4 @@ /annobin-8.67.tar.xz /annobin-8.68.tar.xz /annobin-8.69.tar.xz +/annobin-8.70.tar.xz diff --git a/annobin.spec b/annobin.spec index 1667670..13bad94 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,8 +15,8 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.69 -Release: 7%{?dist} +Version: 8.70 +Release: 1%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -210,6 +210,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Fri Feb 01 2019 Nick Clifton - 8.70-1 +- Add section flag matching ability to section size tool. + * Thu Jan 31 2019 Fedora Release Engineering - 8.69-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index d114ded..4496fa0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.69.tar.xz) = 09c5a112652cd22fd690cc858846e48f0eda548bed5e0484b7a76ca4d59c4259a519f84414fb3b50ab9661ae03f0b461b8c07fe35ed7eac58f2fb3a89021d1bb +SHA512 (annobin-8.70.tar.xz) = 8a963a82200c3b073290c808f46f076dc73f08c60bbff37f22dd3447bb099d2ef2e05035c4fc90567047cc02dbcd1900b63de32b1596fe1068d36ee6327512c0 From 6e6ab3bb263e0914b229fc552c6746b41a230bcf Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 28 Feb 2019 15:51:40 +0000 Subject: [PATCH 62/71] Annobin: Suppress more calls to free() which are triggering memory checker errors. Resolves: #1684148 --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1e7c10f..424daae 100644 --- a/.gitignore +++ b/.gitignore @@ -98,3 +98,4 @@ /annobin-8.68.tar.xz /annobin-8.69.tar.xz /annobin-8.70.tar.xz +/annobin-8.71.tar.xz diff --git a/annobin.spec b/annobin.spec index 13bad94..273f856 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.70 +Version: 8.71 Release: 1%{?dist} License: GPLv3+ @@ -210,6 +210,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Feb 28 2019 Nick Clifton - 8.71-1 +- Annobin: Suppress more calls to free() which are triggering memory checker errors. (#1684148) + * Fri Feb 01 2019 Nick Clifton - 8.70-1 - Add section flag matching ability to section size tool. diff --git a/sources b/sources index 4496fa0..8a0e40b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.70.tar.xz) = 8a963a82200c3b073290c808f46f076dc73f08c60bbff37f22dd3447bb099d2ef2e05035c4fc90567047cc02dbcd1900b63de32b1596fe1068d36ee6327512c0 +SHA512 (annobin-8.71.tar.xz) = 32831fafd60cf02c5ae8898e3d6c0343ae8f3891e8e06ef358678093aa4e63740c94fae85c4306f3d6856b3811d81ce34885834ef975fd555dae2e21194b93e3 From 276edb1e4fd6bd342b3182b089a0eb3bae9cd49f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 18 Apr 2019 12:15:30 +0100 Subject: [PATCH 63/71] Rebuild annobin with the latest rawhide gcc sources. Resolves: #1700923 --- .gitignore | 1 + annobin.spec | 8 +++++++- sources | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 424daae..43b2343 100644 --- a/.gitignore +++ b/.gitignore @@ -99,3 +99,4 @@ /annobin-8.69.tar.xz /annobin-8.70.tar.xz /annobin-8.71.tar.xz +/annobin-8.72.tar.xz diff --git a/annobin.spec b/annobin.spec index 273f856..81f3488 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.71 +Version: 8.72 Release: 1%{?dist} License: GPLv3+ @@ -181,6 +181,9 @@ rm %{_tmppath}/tmp_annobin.so %if %{with tests} %check make check +if [ -f tests/test-suite.log ]; then + cat tests/test-suite.log +fi %endif #--------------------------------------------------------------------------------- @@ -210,6 +213,9 @@ make check #--------------------------------------------------------------------------------- %changelog +* Thu Apr 18 2019 Nick Clifton - 8.72-1 +- Rebuild annobin with the latest rawhide gcc sources. (#1700923) + * Thu Feb 28 2019 Nick Clifton - 8.71-1 - Annobin: Suppress more calls to free() which are triggering memory checker errors. (#1684148) diff --git a/sources b/sources index 8a0e40b..7e23956 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.71.tar.xz) = 32831fafd60cf02c5ae8898e3d6c0343ae8f3891e8e06ef358678093aa4e63740c94fae85c4306f3d6856b3811d81ce34885834ef975fd555dae2e21194b93e3 +SHA512 (annobin-8.72.tar.xz) = e66610f7ad499a15e63e834e8387ed1da6ac3c48da1db127d335b0ba6e4e9b3b913a3b266b37dc21cc6ff8d20f5a8b49870d372261208555b16897b8a557eccb From eeb41d947f2c8b7a395f7e97abff21e4d61d2e21 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 24 Apr 2019 12:27:15 +0100 Subject: [PATCH 64/71] Fix test for an executable stack segment. Resolves: #1700924 --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 43b2343..f9e05ab 100644 --- a/.gitignore +++ b/.gitignore @@ -100,3 +100,4 @@ /annobin-8.70.tar.xz /annobin-8.71.tar.xz /annobin-8.72.tar.xz +/annobin-8.73.tar.xz diff --git a/annobin.spec b/annobin.spec index 81f3488..b7b1395 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.72 +Version: 8.73 Release: 1%{?dist} License: GPLv3+ @@ -213,6 +213,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Wed Apr 24 2019 Nick Clifton - 8.73-1 +- Fix test for an executable stack segment. (#1700924) + * Thu Apr 18 2019 Nick Clifton - 8.72-1 - Rebuild annobin with the latest rawhide gcc sources. (#1700923) diff --git a/sources b/sources index 7e23956..b3d6152 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.72.tar.xz) = e66610f7ad499a15e63e834e8387ed1da6ac3c48da1db127d335b0ba6e4e9b3b913a3b266b37dc21cc6ff8d20f5a8b49870d372261208555b16897b8a557eccb +SHA512 (annobin-8.73.tar.xz) = 72af734ccdd1035ca46362ad0a7ca74c06407363783bfc58593ebc3fe233fee44822ccfb0544d3e235abba25c8b41ec3449ac43875e1fe4eea99ccef2c8f2b42 From 64b08754307fa70627866fd1ba1f2b5e549a0b06 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 26 Apr 2019 13:16:53 +0100 Subject: [PATCH 65/71] Add tests of clang command line options recorded in the DW_AT_producer attribute. --- .gitignore | 1 + annobin.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f9e05ab..4bf4ec5 100644 --- a/.gitignore +++ b/.gitignore @@ -101,3 +101,4 @@ /annobin-8.71.tar.xz /annobin-8.72.tar.xz /annobin-8.73.tar.xz +/annobin-8.74.tar.xz diff --git a/annobin.spec b/annobin.spec index b7b1395..83b83bb 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.73 +Version: 8.74 Release: 1%{?dist} License: GPLv3+ @@ -213,6 +213,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Fri Apr 26 2019 Nick Clifton - 8.74-1 +- Add tests of clang command line options recorded in the DW_AT_producer attribute. + * Wed Apr 24 2019 Nick Clifton - 8.73-1 - Fix test for an executable stack segment. (#1700924) diff --git a/sources b/sources index b3d6152..79e9e0a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.73.tar.xz) = 72af734ccdd1035ca46362ad0a7ca74c06407363783bfc58593ebc3fe233fee44822ccfb0544d3e235abba25c8b41ec3449ac43875e1fe4eea99ccef2c8f2b42 +SHA512 (annobin-8.74.tar.xz) = 3f91f75f472f095d0ceb8eb2cded34c6643ba7484fb7d617441dddbc12191c998b7ec4f88c6c0e4fbd3557a2f87e01ceaeff97964fe5566ab480ed65b0268244 From 94317b5194cb6fbc6b8506faf628390b7f68d175 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 30 Apr 2019 15:48:33 +0100 Subject: [PATCH 66/71] Report a missing -D_FORTIFY_SOUCRE option if -D_GLIBCXX_ASSERTIONS was detected. Do not report problems with -fstack-protection if the binary was not built by gcc or clang. Resolves: #1703788 Resolves: #1703499 Resolves: #1703500 --- .gitignore | 1 + annobin.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4bf4ec5..fde01e6 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,4 @@ /annobin-8.72.tar.xz /annobin-8.73.tar.xz /annobin-8.74.tar.xz +/annobin-8.76.tar.xz diff --git a/annobin.spec b/annobin.spec index 83b83bb..d56e925 100644 --- a/annobin.spec +++ b/annobin.spec @@ -15,7 +15,7 @@ Name: annobin Summary: Binary annotation plugin for GCC -Version: 8.74 +Version: 8.76 Release: 1%{?dist} License: GPLv3+ @@ -213,6 +213,10 @@ fi #--------------------------------------------------------------------------------- %changelog +* Tue Apr 30 2019 Nick Clifton - 8.76-1 +- Report a missing -D_FORTIFY_SOUCRE option if -D_GLIBCXX_ASSERTIONS was detected. (#1703499) +- Do not report problems with -fstack-protection if the binary was not built by gcc or clang. (#1703788) + * Fri Apr 26 2019 Nick Clifton - 8.74-1 - Add tests of clang command line options recorded in the DW_AT_producer attribute. diff --git a/sources b/sources index 79e9e0a..b0e73ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.74.tar.xz) = 3f91f75f472f095d0ceb8eb2cded34c6643ba7484fb7d617441dddbc12191c998b7ec4f88c6c0e4fbd3557a2f87e01ceaeff97964fe5566ab480ed65b0268244 +SHA512 (annobin-8.76.tar.xz) = f645258802d1d2a41cea2a41d62f382b9638bcfc2dc136d7204ebeb087a5624e199b780b8faf08447fa3686372fdd783c095cafff29b5fce6c18aed64eb53d56 From fcc5d2b0974b0d7b9fc7f0ac3633b4a2403c6b48 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 6 Jun 2019 11:06:43 +0300 Subject: [PATCH 67/71] Really enable annocheck sub-package Commit 4656334c922c0e00e8b53bbdf04e43e083bd8616 supposedly added annocheck as a sub-package but is missing the corresponding %files section, which causes the whole sub-package to be ignored and annocheck ending up in the main annobin package. Which creates a nasty "bootstrap" dependency issue for compilation when rpm soname changes. --- annobin.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index d56e925..83331b5 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.76 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -206,6 +206,7 @@ fi %doc %{_mandir}/man1/run-on-binaries-in.1.gz %if %{with annocheck} +%files annocheck %{_bindir}/annocheck %doc %{_mandir}/man1/annocheck.1.gz %endif @@ -213,6 +214,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Thu Jun 06 2019 Panu Matilainen - 8.76-2 +- Really enable annocheck sub-package + * Tue Apr 30 2019 Nick Clifton - 8.76-1 - Report a missing -D_FORTIFY_SOUCRE option if -D_GLIBCXX_ASSERTIONS was detected. (#1703499) - Do not report problems with -fstack-protection if the binary was not built by gcc or clang. (#1703788) From 16c7d0f3f2c60f62236740e3d10605f2cc8b0814 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 10 Jun 2019 17:11:24 +0200 Subject: [PATCH 68/71] Small and trivial spec cleanups Signed-off-by: Igor Gnatenko --- annobin.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/annobin.spec b/annobin.spec index 83331b5..b43d725 100644 --- a/annobin.spec +++ b/annobin.spec @@ -198,17 +198,17 @@ fi %exclude %{_datadir}/doc/annobin-plugin/COPYING3 %exclude %{_datadir}/doc/annobin-plugin/LICENSE %doc %{_datadir}/doc/annobin-plugin/annotation.proposal.txt -%doc %{_infodir}/annobin.info.gz -%doc %{_mandir}/man1/annobin.1.gz -%doc %{_mandir}/man1/built-by.1.gz -%doc %{_mandir}/man1/check-abi.1.gz -%doc %{_mandir}/man1/hardened.1.gz -%doc %{_mandir}/man1/run-on-binaries-in.1.gz +%{_infodir}/annobin.info* +%{_mandir}/man1/annobin.1* +%{_mandir}/man1/built-by.1* +%{_mandir}/man1/check-abi.1* +%{_mandir}/man1/hardened.1* +%{_mandir}/man1/run-on-binaries-in.1* %if %{with annocheck} %files annocheck %{_bindir}/annocheck -%doc %{_mandir}/man1/annocheck.1.gz +%{_mandir}/man1/annocheck.1* %endif #--------------------------------------------------------------------------------- From 2fca1e28f8ec05050299d5f37b69a9e64405800f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 10 Jun 2019 17:42:00 +0200 Subject: [PATCH 69/71] Rebuild for RPM 4.15 Signed-off-by: Igor Gnatenko --- annobin.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index b43d725..12cc8d9 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.76 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -214,6 +214,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Mon Jun 10 15:42:00 CET 2019 Igor Gnatenko - 8.76-3 +- Rebuild for RPM 4.15 + * Thu Jun 06 2019 Panu Matilainen - 8.76-2 - Really enable annocheck sub-package From b20fc4297822d364b018b8e7d0fea6d716ee160c Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 11 Jun 2019 00:13:17 +0200 Subject: [PATCH 70/71] Rebuild for RPM 4.15 Signed-off-by: Igor Gnatenko --- annobin.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 12cc8d9..081f3d5 100644 --- a/annobin.spec +++ b/annobin.spec @@ -16,7 +16,7 @@ Name: annobin Summary: Binary annotation plugin for GCC Version: 8.76 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -214,6 +214,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Mon Jun 10 22:13:17 CET 2019 Igor Gnatenko - 8.76-4 +- Rebuild for RPM 4.15 + * Mon Jun 10 15:42:00 CET 2019 Igor Gnatenko - 8.76-3 - Rebuild for RPM 4.15 From 03aecabbfbc6bf44d5809bffb4dca9bc641e3071 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 24 Jun 2019 14:22:11 +0100 Subject: [PATCH 71/71] Another attempt at fixing the detection and reporting of missing -D_FORTIFY_SOURCE options. --- .gitignore | 1 + annobin.spec | 41 +++++++++++++++++++++++++---------------- sources | 2 +- 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index fde01e6..c3c88dc 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,4 @@ /annobin-8.73.tar.xz /annobin-8.74.tar.xz /annobin-8.76.tar.xz +/annobin-8.77.tar.xz diff --git a/annobin.spec b/annobin.spec index 12cc8d9..625e27c 100644 --- a/annobin.spec +++ b/annobin.spec @@ -1,8 +1,14 @@ -# Suppress this for BZ 1630550. -# The problem should now only arise when rebasing to a new major version -# of gcc, in which case the undefine below can be temporarily reinstated. -# +Name: annobin +Summary: Binary annotation plugin for GCC +Version: 8.77 +Release: 1%{?dist} + +License: GPLv3+ +URL: https://fedoraproject.org/wiki/Toolchain/Watermark +# Maintainer: nickc@redhat.com + + # # Do not build the annobin plugin with annotation enabled. # # This is because if we are bootstrapping a new build environment we can have # # a new version of gcc installed, but without a new of annobin installed. @@ -11,16 +17,13 @@ # # version, the old plugin will complain that version of gcc for which it # # was built is different from the version of gcc that is now being used, and # # then it will abort. +# +# Suppress this for BZ 1630550. +# The problem should now only arise when rebasing to a new major version +# of gcc, in which case the undefine below can be temporarily reinstated. +# # %%undefine _annotated_build -Name: annobin -Summary: Binary annotation plugin for GCC -Version: 8.76 -Release: 3%{?dist} - -License: GPLv3+ -URL: https://fedoraproject.org/wiki/Toolchain/Watermark - # Use "--without tests" to disable the testsuite. The default is to run them. %bcond_without tests @@ -29,7 +32,7 @@ URL: https://fedoraproject.org/wiki/Toolchain/Watermark # Set this to zero to disable the requirement for a specific version of gcc. # This should only be needed if there is some kind of problem with the version -# checking logic. +# checking logic or when building on RHEL-7 or earlier. %global with_hard_gcc_version_requirement 1 #--------------------------------------------------------------------------------- @@ -97,8 +100,7 @@ BuildRequires: gcc gcc-plugin-devel gcc-c++ %description Provides a plugin for GCC that records extra information in the files -that it compiles and a set of scripts that can analyze the recorded -information. +that it compiles. Note - the plugin is automatically enabled in gcc builds via flags provided by the redhat-rpm-macros package. @@ -167,7 +169,10 @@ touch doc/annobin.info # that it should be OK. cp plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp_annobin.so make -C plugin clean -make -C plugin CXXFLAGS="%{optflags} -fplugin=%{_tmppath}/tmp_annobin.so -fplugin-arg-tmp_annobin-rename" +BUILD_FLAGS="-fplugin=%{_tmppath}/tmp_annobin.so -fplugin-arg-tmp_annobin-rename" +# If building on RHEL7, enable the next option as the .attach_to_group assembler pseudo op is not available in the assembler. +# BUILD_FLAGS="$BUILD_FLAGS -fplugin-arg-tmp_annobin-no-attach" +make -C plugin CXXFLAGS="%{optflags} $BUILD_FLAGS" rm %{_tmppath}/tmp_annobin.so #--------------------------------------------------------------------------------- @@ -180,6 +185,7 @@ rm %{_tmppath}/tmp_annobin.so %if %{with tests} %check +# On RHEL7 the assembler does not support all of the annobin tests. make check if [ -f tests/test-suite.log ]; then cat tests/test-suite.log @@ -214,6 +220,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Mon Jun 24 2019 Nick Clifton - 8.77-1 +- Another attempt at fixing the detection and reporting of missing -D_FORTIFY_SOURCE options. (#1703500) + * Mon Jun 10 15:42:00 CET 2019 Igor Gnatenko - 8.76-3 - Rebuild for RPM 4.15 diff --git a/sources b/sources index b0e73ee..d26a196 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (annobin-8.76.tar.xz) = f645258802d1d2a41cea2a41d62f382b9638bcfc2dc136d7204ebeb087a5624e199b780b8faf08447fa3686372fdd783c095cafff29b5fce6c18aed64eb53d56 +SHA512 (annobin-8.77.tar.xz) = d9d393aa359ab58a24d295dd4108b0255e39cf9210ec99125ce3f3589adff795aba50234817b38134964caa2fc92cf04d6c6e2945ae6cc2e1145033383cc58cb