Blame SPECS/annobin.spec

5e2b5d
c714d2
Name:    annobin
8cc16a
Summary: Annotate and examine compiled binary files
21783e
Version: 10.94
21783e
Release: 1%{?dist}
c714d2
License: GPLv3+
c714d2
# Maintainer: nickc@redhat.com
42771b
# Web Page: https://sourceware.org/annobin/
42771b
# Watermark Protocol: https://fedoraproject.org/wiki/Toolchain/Watermark
c714d2
8cc16a
#---------------------------------------------------------------------------------
8cc16a
8cc16a
# Use "--without tests" to disable the testsuite.
8cc16a
%bcond_without tests
8cc16a
8cc16a
# Use "--without annocheck" to disable the installation of the annocheck program.
8cc16a
%bcond_without annocheck
8cc16a
42771b
# Use "--with debuginfod" to add support for debuginfod to be compiled into
8cc16a
# the annocheck program.  By default the configure script will check for
8cc16a
# availablilty at build time, but this might not match the run time situation.
8cc16a
# FIXME: Add a --without debuginfod option to forcefully disable the configure
8cc16a
# time check for debuginfod support.
8cc16a
%bcond_with debuginfod
8cc16a
a87d16
# Use "--with clangplugin" to build the annobin plugin for Clang.
8cc16a
%bcond_with clangplugin
8cc16a
42771b
# Use "--without gccplugin" to disable the building of the annobin plugin for GCC.
42771b
%bcond_without gccplugin
42771b
a87d16
# Use "--with llvmplugin" to build the annobin plugin for LLVM.
a87d16
%bcond_with llvmplugin
a87d16
8cc16a
# Set this to zero to disable the requirement for a specific version of gcc.
8cc16a
# This should only be needed if there is some kind of problem with the version
8cc16a
# checking logic or when building on RHEL-7 or earlier.
8cc16a
%global with_hard_gcc_version_requirement 1
c714d2
42771b
%bcond_without plugin_rebuild
a87d16
# Allow the building of annobin without using annobin itself.
a87d16
# This is because if we are bootstrapping a new build environment we can have
a87d16
# a new version of gcc installed, but without a new of annobin installed.
a87d16
# (i.e. we are building the new version of annobin to go with the new version
a87d16
# of gcc).  If the *old* annobin plugin is used whilst building this new
a87d16
# version, the old plugin will complain that version of gcc for which it
a87d16
# was built is different from the version of gcc that is now being used, and
a87d16
# then it will abort.
c714d2
#
a87d16
# The default is to use annobin.  cf BZ 1630550.
42771b
%if %{without plugin_rebuild}
a87d16
%undefine _annotated_build
a87d16
%endif
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
8cc16a
42771b
%global annobin_sources annobin-%{version}.tar.xz
42771b
Source: https://nickc.fedorapeople.org/%{annobin_sources}
5e2b5d
# For the latest sources use:  git clone git://sourceware.org/git/annobin.git
5e2b5d
42771b
# This is where a copy of the sources will be installed.
42771b
%global annobin_source_dir %{_usrsrc}/annobin
42771b
42771b
# Insert patches here, if needed.  Eg:
42771b
# Patch01: annobin-foo.patch
5e2b5d
# Insert patches here, if needed.
81f3b3
Patch01: annobin-nop.patch
42771b
Patch02: annobin-annocheck-no-debuginfod.patch
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
# [Stolen from gcc-python-plugin]
5e2b5d
# GCC will only load plugins that were built against exactly that build of GCC
5e2b5d
# We thus need to embed the exact GCC version as a requirement within the
5e2b5d
# metadata.
5e2b5d
#
5e2b5d
# Define "gcc_vr", a variable to hold the VERSION-RELEASE string for the gcc
5e2b5d
# we are being built against.
5e2b5d
#
5e2b5d
# Unfortunately, we can't simply run:
5e2b5d
#   rpm -q --qf="%%{version}-%%{release}"
5e2b5d
# to determine this, as there's no guarantee of a sane rpm database within
5e2b5d
# the chroots created by our build system
5e2b5d
#
5e2b5d
# So we instead query the version from gcc's output.
5e2b5d
#
5e2b5d
# gcc.spec has:
5e2b5d
#   Version: %%{gcc_version}
5e2b5d
#   Release: %%{gcc_release}%%{?dist}
5e2b5d
#   ...snip...
5e2b5d
#   echo 'Red Hat %%{version}-%%{gcc_release}' > gcc/DEV-PHASE
5e2b5d
#
5e2b5d
# So, given this output:
5e2b5d
#
5e2b5d
#   $ gcc --version
5e2b5d
#   gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)
5e2b5d
#   Copyright (C) 2011 Free Software Foundation, Inc.
5e2b5d
#   This is free software; see the source for copying conditions.  There is NO
5e2b5d
#   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5e2b5d
#
5e2b5d
# we can scrape out the "4.6.1" from the version line.
5e2b5d
#
5e2b5d
# The following implements the above:
5e2b5d
c714d2
%global gcc_vr %(gcc --version | head -n 1 | sed -e 's|.*(Red\ Hat\ ||g' -e 's|)$||g')
c714d2
c714d2
# We need the major version of gcc.
c714d2
%global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".")
c714d2
%global gcc_next  %(v="%{gcc_major}"; echo $((++v)))
c714d2
c714d2
# Needed when building the srpm.
c714d2
%if 0%{?gcc_major} == 0
c714d2
%global gcc_major 0
c714d2
%endif
5e2b5d
5e2b5d
# This is a gcc plugin, hence gcc is required.
5e2b5d
%if %{with_hard_gcc_version_requirement}
c714d2
# BZ 1607430 - There is an exact requirement on the major version of gcc.
c714d2
Requires: (gcc >= %{gcc_major} with gcc < %{gcc_next})
5e2b5d
%else
5e2b5d
Requires: gcc
5e2b5d
%endif
5e2b5d
c714d2
BuildRequires: gcc gcc-plugin-devel gcc-c++
a87d16
# The documentation uses pod2man...
a87d16
BuildRequires: perl perl-podlators
8cc16a
%if %{with clangplugin}
a87d16
BuildRequires: clang clang-devel llvm llvm-devel compiler-rt gawk
a87d16
%endif
a87d16
%if %{with llvmplugin}
a87d16
BuildRequires: clang clang-devel llvm llvm-devel compiler-rt gawk
8cc16a
%endif
c714d2
c714d2
%description
c714d2
Provides a plugin for GCC that records extra information in the files
c714d2
that it compiles.
c714d2
c714d2
Note - the plugin is automatically enabled in gcc builds via flags
c714d2
provided by the redhat-rpm-macros package.
c714d2
8cc16a
%if %{with clangplugin}
a87d16
Also provides a plugin for Clang which performs a similar function.
a87d16
%endif
a87d16
a87d16
%if %{with llvmplugin}
a87d16
Also provides a plugin for LLVM which performs a similar function.
8cc16a
%endif
8cc16a
5e2b5d
#---------------------------------------------------------------------------------
c714d2
%if %{with tests}
5e2b5d
c714d2
%package tests
c714d2
Summary: Test scripts and binaries for checking the behaviour and output of the annobin plugin
c714d2
c714d2
%description tests
c714d2
Provides a means to test the generation of annotated binaries and the parsing
c714d2
of the resulting files.
5e2b5d
21783e
BuildRequires: make
21783e
21783e
%if %{with debuginfod}
21783e
BuildRequires: elfutils-debuginfod-client-devel
21783e
%endif
21783e
c714d2
%endif
c714d2
c714d2
#---------------------------------------------------------------------------------
c714d2
%if %{with annocheck}
c714d2
c714d2
%package annocheck
c714d2
Summary: A tool for checking the security hardening status of binaries
c714d2
430716
BuildRequires: gcc elfutils elfutils-devel elfutils-libelf-devel rpm-devel binutils-devel make
21783e
8cc16a
%if %{with debuginfod}
8cc16a
BuildRequires: elfutils-debuginfod-client-devel
8cc16a
%endif
21783e
430716
Requires: cpio rpm
c714d2
c714d2
%description annocheck
c714d2
Installs the annocheck program which uses the notes generated by annobin to
c714d2
check that the specified files were compiled with the correct security
c714d2
hardening options.
c714d2
c714d2
%endif
c714d2
c714d2
#---------------------------------------------------------------------------------
c714d2
8cc16a
%global ANNOBIN_GCC_PLUGIN_DIR %(gcc --print-file-name=plugin)
8cc16a
42771b
%{!?llvm_plugin_dir:%global  llvm_plugin_dir  %{_libdir}/llvm/plugins}
42771b
%{!?clang_plugin_dir:%global clang_plugin_dir %{_libdir}/clang/plugins}
42771b
42771b
%if %{with gccplugin}
42771b
# Information about the gcc plugin is recorded in this file.
42771b
%global aver annobin-plugin-version-info
8cc16a
%endif
c714d2
c714d2
#---------------------------------------------------------------------------------
c714d2
c714d2
%prep
5e2b5d
if [ -z "%{gcc_vr}" ]; then
5e2b5d
    echo "*** Missing gcc_vr spec file macro, cannot continue." >&2
