From 76fd34c1df67a9243b7b35ebec189fce327a852b Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Fri, 15 May 2026 09:32:35 +0200 Subject: [PATCH] update version Signed-off-by: Toshaan Bharvani --- SPECS/annobin.spec | 218 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 211 insertions(+), 7 deletions(-) diff --git a/SPECS/annobin.spec b/SPECS/annobin.spec index fe52e84..9a3ff58 100644 --- a/SPECS/annobin.spec +++ b/SPECS/annobin.spec @@ -1,9 +1,9 @@ Name: annobin Summary: Annotate and examine compiled binary files -Version: 11.05 +Version: 12.98 Release: 1%{?dist} -License: GPLv3+ +License: GPL-3.0-or-later AND LGPL-2.0-or-later AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND GFDL-1.3-or-later # Maintainer: nickc@redhat.com # Web Page: https://sourceware.org/annobin/ # Watermark Protocol: https://fedoraproject.org/wiki/Toolchain/Watermark @@ -62,7 +62,7 @@ Source: https://nickc.fedorapeople.org/%{annobin_sources} %global annobin_source_dir %{_usrsrc}/annobin # Insert patches here, if needed. Eg: -# Patch01: annobin-foo.patch +# Patch01: annobin-plugin-callback.patch #--------------------------------------------------------------------------------- @@ -106,9 +106,9 @@ Source: https://nickc.fedorapeople.org/%{annobin_sources} %global gcc_next %(v="%{gcc_major}"; echo $((++v))) # Needed when building the srpm. -#%if 0%{?gcc_major} == 0 -#%global gcc_major 0 -#%endif +%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} @@ -206,6 +206,10 @@ touch configure */configure Makefile.in */Makefile.in # Similarly we do not want to rebuild the documentation. touch doc/annobin.info +# Generate a source tarball for installation later with all the patches +# applied. This must be the last step in the prep section. +tar -C ../ -cJf ../latest-annobin.tar.xz %{name}-%{version} + #--------------------------------------------------------------------------------- %build @@ -248,6 +252,10 @@ CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CXXFLAGS="$CFLAGS" %configure ${CONFIG_ARGS} export CLANG_TARGET_OPTIONS="-fcf-protection" %endif +%ifnarch riscv64 +export CLANG_TARGET_OPTIONS="$CLANG_TARGET_OPTIONS -flto" +%endif + %make_build %if %{with plugin_rebuild} @@ -309,7 +317,7 @@ cat `gcc --print-file-name=rpmver` > %{buildroot}/%{ANNOBIN_GCC_PLUGIN_DIR}/%{av # Also install a copy of the sources into the build tree. mkdir -p %{buildroot}%{annobin_source_dir} -cp %{_sourcedir}/%{annobin_sources} %{buildroot}%{annobin_source_dir}/latest-annobin.tar.xz +cp ../latest-annobin.tar.xz %{buildroot}%{annobin_source_dir}/latest-annobin.tar.xz %endif rm -f %{buildroot}%{_infodir}/dir @@ -366,6 +374,202 @@ exit $res #--------------------------------------------------------------------------------- %changelog +* Fri Jul 25 2025 Nick Clifton - 12.98-1 +- Rebase to 12.98. (RHEL-105574) +- Improve configure and meson files for consistent builds. +- Annocheck: Delete the temporary debug info directory after the tests have finished. + +* Tue Jun 10 2025 Nick Clifton - 12.96-1 +- Annocheck: Fix bugs in debug rpm location code. Add more glibc exceptions. (RHEL-95216) +- Annocheck: Improve performance with multiple debug info files and multiple files to scan. (#2366180) +- Annocheck: Update heuristic for detecting gcc files to cope with gcc 15. (#2365824) + +* Wed Apr 30 2025 Nick Clifton - 12.93-1 +- Rebuild against LLVM v20. (RHEL-82001) +- Rebase to 12.93. +- Annocheck: Fix test for GO revision. (RHEL-56031) + +* Mon Mar 10 2025 Tulio Magno Quites Machado Filho - 12.92-2 +- Generate latest-annobin.tar.xz at prep phase (RHEL-82899) + +* Fri Feb 14 2025 Nick Clifton - 12.92-1 +- Annocheck: Do not rely upon libelf's ability to detect links to separate debuginfo files. (RHEL-79264) + +* Thu Feb 13 2025 Nick Clifton - 12.91-1 +- Annocheck: Fix resource leak. (RHEL-79253) +- Annocheck: Fix double free. Add special handling for COMBOOT modules. +- Annocheck: Improve diagnostics when a separate debug info file cannot be found. + +* Mon Feb 03 2025 Nick Clifton - 12.88-1 +- Annocheck: Look for -fstack-clash-protection in DW_AT_producer string. (RHEL-77489) + +* Thu Jan 30 2025 Nick Clifton - 12.87-1 +- Annocheck: Fix locating string notes (again). Add exception for glibc benchmark tests. (RHEL-76809) +- Annocheck: Add crtoffloadtableS.o to list of known gcc binaries. (RHEL-76040) + +* Mon Jan 27 2025 Nick Clifton - 12.85-1 +- Annocheck: Fix the --debug-dir option. + +* Thu Jan 23 2025 Nick Clifton - 12.84-1 +- Annocheck: Fix corrupt warning message when unable to locate separate debug info files. + +* Wed Jan 22 2025 Nick Clifton - 12.83-1 +- Annocheck: Remove spurious debugging messages. +- Annocheck: Always look for annobin notes in separate debug info files. (RHEL-75778) +- Annocheck: Support multiple --debug-rpm and --debug-file options. (RHEL-73349) +- Annocheck: Add support for sys-root'ed glibc packages. (RHEL-71296) +- GCC Plugin: Tidy up use of gcc's diagnoatic headers. (#32429) +- Testsuite: Use configured compiler when running tests. +- GCC Plugin: Fix building with gcc 15. (#32429) +- Annocheck: Fix overly long debug messages. +- Annocheck: Rename rwx-seg test to load-segments. Add more checks. Add check for gaps as a future fail. +- Annocheck: Add --no-allow-excpetions to disable exceptions for known special binaries. +- Annocheck: Add --enable-future to enable future fail components in normal tests. +- Annocheck: Fix bug preventing the inclusion of the rpm name in reports. +- Annocheck: Add more exceptions for gcc binaries. (RHEL-33365) +- Annocheck: Add --skip-passes option. +- Annocheck: Add exceptions for gcc binaries. (RHEL-33365) +- Annocheck: Skip property note test for i386 binaries created by LLVM. (#2323797) +- Annocheck: Skip FORTIFY and GLIBC_ASSERTIONS tests for LLVM produced binaries with unparseable DW_AT_producer attributes in their DWARF debug info. (RHEL-65411) +- GCC Plugin: Change type of the .annobin.notes section from SHT_STRTAB to SHT_PROGBITS. +- Clang & LLVM Plugins: Include install directory in binary. (RHEL-54069) +- BuiltBy: Fix seg-fault when comparing language version strings. (RHEL-53497) +- Annocheck: Stop spurious assembler warnings. (RHEL-53213) +- Annocheck: Stop warnings about known gaps. (RHEL-53218) +- Annocheck: Fix stack realign test. (#2302427) + +* Mon Nov 18 2024 Nick Clifton - 12.65-2 +- Spec File: NVR bump in order to allow rebuilding with LLVM 19. (RHEL-66058) + +* Mon Jul 29 2024 Nick Clifton - 12.65-1 +- Annocheck: Fix recording arguments for later re-use. (RHEL-50802) +- Spec File: Add LTO option to clang and llvm plugin builds. (RHEL-50796) + +* Fri Jul 26 2024 Nick Clifron - 12.64-1 +- Rebase to 12.64, allowing build with LLVM 18. (RHEL-49953) +- Retire: annobin-strings-no-attach.patch +- Annocheck: Add improvements to the builtby utility. +- Annocheck: Add support for ADA binaries. +- Annocheck: Add support for binaries built from more than two high level source languages. +- Annocheck: Add support for object files containing no executable code. +- Annocheck: Do not FAIL LLVM compiled binaries that have not been built with sanitize-cfi and/or sanitize-safe-stack. +- Annocheck: Add support for Fortran binaries. +- Annocheck: Add heuristic for detecting parts of the CGO runtime library. +- Annocheck: Add improvements for handling Clang runtime binaries. +- Annocheck: Add tweaks for mixed Rust/C binaries. (#2284605) +- Annocheck: Add more glibc source file names. +- Annocheck: Skip GAPS test for GO binaries. (RHEL-36308) +- Annocheck: Remove some false positives for Rust binaries. (#2280239) +- Annocheck: Defer passing the branch protection test until all notes have been checked. +- GCC Plugin: Add extra code for detecting the branch protection setting. (RHEL-35958) +- Annocheck: Add OpenSSL Engine test. (PTG-319) +- Annocheck: Test for gaps even when only one note is present. +- Annocheck: Skip AArch64 branch protection test for GO binaries. +- GCC Plugin: Disable active check for -Wimplicit-int for non-C sources. (#2275884) +- Annocheck: Ignore stack checks for AMD GPU binaries. +- Annocheck: Do not produce FAIL result for i686 binaries in the RHEL-10 profile. +- Annocheck: Test for __stack_chk_guard being writeable. +- Annocheck: Update heuristics for detecting glibc code in executables. (RHEL-30579) +- Clang & LLVM Plugins: Allow environment to override fortification level. (RHEL-30579) +- Annocheck: Improve detection of -mbranch-protection option. +- Clang Plugin: Add global-file-syms option. +- LLVM Plugin: Add global-file-syms option. +- Plugins: Add support for ANNOBIN environment variable. +- GCC Plugin: Fix bug extracing the value of target specific command line options. +- Configure: Remove check for FrontendPluginRegistry.h header as it is stored in a non-standard location on Debian systems. +- Debuginfod test: Allow for the libdwfl library silently contacting the debuginfod server. +- LLVM Plugin: Use llvm-config to get the correct paths and options for building executables. +- Clang Plugin: Likewise. +- Enable silent rules for most building. +- Annocheck: Correctly extract DWARF attributes from DT_REL files. +- Annocheck: Improve heuristics for locating debug info files. (#2267097) +- Configure: Harmonize configure options. +- Clang Plugin: Fix building with Clang 18. (#31414) +- GCC Plugin: Add support for MIPS specific target functions. +- GCC Plugin: Use .dc.a for address expressions in 64-bit ELF format notes. +- Annocheck: Improve heuristic for skipping LTO and FORTIFY tests. (#2264000) +- Annocheck: Also skip property note test for i686 binaries. (#2258571) +- Annocheck: Also skip the entry point test for i686 binaries. (#2258571) +- GCC Plugin: Do not use section groups with string format notes. +- Annocheck: Disable cf-protection test for i686 architecture. (#2258571) +- Annocheck: Improve detection of FIPS compliant GO binaries. +- GCC Plugin: Fix recording of the -Wimplicit-int and -Wimplicit-function-declaration warnings. Add active checks for when they are deliberately disabled. +- Tests: Fix implicit-values test so that it will compile with gcc 14+. +- GCC Plugin: Add support for -fhardended. + +* Wed Jan 17 2024 Nick Clifron - 12.31-2 +- GCC Plugin: Do not use section groups with string notes. (RHEL-21772) + +* Wed Nov 15 2023 Nick Clifron - 12.31-1 +- Update glibc detection heuristics for PPC64. (RHEL-16453) +- Fix another atexit test failure. (#2247481) +- Fix atexit test failure. +- Notes: Add support for string format notes. + +* Mon Oct 09 2023 Nick Clifton - 12.28-1 +- Tests: Fix obsoleted syntax in plans/ci.fmf (RHEL-12194) +- Spec File: Use SPDX licensing. +- GCC Plugin: Record settings of -Wstrict-flex-arrays and -fstrict-flex-arrays +- Annobin: Add future test of these options. +- GCC Plugin: Record settings of -Wimplicit-int and -Wimplicit-function-declaration. +- Annobin: Add test for these warnings. +- LLVM Plugin: Fix building with LLVM version 17. +- GCC Plugin: Enable string note format by default. +- Annocheck: Change GO FIPS test to look for CGO_ENABLED markers. +- Annocheck: Add test for FIPS compliant GO binaries. +- Annocheck: Fix double free. (#2226749) +- Annocheck: Ignore AArch64 $x and $d symbols. (#2221192) +- GCC Plugin: Suppress active checks for fortran sources. Improve scanning of COLLECT_GCC_OPTIONS. +- Annocheck: Remove dependency upon binutils-devel. +- Annocheck: Add detection of known parts of libstdc++-nonshared.a that contain gaps. (#2217864) +- Annocheck: Ignore weak/undef function symbols when checking to see if a binary contains code. (#2217840) +- Annocheck: Add --suppress-version-warnings option. +- Annocheck: Do not ignore separate debuginfo files that do not contain any DWARF. (#2144553) +- Annocheck: Ignore /dev/null filename in string notes. +- Annocheck: More tweaks to glibc detection heuristics. (#2215968) + +* Wed Jun 14 2023 Nick Clifton - 12.12-1 +- Rebuild against LLVM-16. (#2212739) +- Annocheck: Check for string notes in separate debug info files. (#2211694) +- Annocheck: Add support for el10 and rhel-10 profiles. (RHEL-526) +- Annocheck: Suppress more tests for Rust binaries. + +* Wed Apr 26 2023 Nick Clifton - 12.09-1 +- Annocheck: Fix detection of missing plugin options. (#2189492) +- Fix generation of auto-generated files. +- Fix covscan reported errors. + +* Mon Apr 24 2023 Nick Clifton - 12.07-1 +- Annocheck: Fix lto testing. (#2177140) +- gcc-plugin: generate warnings about misspelt -D_FORTIFY_SOURCE and/or -D_GLIBCXX_ASSERTIONS options. +- gcc-plugin: use a bigger buffer for constructing notes. +- llvm-plugin: Fix detection of optimization level. Improve test. +- clang-plugin: Improve test. +- configure: More improvements. +- annocheck: Fix seg-fault when checking for glibc components in string format notes. +- configure: Simplify. +- gcc plugin: Add filenames to string notes. Allow use of ANNOBIN environment variable. +- llvm plugin: Add workaround for building with LLVM-16. +- clang plugin: Fix for building with Clang-16. +- gcc plugin: Keep ELF notes at protocol version 3. +- Protocol Version 4: String format notes. +- Annocheck: Update message for LTO tests. (#2177140) + +* Thu Mar 09 2023 Nick Clifton - 11.13-1 +- Annocheck: Add more code to handle another glibc function built without LTO. + +* Mon Mar 06 2023 Nick Clifton - 11.12-1 +- Annocheck: Add code to handle another glibc function built without LTO. +- GCC Plugin: Do not run if other plugins are active. (#2175768) +- Annocheck: Add code to handle glibc functions built without LTO. +- Libannocheck: Fix thinko in debugging code. +- Annocheck: Fix LTO test. +- Notes: Display notes held in separate dbeuginfo files. +- Annocheck: Fix atexit test. Fix recording of version numbers. (#2165528) +- LLVM & Clang Plugins: Build with branch protection on AArch64. (#2164364) +- Libannocheck: Fix bug causing infinite looping when running tests. +- Annocheck: Fix handling of file built by multiple versions of gcc. (#2160700) + * Mon Jan 09 2023 Nick Clifton - 11.05-1 - Annocheck: Fix handling of empty files. (#2159292)