5e2b5d
    exit 1
5e2b5d
fi
5e2b5d
8cc16a
echo "Requires: (gcc >= %{gcc_major} and gcc < %{gcc_next})"
c714d2
5e2b5d
%autosetup -p1
5e2b5d
5e2b5d
# The plugin has to be configured with the same arcane configure
5e2b5d
# scripts used by gcc.  Hence we must not allow the Fedora build
5e2b5d
# system to regenerate any of the configure files.
8cc16a
touch aclocal.m4 gcc-plugin/config.h.in
5e2b5d
touch configure */configure Makefile.in */Makefile.in
5e2b5d
# Similarly we do not want to rebuild the documentation.
5e2b5d
touch doc/annobin.info
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%build
8cc16a
42771b
CONFIG_ARGS="--quiet --with-gcc-plugin-dir=%{ANNOBIN_GCC_PLUGIN_DIR}"
a87d16
8cc16a
%if %{with debuginfod}
a87d16
CONFIG_ARGS="$CONFIG_ARGS --with-debuginfod"
8cc16a
%else
21783e
# Note - we explicitly disable debuginfod support if it was not configured.
21783e
# This is because by default annobin's configue script will assume --with-debuginfod=auto
21783e
# and then run a build time test to see if debugingfod is available.  It
21783e
# may well be, but the build time environment may not match the run time
21783e
# environment, and the rpm will not have a Requirement on the debuginfod
21783e
# client.
a87d16
CONFIG_ARGS="$CONFIG_ARGS --without-debuginfod"
8cc16a
%endif
8cc16a
a87d16
%if %{with clangplugin}
a87d16
CONFIG_ARGS="$CONFIG_ARGS --with-clang"
a87d16
%endif
a87d16
42771b
%if %{without gccplugin}
42771b
CONFIG_ARGS="$CONFIG_ARGS --without-gcc-plugin"
42771b
%endif
42771b
a87d16
%if %{with llvmplugin}
a87d16
CONFIG_ARGS="$CONFIG_ARGS --with-llvm"
a87d16
%endif
a87d16
a87d16
%if %{without tests}
42771b
CONFIG_ARGS="$CONFIG_ARGS --without-tests"
42771b
%endif
42771b
21783e
%if %{without annocheck}
21783e
CONFIG_ARGS="$CONFIG_ARGS --without-annocheck"
21783e
%endif
21783e
42771b
%set_build_flags
42771b
21783e
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS %build_cflags"
21783e
export LDFLAGS="$LDFLAGS %build_ldflags"
21783e
42771b
# Fedora supports AArch64's -mbranch-protection=bti, RHEL does not.
42771b
%if 0%{?fedora} != 0
21783e
export CFLAGS="$CFLAGS -DAARCH64_BRANCH_PROTECTION_SUPPORTED=1"
a87d16
%endif
a87d16
42771b
CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CXXFLAGS="$CFLAGS" %configure ${CONFIG_ARGS} || cat config.log
42771b
42771b
%ifarch %{ix86} x86_64
42771b
# FIXME: There should be a better way to do this.
42771b
export CLANG_TARGET_OPTIONS="-fcf-protection"
42771b
%endif
a87d16
5e2b5d
%make_build
a87d16
42771b
#---------------------------------------------------------------------------------
42771b
42771b
%if %{with plugin_rebuild}
a87d16
# Rebuild the plugin(s), this time using the plugin itself!  This
5e2b5d
# ensures that the plugin works, and that it contains annotations
a87d16
# of its own.
42771b
42771b
%if %{with gccplugin}
8cc16a
cp gcc-plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp_annobin.so
8cc16a
make -C gcc-plugin clean
a87d16
BUILD_FLAGS="-fplugin=%{_tmppath}/tmp_annobin.so"
a87d16
a87d16
# Disable the standard annobin plugin so that we do get conflicts.
42771b
OPTS="$(rpm --eval '%undefine _annotated_build %build_cflags %build_ldflags')"
a87d16
a87d16
# If building on RHEL7, enable the next option as the .attach_to_group
a87d16
# assembler pseudo op is not available in the assembler.
c714d2
# BUILD_FLAGS="$BUILD_FLAGS -fplugin-arg-tmp_annobin-no-attach"
a87d16
42771b
make -C gcc-plugin CXXFLAGS="$OPTS $BUILD_FLAGS"
5e2b5d
rm %{_tmppath}/tmp_annobin.so
42771b
%endif
5e2b5d
8cc16a
%if %{with clangplugin}
a87d16
cp clang-plugin/annobin-for-clang.so %{_tmppath}/tmp_annobin.so
42771b
make -C clang-plugin all CXXFLAGS="$OPTS $BUILD_FLAGS"
a87d16
%endif
a87d16
a87d16
%if %{with llvmplugin}
a87d16
cp llvm-plugin/annobin-for-llvm.so %{_tmppath}/tmp_annobin.so
42771b
make -C llvm-plugin all CXXFLAGS="$OPTS $BUILD_FLAGS"
42771b
%endif
42771b
8cc16a
%endif
8cc16a
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
a87d16
# PLUGIN_INSTALL_DIR is used by the Clang and LLVM makefiles...
5e2b5d
%install
21783e
42771b
%make_install PLUGIN_INSTALL_DIR=%{buildroot}/%{llvm_plugin_dir}
42771b
42771b
%if %{with clangplugin}
42771b
# Move the clang plugin to a seperate directory.
42771b
mkdir -p %{buildroot}/%{clang_plugin_dir}
42771b
mv %{buildroot}/%{llvm_plugin_dir}/annobin-for-clang.so %{buildroot}/%{clang_plugin_dir}
42771b
%endif
42771b
42771b
%if %{with gccplugin}
42771b
# Record the version of gcc that built this plugin.
42771b
# Note - we cannot just store %%{gcc_vr} as sometimes the gcc rpm version changes
42771b
# without the NVR being altered.  See BZ #2030671 for more discussion on this.
42771b
mkdir -p                             %{buildroot}/%{ANNOBIN_GCC_PLUGIN_DIR}
42771b
cat `gcc --print-file-name=rpmver` > %{buildroot}/%{ANNOBIN_GCC_PLUGIN_DIR}/%{aver}
42771b
42771b
# Also install a copy of the sources into the build tree.
42771b
mkdir -p                            %{buildroot}%{annobin_source_dir}
42771b
cp %{_sourcedir}/%{annobin_sources} %{buildroot}%{annobin_source_dir}/latest-annobin.tar.xz
42771b
%endif
42771b
42771b
rm -f %{buildroot}%{_infodir}/dir
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%if %{with tests}
5e2b5d
%check
8cc16a
# Change the following line to "make check || :" on RHEL7 or if you need to see the
8cc16a
# test suite logs in order to diagnose a test failure.
42771b
make -k check CLANG_TESTS="check-pre-clang-13"
430716
c714d2
if [ -f tests/test-suite.log ]; then
42771b
    cat tests/*.log
422183
fi
5e2b5d
%endif
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%files
5e2b5d
%license COPYING3 LICENSE
5e2b5d
%exclude %{_datadir}/doc/annobin-plugin/COPYING3
5e2b5d
%exclude %{_datadir}/doc/annobin-plugin/LICENSE
5e2b5d
%doc %{_datadir}/doc/annobin-plugin/annotation.proposal.txt
5e2b5d
%doc %{_infodir}/annobin.info.gz
5e2b5d
%doc %{_mandir}/man1/annobin.1.gz
430716
%exclude %{_mandir}/man1/built-by.1*
430716
%exclude %{_mandir}/man1/check-abi.1*
430716
%exclude %{_mandir}/man1/hardened.1*
430716
%exclude %{_mandir}/man1/run-on-binaries-in.1*
5e2b5d
8cc16a
%if %{with clangplugin}
42771b
%{clang_plugin_dir}/annobin-for-clang.so
8cc16a
%endif
42771b
a87d16
%if %{with llvmplugin}
42771b
%{llvm_plugin_dir}/annobin-for-llvm.so
42771b
%endif
42771b
42771b
%if %{with gccplugin}
42771b
%{ANNOBIN_GCC_PLUGIN_DIR}/annobin.so
42771b
%{ANNOBIN_GCC_PLUGIN_DIR}/annobin.so.0
42771b
%{ANNOBIN_GCC_PLUGIN_DIR}/annobin.so.0.0.0
42771b
%{ANNOBIN_GCC_PLUGIN_DIR}/%{aver}
42771b
%{annobin_source_dir}/latest-annobin.tar.xz
a87d16
%endif
8cc16a
5e2b5d
%if %{with annocheck}
8cc16a
%files annocheck
42771b
%{_includedir}/libannocheck.h
42771b
%{_libdir}/libannocheck.*
5e2b5d
%{_bindir}/annocheck
5e2b5d
%doc %{_mandir}/man1/annocheck.1.gz
21783e
%{_libdir}/pkgconfig/libannocheck.pc
5e2b5d
%endif
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%changelog
21783e
* Wed Dec 07 2022 Nick Clifton  <nickc@redhat.com> - 10.94-1
21783e
- Rebase to 10.94.  (#2151312)
21783e
- Annocheck: Better detection of binaries which do not contain code.  (#2144533)
21783e
- Annocheck: Provide more information when a test is skipped because the file being tested was not compiled.
21783e
- Annocheck: Try harder not to run mutually exclusive tests.
21783e
- Tests: Fix future-test so that it properly handles the situation where the compiler does not support the new options.
21783e
- Libannocheck: Actually set result fields after tests are run.
21783e
- Libannocheck: Replace libannocheck_version variable with LIBANNOCHECK_VERSION define.
21783e
- Libannocheck: Remove 'Requires binutils-devel' from libannocheck.pc.
21783e
- Libannocheck: Move into separate sub-package.
21783e
- Libannocheck: Add libannocheck.pc pkgconfig file.
21783e
- Libannocheck: Add libannocheck_reinit().
21783e
- GCC Plugin: Record -ftrivial-auto-var-init and -fzero-call-used-regs.
21783e
- Annocheck: Add future tests for  -ftrivial-auto-var-init and -fzero-call-used-regs.
21783e
- Clang Plugin: Fix for building with Clang-15.  (#2125875)
21783e
- Annocheck: Add a test for the inconsistent use of -Ofast.  (#1248744)
21783e
- Plugin: Fix top level configuration support for RiscV.
21783e
- Annocheck: Improvements to the size tool.
21783e
- Annocheck: Fixes for libannocheck.h.
21783e
- Annocheck: Add automatic profile selection.
21783e
- Annocheck: Improve gap detection and reporting.
21783e
- Annocheck: Check build-id of separate debuginfo files.
21783e
- Annocheck: Add GAPS test replacing --ignore-gaps.
21783e
- Annocheck: Fix covscan detected race condition between stat() and open().
21783e
- Annocheck: Handle binaries created by Rust 1.18.  (#2094420)
21783e
- Annocheck: Add optional function name to --skip arguments.  (PR 29229)
21783e
- Annocheck: Fix handling of command line options that take arguments.  (#2086850)
21783e
- Annocheck: Do not complain about unenabled -mbranch-protection option in AArch64 binaries.  (#2078909)
21783e
- gcc-plugin: Fix typo in configure.ac.
21783e
- Add support for RISC-V.
21783e
- Annocheck: Add another special case for glibc rpms.  (#2083070)
21783e
- Annocheck: Do not complain about unenabled -mbranch-protection option in AArch64 binaries if compiled using LTO.  (#2082146)
21783e
- Annocheck: Add more glibc exceptions + check PT_TLS segments.  (#2081131)
21783e
42771b
* Thu Jul 21 2022 Florian Weimer <fweimer@redhat.com> - 10.67-3
42771b
- Rebuild to switch back to system annobin (#2108721)
42771b
42771b
* Fri Jul 15 2022 Florian Weimer <fweimer@redhat.com> - 10.67-2
42771b
- Rebuild to switch back to system annobin (#2001788)
42771b
42771b
* Fri Apr 29 2022 Nick Clifton  <nickc@redhat.com> - 10.67-1
42771b
- Rebuild against LLVM 14.  (#2064521)
42771b
- Annocheck: Do not complain about missing -mbranch-protection option in AArch64 binaries if compiled by golang.
42771b
- Annocheck: Do not complain about missing -mbranch-protection option in AArch64 binaries if compiled in LTO mode.
42771b
- gcc-plugin: Add support for CLVC_INTEGER options.
42771b
42771b
* Wed Apr 06 2022 Nick Clifton  <nickc@redhat.com> - 10.64-1
42771b
- Annocheck: Add more special cases for AArch64 glibc on RHEL-8.  (#2072082)
42771b
- llvm-plugin: Fix a thinko in the sources.
42771b
- gcc-plugin: Add remap of OPT_Wall.
42771b
- configure: Fix typo in top level configure.ac.
42771b
- Add support for building using meson+ninja.
42771b
- Annocheck: Fix test for AArch64 property notes.  (#2068657)
42771b
- gcc-plugin: Do not issue warning messages for autoconf generated source files.  (#2009958)
42771b
42771b
* Thu Mar 24 2022 Nick Clifton  <nickc@redhat.com> - 10.58-1
42771b
- Rebase to 10.58.  (#2067148)
42771b
- gcc-plugin: Do not issue warning messages for autoconf generated source files.  (#2009958)
42771b
- Annocheck: Update documentation and fix typo in annocheck.  (#2061291)
42771b
- Annocheck: Add option to enable/disable following symbolic links.
42771b
- Annocheck: Always identify Rust binaries, even if built on a host that does not know about Rust.  (#2057737)
42771b
- Spec File: Use a different method to disable the annobin plugin  (#2054571)
42771b
- Annocheck: Accept static GO binaries.  (#2053606)
42771b
- gcc-plugin: Fix libtool so that extraneous runpaths are not added to the plugin.  (#2047356)
42771b
- gcc-plugin: Use canonical_option field of save_decoded_options array. (#2047148)
42771b
- Annocheck: Add an option to disable the use of debuginfod (if available).
42771b
- Annocheck: Add more glibc special file names.
42771b
- Annocheck: Skip some tests for BPF binaries.  (#2044897)
42771b
- Annocheck: Skip property note test for GO binaries.  (#204300)
42771b
- Annocheck: Add another glibc static library symbol.  (#2043047)
42771b
- Spec File: Use gcc --print-file-name=rpmver for the gcc version info.
42771b
- GCC Plugin: Do not fail if a section cannot be attached to a group.
42771b
- Annocheck: Improve detection of kernel modules.
42771b
- GCC Plugin: Only default to link-once when using gcc-12 or later.  (#2039297)
42771b
- Annocheck: Add option to disable instrumentation test.
42771b
- GCC Plugin: Fix building with gcc-12.
42771b
- Spec file: Add requirement on cpio for annocheck.  (#2039747)
42771b
- Annocheck: Add even more glibc function names. (#2037333)
42771b
- Annocheck: ARM: Do not fail tests that rely upon annobin notes.
42771b
- Annocheck: Extend list of known glibc functions.  (#2037333)
42771b
- Annocheck: Ignore gaps that contain the _start symbol (for AArch64).  (#1995224)
42771b
- Annocheck: Ignore more glibc special binaries.  (#2037220)
42771b
- Annocheck: Do not complaining about missing stack clash notes if the compilation used LTO.  (#2034946)
42771b
- Annocheck: Add /usr/lib/ld-linux-aarch64.so.1 to the list of known glibc binaries.  (#2033255)
42771b
- Docs: Note that ENDBR is only needed as the landing pad for indirect branches/calls.  (#28705)
42771b
- Spec File: Store full	gcc version release string in plugin info file.  (#2030671)
42771b
- Annocheck: Add special case for x86_64 RHEL-7 gaps.  (#2031133)
42771b
- Annocheck: Do not complaining about missing -mstackrealign notes in LTO mode.  (#2030298)
42771b
- GCC Plugin: Do not record missing -mstackrealign in LTO mode.
42771b
- Tests: Fix gaps and stat tests to use newly built annobin plugin.  (#2028063)
42771b
- Annocheck: Ignore gaps in binaries at least partial built by golang.  (#2028583)
42771b
- Annocheck: Allow spaces in gloang symbols.  (#2028583)
42771b
- Annocheck: Initial deployment of libannocheck.  (#2028063)
42771b
- gcc-plugin: Fix bug creating empty attachments.
42771b
- Annocheck: Change MAYB result to SKIP for DT_RPATH.  (#2026300)
42771b
- Annocheck: Skip missing fortify/warning notes for ARM32.
42771b
430716
* Tue Feb 08 2022 Nick Clifton  <nickc@redhat.com> - 10.29-3
430716
- NVR bump in order to allow rebuilding against latest gcc.  (#2052060)
430716
430716
* Mon Jan 24 2022 Nick Clifton  <nickc@redhat.com> - 10.29-2
430716
- Spec File: Add "Requires: rpm cpio" to annocheck sub-package.  (#2043474)
430716
430716
* Tue Nov 30 2021 Nick Clifton  <nickc@redhat.com> - 10.28-1
430716
- gcc-plugin: Fix bug creating empty attachments.  (#2026944)
430716
- Annocheck: Change MAYB result to SKIP for DT_RPATH.  (#2026300)
430716
430716
* Mon Nov 22 2021 Nick Clifton  <nickc@redhat.com> - 10.27-1
430716
- Annocheck: Skip missing fortify/warning notes for ARM32.
430716
- gcc-plugin: Try another fix for ppc64le section grouping.  (#2023437)
430716
- gcc-plugin: Revert 10.22 change.  (#2023437)
430716
- Annocheck: Add exception for /usr/sbin/ldconfig.  (#2022973)
430716
430716
* Mon Nov 08 2021 Nick Clifton  <nickc@redhat.com> - 10.23-1
430716
- Annocheck: Add a test for unicode characters in identifiers.  (#2017363)
430716
- gcc-plugin: Default to link-order grouping for PPC64LE.  (#2016458)
430716
430716
* Wed Oct 27 2021 Nick Clifton  <nickc@redhat.com> - 10.21-3
430716
- annocheck: Disable LTO test when checking ldconfig (attempt 3).  (#2017039)
430716
430716
* Tue Oct 26 2021 Nick Clifton  <nickc@redhat.com> - 10.21-2
430716
- annocheck: Disable LTO test when checking ldconfig (attempt 2).  (#2017039)
430716
430716
* Tue Oct 26 2021 Nick Clifton  <nickc@redhat.com> - 10.21-1
430716
- annocheck: Disable LTO test when checking ldconfig.  (#2017039)
430716
430716
* Mon Oct 25 2021 Nick Clifton  <nickc@redhat.com> - 10.20-1
430716
- annocheck: Add more glibc function names.  (#2017039)
430716
- gcc-plugin: Fix attaching the .text section to the .text.group section.
430716
- Complain about DT_RPATH for Fedora binaries.
430716
- Better reporting of problems in object files.  (#2013708)
430716
- Add a requirement on llvm-libs for clang and llvm plugins.  (#2014573)
430716
- Fix configuring annocheck without gcc-plugin.
430716
- Annocheck: Better reporting of debuginfod problems.
430716
- Tests: Fix bugs in debuginfod test.
430716
430716
* Mon Oct 18 2021 Nick Clifton  <nickc@redhat.com> - 10.15-2
430716
- Exclude man pages for uninstalled scripts.  (#2013565)
430716
430716
* Wed Oct 13 2021 Nick Clifton  <nickc@redhat.com> - 10.15-1
430716
- Annocheck: Add tests based upon recent bug fixes.
430716
- Annocheck: Another tweak to glibc detection code.
430716
430716
* Mon Oct 11 2021 Nick Clifton  <nickc@redhat.com> - 10.13-1
430716
- Annocheck: Fix memory corruptions when using --debug-path and when a corrupt note is found.  (#20011438)
430716
- Annocheck: Fix MAYB results for mixed GO/C files.
430716
- Annocheck: Move some messages from VERBOSE to VERBOSE2.
430716
- Annocheck: Scan zero-length tool notes.  (#2011818)
430716
430716
* Wed Oct 06 2021 Nick Clifton  <nickc@redhat.com> - 10.11-1
430716
- Annocheck: Fix covscan detected flaws.  (#201129)
430716
- plugins: Add more required build options.  (#2011163)
430716
430716
* Tue Oct 05 2021 Nick Clifton  <nickc@redhat.com> - 10.10-1
430716
- Annocheck: Fix cf-prot test to fail if the CET notes are missing.  (#2010671)
430716
- Annocheck: Skip gaps in the .plt section.  (#2010675)
430716
- Plugins: Add -g option when building LLVM and Clang. (#2010675)
430716
430716
* Mon Oct 04 2021 Nick Clifton  <nickc@redhat.com> - 10.09-1
430716
- Annocheck: Add more cases of glibc startup functions.  (#1981410)
430716
- Annocheck: Fix covscan detected problems.
430716
- Annocheck: Add --profile=el8.
430716
- gcc-plugin: Conditionalize generation of branch protection note.
430716
- Annocheck: Ignore gaps containing NOP instructions.
430716
430716
* Wed Sep 29 2021 Nick Clifton <nickc@redhat.com> - 10.06-1
430716
- Rebase to 10.06.  (#2002351)
430716
- GCC Plugin: Fix detection of running inside the LTO compiler.  (#2004917)
430716
- Annocheck: Do not insist on the DT_AARCH64_PAC_PLT flag being present in AArch64 binaries.
430716
- Annocheck: With gaps at the start/end of the .text section, check for special symbols before displaying a MAYB result.
430716
- Annocheck: Do not set CFLAGS/LDFLAGS when building.  Take from environment instead.
430716
- Annocheck: Fix exit code when tests PASS.
430716
- Documentation: Add node for each hardening test.
430716
- Documentation: Install online.
430716
- Annocheck: Annote FAIL and MAYB results with URL to documentation
430716
- Annocheck: Add --no-urls and --provide-urls options
430716
- Annocheck: Add --help-<tool> option.
430716
- Annocheck: Fix fuzzing detected failures.
430716
- Annocheck: Add --profile option.
430716
- Docs: Document --profile option and rpminspect.yaml.
430716
- Annocheck: Skip GO/CET checks.  Fix fuzzing detected failures.
430716
- LLVM Plugin: Automatically choose the correct tests to run, based upon the version of Clang installed. (#1997444)
430716
- Annocheck: Fix memory corruption.  (#1996963)
430716
- Annocheck: Fix conditionalization of AArch64's PAC+BTI detection.
430716
- Annocheck: Add linker generated function for ppc64le exceptions.  (#1981410)
430716
- LLVM Plugin: Allow checks to be selected from the command line.
430716
- Annocheck: Examine DW_AT_producer for -flto.    
430716
- Annocheck: Conditionalize detection of AArch64's PAC+BTI protection.
430716
- Annocheck: Add linker generated function for s390x exceptions.  (#1981410)
430716
- Annocheck: Generate MAYB results for gaps in notes covering the .text section.  (#1991943)
430716
- Annocheck: Close DWARF file descriptors once the debug info is no longer needed.  (#1981410)
430716
- LLVM Plugin: Update to build with Clang v13.  (Thanks to: Tom Stellard <tstellar@redhat.com>)
430716
- Annocheck: Fix memory corruption.  (#1988715)
430716
- Annocheck: Skip certain tests for kernel modules.
430716
- Annocheck: Detect a missing CET note.  (#1991931)
430716
- Annocheck: Do not report future fails for AArch64 notes.
430716
- Annocheck: Warn about multiple --debug-file, --debug-rpm and --debug-dir options.
430716
- Annocheck: Process files in command line order.  (#1988714)
430716
- Annocheck: Reverse AArch64 PAC+BTI check, ie fail if they are enabled.  (#1984995)
430716
- Annocheck: Add another test exceptions.
430716
- Annocheck: Add some more test exceptions.
430716
- Tests: Skip glibc-notes test if the assembler does not support --generate-missing-build-notes.  (#1978573)
430716
- Tests: Skip objcopy test if objcopy does not support --merge-notes.
430716
- Annocheck: Fix spelling mistake in -mstack-realign failure message.  (#1977349)
430716
- gcc-plugin: Do not record global versions of stack protection settings in LTO mode, if not set.  (#1958954)
430716
- Annocheck: Remove limit on number of input files.
430716
- clang/llvm plugins: Build with correct security options.
430716
- Annocheck: Better detection of GO compiler version.
430716
- Annocheck: Better support for symbolic links.
430716
- Annocheck: In verbose mode, report the reason for skipping specific tests.  (#1969584)
430716
- Annocheck: Improve detection of shared libraries.  (#1958954)
81f3b3
81f3b3
* Mon May 17 2021 Nick Clifton <nickc@redhat.com> - 9.72-1
81f3b3
- Rebase to 9.72.  (#1960299)
81f3b3
- annocheck: Accept 0 as a valid number for gcc minor versions and release numbers.
81f3b3
- gcc-plugin: Add support for ARM and RISCV targets.
81f3b3
- timing: do not initialise the clock if the timing tool is disabled.
81f3b3
- gcc-plugin: Replace ICE messsages with verbose messages.
81f3b3
- Fix the testsuite so that it can be run in parallel.
81f3b3
- Annocheck: WARN if the annobin plugin was built for a newer version of the compiler than the one on which it was run.  (#1950657)
81f3b3
- Annocheck: Improve detection of missing GNU-stack support.
81f3b3
- Correct a package rename (bug #1949570)
81f3b3
- Require docs subpackage by the other ones because of a license
81f3b3
- Build-requiring perl-interpreter is enough
81f3b3
- Fix bz1949570
81f3b3
- Fix anomolies reported by covscan.
81f3b3
- Move documentation into a sub-package.
81f3b3
422183
* Wed Mar 17 2021 Nick Clifton <nickc@redhat.com> - 9.65-1
422183
- gcc-plugin: Use a fixed filename when running in LTO mode.
422183
422183
* Wed Mar 03 2021 Nick Clifton <nickc@redhat.com> - 9.64-1
422183
- Annocheck: Fix detection of special function names.  (#1934189)
422183
- Annocheck: FAIL the deliberate use of -fno-stack-protector, but add some exceptions for glibc.  (#1923439)
422183
- Annocheck: Add colour to some messages.  Skip the deliberate use of -fno-stack-protector.  (#1923439)
422183
- Annocheck: Fix some problems with tests for missing notes.
422183
- Add some GO tests to annocheck.
422183
- Add a future fail for the presence of RPATH in the dynamic tags.
422183
- Add the ability to disable the warning message about -D_FORTIFY_SOURCE being missing.
422183
- Workaround for elflint problems with PPC compiled files.  (#1880634)
422183
- Fix bogus AArch64 test failures.
422183
- Improved testing by annocheck.  Add fixed format message mode.
422183
- Fix inconsistency reporting -fcf-protection and -fstack-clash-protection results.
422183
- Add support for -D_FORTIFY_SOURCE=3.
422183
- annocheck: When a binary is produced both by GAS and GCC, select GAS as the real producer.  (#1906171)
422183
- annocheck: Improve test for LTO compiled binaries that do not have -Wall annotations.  (#1906171)
422183
a87d16
* Wed Dec 09 2020 Nick Clifton <nickc@redhat.com> - 9.50-1
a87d16
- annocheck: Mark a missining -D_FORTIFY_SOURCE as a FAIL.
a87d16
a87d16
* Tue Dec 08 2020 Nick Clifton <nickc@redhat.com> - 9.49-1
a87d16
- annocheck: Fix notes analyzer to accept empty PPC64 notes.
a87d16
- gcc plugin: Tweak generation of end symbols for PPC64 when LTO is active.  (#1898075)(#1904479)
a87d16
- gcc plugin: Add support for GCC 11's cl_vars array.
a87d16
a87d16
* Mon Nov 30 2020 Nick Clifton <nickc@redhat.com> - 9.46-1
a87d16
- Annocheck: Support enabling/disabling future fails.
a87d16
- GCC plugin: Always record global notes for the .text.startup,
a87d16
  .text.exit, .text.hot and .text.cold sections.
a87d16
- Clang plugin: Add -lLLVM to the build command line.
a87d16
- Annocheck: Improve reporting of missing -D_FORTIFY_SOURCE option.  (#1898075)
a87d16
- Annocheck: Improve reporting of missing LTO option.
a87d16
- Add detecting of gimple compiled binaries.
a87d16
- Add --without-gcc-plugin option.
a87d16
- Annocheck: Fix bug parsing DW_AT_producer.
a87d16
- Add test of .note.gnu.property section for PowerPC.
a87d16
- Add test of objcopy's ability to merge notes.
a87d16
- Record the -flto setting and produce a soft warning if it is absent.
a87d16
- Suppress warnings about _D_GLIBCXX_ASSERTIONS if the source code is known to be something other than C++.
a87d16
a87d16
* Wed Oct 21 2020 Nick Clifton <nickc@redhat.com> - 9.35-3
a87d16
- NVR bump to allow building on ELN sidetag.
a87d16
a87d16
* Tue Oct 13 2020 Nick Clifton <nickc@redhat.com> - 9.35-2
a87d16
- Correct the directory chosen for 32-bit LLVM and Clang plugins.  (#1884951)
a87d16
- Allow the use of the SHF_LINK_ORDER section flag to discard unused notes.  (Experimental).
a87d16
- gcc-plugin: Fix test for empty PowerPC sections.  (#1880634)
a87d16
a87d16
* Thu Sep 10 2020 Nick Clifton <nickc@redhat.com> - 9.32-1
a87d16
- annocheck: Add tests for the AArch64 BTI and PAC security features.  (#1862478)
a87d16
- gcc plugin: Use a 4 byte offset for PowerPC start symbols, so that they do not break disassemblies.
a87d16
- gcc plugin: Correct the detection of 32-bit x86 builds.  (#1876197)
a87d16
a87d16
* Tue Sep 08 2020 Nick Clifton <nickc@redhat.com> - 9.29-1
a87d16
- gcc plugin: Detect any attempt to access the global_options array.
a87d16
- gcc plugin: Do not complain about missing pre-processor options when examining a preprocessed input file.  (#1862718)
a87d16
- Use more robust checks for AArch64 options.
a87d16
- Detect CLANG compiled assembler that is missing IBT support.
a87d16
- Improved target pointer size discovery.
a87d16
- Add support for installing clang and llvm plugins.
a87d16
- Temporary suppression of aarch64 pointer size check.  (#1860549)
a87d16
8cc16a
* Wed Jul 01 2020 Nick Clifton <nickc@redhat.com> - 9.23-1
8cc16a
- Annocheck: Do not skip tests of the short-enums notes.  (#1743635)
8cc16a
8cc16a
* Thu Apr 23 2020 Nick Clifton <nickc@redhat.com> - 9.21-1
8cc16a
- Annobin: Fall back on using the flags if the option cannot be found in cl_options.  (#1817659)
8cc16a
- Annocheck: Detect Fortran compiled programs.  (#1824393)
8cc16a
8cc16a
* Mon Apr 06 2020 Nick Clifton <nickc@redhat.com> - 9.19-1
8cc16a
- Annobin: If option name mismatch occurs, seach for the real option.  (#1817452)
8cc16a
- Annocheck: Fix a division by zero error when parsing GO binaries.  (#1818863)
8cc16a
- Annobin: Fix access to the -flto and -fsanitize flags.
8cc16a
- Annobin: Use offsets stored in gcc's cl_option structure to access the global_options array, thus removing the need to check for changes in the size of this structure.
8cc16a
- Rename gcc plugin directory to gcc-plugin.
8cc16a
- Stop annocheck from complaining about missing options when the binary has been built in a mixed environment.
8cc16a
- Improve builtby tool.
8cc16a
- Stop annocheck complaining about missing notes when the binary is not compiled by either gcc or clang.
8cc16a
- Skip the check of the ENTRY instruction for binaries not compiled by gcc or clang.  (#1809656)
8cc16a
- Fix infinite loop hangup in annocheck.
8cc16a
- Disable debuginfod support by default.
8cc16a
- Improve parsing of .comment section.
8cc16a
- Fix clang plugin to use hidden symbols.
8cc16a
- Add ability to build clang plugin (disabled by default).
8cc16a
- Annocheck: Fix error printing out the version number.
8cc16a
- Annobin: Add checks of the exact location of the examined switches.
8cc16a
- Annobin: Note when stack clash notes are generated.  (#1803173, #1828797)
8cc16a
- Annocheck: Handle multiple builder IDs in the .comment section.
8cc16a
- Add configure option to suppress building annocheck.
8cc16a
- Fix debuginfod test.
8cc16a
- Correct the build requirement for building with debuginfod support.
8cc16a
- Add debuginfod support.
8cc16a
- Add clang plugin (experimental).
8cc16a
- Have annocheck ignore notes with an end address of 0.
8cc16a
- Improve checking of gcc versions.
8cc16a
512cc7
* Fri Nov 15 2019 Nick Clifton <nickc@redhat.com> - 8.90-1
512cc7
- Do not skip positive results.
512cc7
512cc7
* Tue Nov 12 2019 Nick Clifton <nickc@redhat.com> - 8.89-2
512cc7
- Bump NVR to allow rebuild after tweaking gating tests.
512cc7
512cc7
* Tue Nov 12 2019 Nick Clifton <nickc@redhat.com> - 8.89-1
512cc7
- Update to version 8.89.  (#1766631)
512cc7
- Generate a WARN result for code compiled with instrumentation enabled.  (#1753918)
512cc7
- Replace address checks with dladdr1.
512cc7
- Use libabigail like checking to ensure variable address consistency.
512cc7
- Skip generation of global notes for hot/cold sections.
512cc7
- Generate FAIL results if -Wall or -Wformat-security are missing.
512cc7
- If notes cannot be found in the executable look for them in the debuginfo file, if available.
512cc7
- Generate a FAIL if notes are missing from the executable/debuginfo file.
512cc7
- Record and report the setting of the AArcht64 specific -mbranch-protection option.
512cc7
- Improve detection of GO binaries.
512cc7
- Add gcc version information to annobin notes.
8cc16a
- Do not complain about missing FORTIFY_SOURCE and GLIBCXX_ASSERTIONS in LTO compilations.  (#1743635)
512cc7
c714d2
* Tue Aug 06 2019 Nick Clifton <nickc@redhat.com> - 8.78-1
c714d2
- Fix a memory allocation error in the annobin plugin.  (#1737306)
c714d2
c714d2
* Mon Aug 05 2019 Nick Clifton <nickc@redhat.com> - 8.77-2
c714d2
- NVR bump to allow rebuilding against latest gcc.
c714d2
c714d2
* Mon Jun 24 2019 Nick Clifton <nickc@redhat.com> - 8.77-1
c714d2
- Another attempt at fixing the detection and reporting of missing -D_FORTIFY_SOURCE options.  (#1703500)
c714d2
c714d2
* Thu Jun 13 2019 Nick Clifton <nickc@redhat.com> - 8.76-2
c714d2
- Release bump in order to allow rebuild against latest version of gcc in RHEL-8 buildroot.  (#1720179)
c714d2
c714d2
* Tue Jun 04 2019 Nick Clifton <nickc@redhat.com> - 8.76-1
c714d2
- Report a missing -D_FORTIFY_SOUCRE option if -D_GLIBCXX_ASSERTIONS was detected.  (#1703500)
c714d2
- Do not report problems with -fstack-protection if the binary was not built by gcc or clang.  (#1703788)    
c714d2
- Add tests of clang command line options recorded in the DW_AT_producer attribute.
c714d2
c714d2
* Fri May 10 2019 Nick Clifton <nickc@redhat.com> - 8.73-2
c714d2
- Release bump in order to allow rebuild against latest version of gcc in RHEL-8 buildroot.  (#1657912)
c714d2
c714d2
* Wed Apr 24 2019 Nick Clifton <nickc@redhat.com> - 8.73-1
c714d2
- Fix test for an executable stack segment.  (#1700924)
c714d2
c714d2
* Thu Feb 28 2019 Nick Clifton <nickc@redhat.com> - 8.71-1
c714d2
- Annobin: Suppress more calls to free() which are triggering memory checker errors.  (#1684148)
c714d2
c714d2
* Fri Feb 01 2019 Nick Clifton <nickc@redhat.com> - 8.70-1
c714d2
- Add section flag matching ability to section size tool.
c714d2
c714d2
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.69-7
c714d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c714d2
c714d2
* Tue Jan 29 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-6
c714d2
- Use 'with' for rich dependency on gcc
c714d2
c714d2
* Tue Jan 29 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-5
c714d2
- Really fix rhbz#1607430.
c714d2
c714d2
* Mon Jan 28 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-4
c714d2
- Rebuilt with annotations enabled
c714d2
c714d2
* Mon Jan 28 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-3
c714d2
- Fix rpm query for gcc version.
c714d2
c714d2
* Mon Jan 28 2019 Nick Clifton <nickc@redhat.com> - 8.69-2
c714d2
- Add an exact requirement on the major version of gcc. (#1607430)
c714d2
c714d2
* Thu Jan 24 2019 Nick Clifton <nickc@redhat.com> - 8.69-1
c714d2
- Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9.
c714d2
- Annocheck: Add a note displaying tool.
c714d2
c714d2
* Wed Jan 23 2019 Nick Clifton <nickc@redhat.com> - 8.68-1
c714d2
- Annocheck: Skip checks for -D_FORTIFY_SOURCE and -D_GLIBCXX_ASSERTIONS if there is no compiler generated code in the binary.
c714d2
c714d2
* Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 8.67-3
c714d2
- Rebuilt with annotations enabled
c714d2
c714d2
* Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 8.67-2
c714d2
- Rebuilt for GCC 9
c714d2
c714d2
* Thu Jan 17 2019 Nick Clifton <nickc@redhat.com> - 8.67-1
c714d2
- Annocheck: Only skip specific checks for specific symbols.  (#1666823)
c714d2
- Annobin: Record the setting of the -fomit-frame-pointer option.  (#1657912)
c714d2
c714d2
* Wed Jan 02 2019 Nick Clifton <nickc@redhat.com> - 8.66-1
c714d2
- Annocheck: Do not ignore -Og when checking to see if an optimization level has been set.  (#1624162)
c714d2
c714d2
* Tue Dec 11 2018 Nick Clifton <nickc@redhat.com> - 8.65-1
c714d2
- Annobin: Fix handling of multiple .text.unlikely sections.
c714d2
5e2b5d
* Fri Nov 30 2018 Nick Clifton <nickc@redhat.com> - 8.64-1
5e2b5d
- Annocheck: Skip gaps in PPC64 executables covered by start_bcax_ symbols.  (#1630564)
5e2b5d
5e2b5d
* Mon Nov 26 2018 Nick Clifton <nickc@redhat.com> - 8.63-1
5e2b5d
- Annocheck: Disable ENDBR test for shared libraries.  (#1652925)
5e2b5d
5e2b5d
* Mon Nov 26 2018 Nick Clifton <nickc@redhat.com> - 8.62-1
5e2b5d
- Annocheck: Add test for ENDBR instruction at entry address of x86/x86_64 executables.  (#1652925)
5e2b5d
5e2b5d
* Tue Nov 20 2018 David Cantrell <dcantrell@redhat.com> - 8.61-2
5e2b5d
- Adjust how the gcc_vr macro is set.
5e2b5d
5e2b5d
* Mon Nov 19 2018 Nick Clifton <nickc@redhat.com> - 8.61-1
5e2b5d
- Fix building with gcc version 4.
5e2b5d
5e2b5d
* Tue Nov 13 2018 Nick Clifton <nickc@redhat.com> - 8.60-1
5e2b5d
- Skip -Wl,-z,now and -Wl,-z,relro checks for non-gcc produced binaries.  (#1624421)
5e2b5d
5e2b5d
* Mon Nov 05 2018 Nick Clifton <nickc@redhat.com> - 8.59-1
5e2b5d
- Ensure GNU Property notes are 8-byte aligned in x86_64 binaries.  (#1645817)
5e2b5d
5e2b5d
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.58-1
5e2b5d
- Skip PPC64 linker stubs created in the middle of text sections (again). (#1630640)
5e2b5d
5e2b5d
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.57-1
5e2b5d
- Suppress free of invalid pointer. (#1638371)
5e2b5d
5e2b5d
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.56-1
5e2b5d
- Skip PPC64 linker stubs created in the middle of text sections. (#1630640)
5e2b5d
5e2b5d
* Tue Oct 16 2018 Nick Clifton <nickc@redhat.com> - 8.55-1
5e2b5d
- Reset the (PPC64) section start symbol to 0 if its section is empty.  (#1638251)
5e2b5d
5e2b5d
* Thu Oct 11 2018 Nick Clifton <nickc@redhat.com> - 8.53-1
5e2b5d
- Also skip virtual thinks created by G++.  (#1630619)
5e2b5d
5e2b5d
* Wed Oct 10 2018 Nick Clifton <nickc@redhat.com> - 8.52-1
5e2b5d
- Use uppercase for all fail/mayb/pass results.  (#1637706)
5e2b5d
5e2b5d
* Wed Oct 10 2018 Nick Clifton <nickc@redhat.com> - 8.51-1
5e2b5d
- Generate notes for unlikely sections.  (#1630620)
5e2b5d
5e2b5d
* Mon Oct 08 2018 Nick Clifton <nickc@redhat.com> - 8.50-1
5e2b5d
- Fix edge case computing section names for end symbols.  (#1637039)
5e2b5d
5e2b5d
* Mon Oct 08 2018 Nick Clifton <nickc@redhat.com> - 8.49-1
5e2b5d
- Skip dynamic checks for binaries without a dynamic segment.  (#1636606)
5e2b5d
5e2b5d
* Fri Oct 05 2018 Nick Clifton <nickc@redhat.com> - 8.48-1
5e2b5d
- Delay generating attach_to_group directives until the end of the compilation.  (#1636265)
5e2b5d
5e2b5d
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.47-1
5e2b5d
- Fix bug introduced in previous delta which would trigger a seg-fault when scanning for gaps.
5e2b5d
5e2b5d
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.46-1
5e2b5d
- Annobin:   Fix section name selection for startup sections.
5e2b5d
- Annocheck: Improve gap skipping heuristics.   (#1630574)
5e2b5d
5e2b5d
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.45-1
5e2b5d
- Fix function section support (again).   (#1630574)
5e2b5d
5e2b5d
* Fri Sep 28 2018 Nick Clifton <nickc@redhat.com> - 8.44-1
5e2b5d
- Skip compiler option checks for non-GNU producers.  (#1633749)
5e2b5d
5e2b5d
* Wed Sep 26 2018 Nick Clifton <nickc@redhat.com> - 8.43-1
5e2b5d
- Fix function section support (again).   (#1630574)
5e2b5d
5e2b5d
* Tue Sep 25 2018 Nick Clifton <nickc@redhat.com> - 8.42-1
5e2b5d
- Ignore ppc64le notes where start = end + 2.  (#1632259)
5e2b5d
5e2b5d
* Tue Sep 25 2018 Nick Clifton <nickc@redhat.com> - 8.41-1
5e2b5d
- Make annocheck ignore symbols suffixed with ".end".  (#1639618)
5e2b5d
5e2b5d
* Mon Sep 24 2018 Nick Clifton <nickc@redhat.com> - 8.40-1
5e2b5d
- Reinstate building annobin with annobin enabled.  (#1630550)
5e2b5d
5e2b5d
* Mon Sep 24 2018 Nick Clifton <nickc@redhat.com> - 8.39-2
5e2b5d
- Fix gating test.  (#1625683)
5e2b5d
5e2b5d
* Fri Sep 21 2018 Nick Clifton <nickc@redhat.com> - 8.39-1
5e2b5d
- Tweak tests.
5e2b5d
5e2b5d
* Fri Sep 21 2018 Nick Clifton <nickc@redhat.com> - 8.38-1
5e2b5d
- Generate notes and groups for .text.hot and .text.unlikely sections.
5e2b5d
- When -ffunction-sections is active, put notes for startup sections into .text.startup.foo rather than .text.foo.
5e2b5d
- Similarly put exit section notes into .text.exit.foo.  (#1630574)
5e2b5d
- 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.
5e2b5d
5e2b5d
* Wed Sep 19 2018 Nick Clifton <nickc@redhat.com> - 8.37-1
5e2b5d
- Make the --skip-* options skip all messages about the specified test.
5e2b5d
- Add gating tests.   (#1625683)
5e2b5d
5e2b5d
* Tue Sep 18 2018 Nick Clifton <nickc@redhat.com> - 8.36-1
5e2b5d
- Improve error message when an ET_EXEC binary is detected.
5e2b5d
5e2b5d
* Mon Sep 17 2018 Nick Clifton <nickc@redhat.com> - 8.35-1
5e2b5d
- Skip failures for PIC vs PIE.  (#1629698)
5e2b5d
5e2b5d
* Mon Sep 17 2018 Nick Clifton <nickc@redhat.com> - 8.34-1
5e2b5d
- Ensure 4 byte alignment of note sub-sections.  (#1629671)
5e2b5d
5e2b5d
* Wed Sep 12 2018 Nick Clifton <nickc@redhat.com> - 8.33-1
5e2b5d
- Add timing tool to report on speed of the checks.
5e2b5d
- Add check for conflicting use of the -fshort-enum option.
5e2b5d
- Add check of the GNU Property notes.
5e2b5d
- Skip check for -O2 if compiled with -Og.  (#1624162)
5e2b5d
5e2b5d
* Mon Sep 03 2018 Nick Clifton <nickc@redhat.com> - 8.32-1
5e2b5d
- Add test for ET_EXEC binaries.  (#1625627)
5e2b5d
- Document --report-unknown option.
5e2b5d
5e2b5d
* Thu Aug 30 2018 Nick Clifton <nickc@redhat.com> - 8.31-1
5e2b5d
- Fix bug in hardened tool which would skip gcc compiled files if the notes were too small.
5e2b5d
- Fix bugs in section-size tool.
5e2b5d
- Fix bug in built-by tool.
5e2b5d
5e2b5d
* Wed Aug 29 2018 Nick Clifton <nickc@redhat.com> - 8.30-1
5e2b5d
- Generate notes for comdat sections. (#1619267)
5e2b5d
5e2b5d
* Thu Aug 23 2018 Nick Clifton <nickc@redhat.com> - 8.29-1
5e2b5d
- Add more names to the gap skip list. (#1619267)
5e2b5d
5e2b5d
* Thu Aug 23 2018 Nick Clifton <nickc@redhat.com> - 8.28-1
5e2b5d
- Skip gaps covered by _x86.get_pc_thunk and _savegpr symbols. (#1619267)
5e2b5d
- Merge ranges where one is wholly covered by another.
5e2b5d
5e2b5d
* Wed Aug 22 2018 Nick Clifton <nickc@redhat.com> - 8.27-1
5e2b5d
- Skip gaps at the end of functions. (#1619267)
5e2b5d
5e2b5d
* Tue Aug 21 2018 Nick Clifton <nickc@redhat.com> - 8.26-1
5e2b5d
- Fix thinko in ppc64 gap detection code. (#1619267)
5e2b5d
5e2b5d
* Mon Aug 20 2018 Nick Clifton <nickc@redhat.com> - 8.25-1
5e2b5d
- Skip gaps at the end of the .text section in ppc64 binaries. (#1619267)
5e2b5d
5e2b5d
* Fri Aug 17 2018 Nick Clifton <nickc@redhat.com> - 8.24-1
5e2b5d
- Skip checks in stack_chk_local_fail.c.  (#1618660)
5e2b5d
- Treat gaps as FAIL results rather than MAYBE.
5e2b5d
- Skip checks in __stack_chk_local_fail.
5e2b5d
- Reduce version check to gcc major version number only.  Skip compiler option checks if binary not built with gcc.  (#1603089)
5e2b5d
- Fix bug in annobin plugin.  Add --section-size=NAME option to annocheck.
5e2b5d
5e2b5d
* Thu Aug 02 2018 Nick Clifton <nickc@redhat.com> - 8.20-1
5e2b5d
- Correct name of man page for run-on-binaries-in script.  (#1611155)
5e2b5d
5e2b5d
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 8.19-3
5e2b5d
- Rebuild with fixed binutils
5e2b5d
5e2b5d
* Sat Jul 28 2018 Troy Dawson <tdawson@redhat.com> - 8.19-2
5e2b5d
- Rebuild for gcc 8.2.1
5e2b5d
5e2b5d
* Wed Jul 25 2018 Nick Clifton <nickc@redhat.com> - 8.19-1
5e2b5d
- Allow $ORIGN to be at the start of entries in DT_RPATH and DT_RUNPATH.
5e2b5d
5e2b5d
* Mon Jul 23 2018 Nick Clifton <nickc@redhat.com> - 8.18-1
5e2b5d
- Add support for big endian targets.
5e2b5d
5e2b5d
* Mon Jul 23 2018 Nick Clifton <nickc@redhat.com> - 8.17-1
5e2b5d
- Count passes and failures on a per-component basis and report gaps.
5e2b5d
5e2b5d
* Fri Jul 20 2018 Nick Clifton <nickc@redhat.com> - 8.16-1
5e2b5d
- Use our own copy of the targetm.asm_out.function_section() function.  (#159861 comment#17)
5e2b5d
5e2b5d
* Fri Jul 20 2018 Nick Clifton <nickc@redhat.com> - 8.15-1
5e2b5d
- Generate grouped note section name all the time.  (#159861 comment#16)
5e2b5d
5e2b5d
* Thu Jul 19 2018 Nick Clifton <nickc@redhat.com> - 8.14-1
5e2b5d
- Fix section conflict problem.  (#1603071)
5e2b5d
5e2b5d
* Wed Jul 18 2018 Nick Clifton <nickc@redhat.com> - 8.13-1
5e2b5d
- Fix for building with gcc version 4.
5e2b5d
- Fix symbol placement in functions with local assembler.
5e2b5d
5e2b5d
* Tue Jul 17 2018 Nick Clifton <nickc@redhat.com> - 8.12-1
5e2b5d
- Fix assertions in rnage checking code.  Add detection of -U options.
5e2b5d
5e2b5d
* Tue Jul 17 2018 Nick Clifton <nickc@redhat.com> - 8.11-1
5e2b5d
- Handle function sections properly.  Handle .text.startup and .text.unlikely sections.  Improve gap detection and reporting.  (#1601055)
5e2b5d
5e2b5d
* Thu Jul 12 2018 Nick Clifton <nickc@redhat.com> - 8.10-1
5e2b5d
- Fix construction of absolute versions of --dwarf-dir and --debug-rpm options.
5e2b5d
5e2b5d
* Tue Jul 10 2018 Nick Clifton <nickc@redhat.com> - 8.9-1
5e2b5d
- Fix buffer overrun when very long symbol names are encountered.
5e2b5d
5e2b5d
* Tue Jul 10 2018 Nick Clifton <nickc@redhat.com> - 8.8-1
5e2b5d
- Do not force the generation of function notes when -ffunction-sections is active.  (#1598961)
5e2b5d
5e2b5d
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.7-1
5e2b5d
- Skip the .annobin_ prfix when reporting symbols.  (#1599315)
5e2b5d
5e2b5d
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.6-1
5e2b5d
- Use the assembler (c++ mangled) version of function names when switching sections.  (#1598579)
5e2b5d
5e2b5d
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.5-1
5e2b5d
- Do not call function_section.  (#1598961)
5e2b5d
5e2b5d
* Fri Jul 06 2018 Nick Clifton <nickc@redhat.com> - 8.4-1
5e2b5d
- Ignore cross-section gaps.  (#1598551)
5e2b5d
5e2b5d
* Thu Jul 05 2018 Nick Clifton <nickc@redhat.com> - 8.3-1
5e2b5d
- Do not skip empty range notes in object files.  (#1598361)
5e2b5d
5e2b5d
* Mon Jul 02 2018 Nick Clifton <nickc@redhat.com> - 8.2-1
5e2b5d
- Create the start symbol at the start of the function and the end symbol at the end.  (#1596823)
5e2b5d
5e2b5d
* Mon Jul 02 2018 Nick Clifton <nickc@redhat.com> - 8.1-1
5e2b5d
- Fix --debug-rpm when used inside a directory.
5e2b5d
5e2b5d
* Thu Jun 28 2018 Nick Clifton <nickc@redhat.com> - 8.0-1
5e2b5d
- Use a prefix for all annobin generated symbols, and make them hidden.
5e2b5d
- Only generate weak symbol definitions for linkonce sections.
5e2b5d
5e2b5d
* Wed Jun 27 2018 Nick Clifton <nickc@redhat.com> - 7.1-1
5e2b5d
- Skip some checks for relocatable object files, and dynamic objects.
5e2b5d
- Stop bogus complaints about stackrealignment not being enabled.
5e2b5d
5e2b5d
* Mon Jun 25 2018 Nick Clifton <nickc@redhat.com> - 7.0-1
5e2b5d
- Add -debug-rpm= option to annocheck.
5e2b5d
- Only use a 2 byte offset for the initial symbol on PowerPC.
5e2b5d
5e2b5d
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.6-1
5e2b5d
- Use --dwarf-path when looking for build-id based debuginfo files.
5e2b5d
5e2b5d
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.5-1
5e2b5d
- Fix premature closing of dwarf handle.
5e2b5d
5e2b5d
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.4-1
5e2b5d
- Fix scoping bug computing the name of a separate debuginfo file.
5e2b5d
5e2b5d
* Tue Jun 19 2018 Nick Clifton <nickc@redhat.com> - 6.3-1
5e2b5d
- Fix file descriptor leak.
5e2b5d
5e2b5d
* Tue Jun 19 2018 Nick Clifton <nickc@redhat.com> - 6.2-1
5e2b5d
- Add command line options to annocheck to disable individual tests.
5e2b5d
5e2b5d
* Fri Jun 08 2018 Nick Clifton <nickc@redhat.com> - 6.1-1
5e2b5d
- Remove C99-ism from annocheck sources.
5e2b5d
5e2b5d
* Wed Jun 06 2018 Nick Clifton <nickc@redhat.com> - 6.0-1
5e2b5d
- Add the annocheck program.
5e2b5d
5e2b5d
* Fri Jun 01 2018 Nick Clifton <nickc@redhat.com> - 5.11-1
5e2b5d
- Do not use the SHF_GNU_BUILD_NOTE section flag.
5e2b5d
5e2b5d
* Thu May 31 2018 Nick Clifton <nickc@redhat.com> - 5.10-1
5e2b5d
- Remove .sh extension from shell scripts.
5e2b5d
5e2b5d
* Wed May 30 2018 Nick Clifton <nickc@redhat.com> - 5.9-1
5e2b5d
- Record the setting of the -mstackrealign option for i686 binaries.
5e2b5d
5e2b5d
* Mon May 14 2018 Nick Clifton <nickc@redhat.com> - 5.8-1
5e2b5d
- Hide the annobin start of file symbol.
5e2b5d
5e2b5d
* Tue May 08 2018 Nick Clifton <nickc@redhat.com> - 5.7-1
5e2b5d
- Fix script bug in hardended.sh.  (Thanks to: Stefan Sørensen <stefan.sorensen@spectralink.com>)
5e2b5d
5e2b5d
* Thu May 03 2018 Nick Clifton <nickc@redhat.com> - 5.6-3
5e2b5d
- Version number bump so that the plugin can be rebuilt with the latest version of GCC.
5e2b5d
5e2b5d
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-2
5e2b5d
- Rebuild the plugin with the newly created plugin enabled.  (#1573082)
5e2b5d
5e2b5d
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-1
5e2b5d
- Skip the isa_flags check in the ABI test because the crt[in].o files are compiled with different flags from the test files.
5e2b5d
5e2b5d
* Fri Apr 20 2018 Nick Clifton <nickc@redhat.com> - 5.3-1
5e2b5d
- Add manual pages for annobin and the scripts.
5e2b5d
5e2b5d
* Tue Apr 03 2018 Nick Clifton <nickc@redhat.com> - 5.2-1
5e2b5d
- Do not record a stack protection setting of -1.  (#1563141)
5e2b5d
5e2b5d
* Tue Mar 20 2018 Nick Clifton <nickc@redhat.com> - 5.1-1
5e2b5d
- Do not complain about a dwarf_version value of -1.  (#1557511)
5e2b5d
5e2b5d
* Thu Mar 15 2018 Nick Clifton <nickc@redhat.com> - 5.0-1
5e2b5d
- Bias file start symbols by 2 in order to avoid them confused with function symbols.  (#1554332)
5e2b5d
- Version jump is to sync the version number with the annobin plugins internal version number.
5e2b5d
5e2b5d
* Mon Mar 12 2018 Nick Clifton <nickc@redhat.com> - 3.6-1
5e2b5d
- Add --ignore-gaps option to check-abi.sh script.
5e2b5d
- Use this option in the abi-test check.
5e2b5d
- Tweak hardening test to skip pic and stack protection checks.
5e2b5d
5e2b5d
* Tue Mar 06 2018 Nick Clifton <nickc@redhat.com> - 3.5-1
5e2b5d
- Handle functions with specific assembler names.  (#1552018)
5e2b5d
5e2b5d
* Fri Feb 23 2018 Nick Clifton <nickc@redhat.com> - 3.4-2
5e2b5d
- Add an explicit requirement on the version of gcc used to built the plugin.  (#1547260)
5e2b5d
5e2b5d
* Fri Feb 09 2018 Nick Clifton <nickc@redhat.com> - 3.4-1
5e2b5d
- Change type and size of symbols to STT_NOTYPE/0 so that they do not confuse GDB.  (#1539664)
5e2b5d
- Add run-on-binaries-in.sh script to allow the other scripts to be run over a repository.
5e2b5d
5e2b5d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
5e2b5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5e2b5d
5e2b5d
* Tue Jan 30 2018 Nick Clifton <nickc@redhat.com> - 3.3-1
5e2b5d
- Rebase on 3.3 release, which adds support for recording -mcet and -fcf-protection.
5e2b5d
5e2b5d
* Mon Jan 29 2018 Florian Weimer <fweimer@redhat.com> - 3.2-3
5e2b5d
- Rebuild for GCC 8
5e2b5d
5e2b5d
* Fri Jan 26 2018 Nick Clifton <nickc@redhat.com> - 3.2-2
5e2b5d
- Fix the installation of the annobin.info file.
5e2b5d
5e2b5d
* Fri Jan 26 2018 Nick Clifton <nickc@redhat.com> - 3.2-1
5e2b5d
- Rebase on 3.2 release, which now contains documentation!
5e2b5d
5e2b5d
* Fri Jan 26 2018 Richard W.M. Jones <rjones@redhat.com> - 3.1-3
5e2b5d
- Rebuild against GCC 7.3.1.
5e2b5d
5e2b5d
* Tue Jan 16 2018 Nick Clifton <nickc@redhat.com> - 3.1-2
5e2b5d
- Add --with-gcc-plugin-dir option to the configure command line.
5e2b5d
5e2b5d
* Thu Jan 04 2018 Nick Clifton <nickc@redhat.com> - 3.1-1
5e2b5d
- Rebase on version 3.1 sources.
5e2b5d
5e2b5d
* Mon Dec 11 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-5
5e2b5d
- Do not generate notes when there is no output file.  (#1523875)
5e2b5d
5e2b5d
* Fri Dec 08 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-4
5e2b5d
- Invent an input filename when reading from a pipe.  (#1523401)
5e2b5d
5e2b5d
* Thu Nov 30 2017 Florian Weimer <fweimer@redhat.com> - 2.5.1-3
5e2b5d
- Use DECL_ASSEMBLER_NAME for symbol references (#1519165)
5e2b5d
5e2b5d
* Tue Oct 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.5.1-2
5e2b5d
- Cleanups in spec
5e2b5d
5e2b5d
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-1
5e2b5d
- Touch the auto-generated files in order to stop them from being regenerated.
5e2b5d
5e2b5d
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5-2
5e2b5d
- Stop the plugin complaining about compiler datestamp mismatches.
5e2b5d
5e2b5d
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.4-1
5e2b5d
- Tweak tests so that they will run on older machines.
5e2b5d
5e2b5d
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.3-1
5e2b5d
- Add annobin-tests subpackage containing some preliminary tests.
5e2b5d
- Remove link-time test for unsuported targets.
5e2b5d
5e2b5d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
5e2b5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5e2b5d
5e2b5d
* Mon Jul 31 2017 Florian Weimer <fweimer@redhat.com> - 2.0-2
5e2b5d
- Rebuild with binutils fix for ppc64le (#1475636)
5e2b5d
5e2b5d
* Wed Jun 28 2017 Nick Clifton <nickc@redhat.com> - 2.0-1
5e2b5d
- Fixes for problems reported by the package submission review:
5e2b5d
   * Add %%license entry to %%file section.
5e2b5d
   * Update License and BuildRequires tags.
5e2b5d
   * Add Requires tag.
5e2b5d
   * Remove %%clean.
5e2b5d
   * Add %%check.
5e2b5d
   * Clean up the %%changelog.
5e2b5d
- Update to use version 2 of the specification and sources.
5e2b5d
5e2b5d
* Thu May 11 2017 Nick Clifton <nickc@redhat.com> - 1.0-1
5e2b5d
- Initial submission.