Blame SPECS/annobin.spec

7894ff
7894ff
%define __python /opt/rh/gcc-toolset-9/root/usr/bin/python3
7894ff
%{?scl:%scl_package annobin}
7894ff
7894ff
Name:    %{?scl_prefix}annobin
7894ff
Summary: Annotate and examine compiled binary files
375f6b
Version: 10.23
375f6b
Release: 1%{?dist}
7894ff
License: GPLv3+
7894ff
# Maintainer: nickc@redhat.com
7894ff
# Web Page: https://sourceware.org/annobin/
7894ff
# Watermark Protocol: https://fedoraproject.org/wiki/Toolchain/Watermark
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
375f6b
# Use "--with tests" to enable the testsuite.
375f6b
%bcond_with tests
7894ff
7894ff
# Use "--without annocheck" to disable the installation of the annocheck program.
7894ff
%bcond_without annocheck
7894ff
7894ff
# Use "--with debuginfod" to force support for debuginfod to be compiled into
7894ff
# the annocheck program.  By default the configure script will check for
7894ff
# availablilty at build time, but this might not match the run time situation.
7894ff
# FIXME: Add a --without debuginfod option to forcefully disable the configure
7894ff
# time check for debuginfod support.
7894ff
%bcond_with debuginfod
7894ff
7894ff
# Use "--with clangplugin" to enable the building of the annobin plugin for Clang.
7894ff
%bcond_with clangplugin
7894ff
7894ff
# Use "--without gccplugin" to disable the building of the annobin plugin for GCC.
7894ff
%bcond_without gccplugin
7894ff
7894ff
# Use "--with llvmplugin" to enable the building of the annobin plugin for LLVM.
7894ff
%bcond_with llvmplugin
7894ff
7894ff
# Set this to zero to disable the requirement for a specific version of gcc.
7894ff
# This should only be needed if there is some kind of problem with the version
7894ff
# checking logic or when building on RHEL-7 or earlier.
7894ff
%global with_hard_gcc_version_requirement 1
7894ff
7894ff
%bcond_with plugin_rebuild
7894ff
# Allow the building of annobin without using annobin itself.
7894ff
# This is because if we are bootstrapping a new build environment we can have
7894ff
# a new version of gcc installed, but without a new of annobin installed.
7894ff
# (i.e. we are building the new version of annobin to go with the new version
7894ff
# of gcc).  If the *old* annobin plugin is used whilst building this new
7894ff
# version, the old plugin will complain that version of gcc for which it
7894ff
# was built is different from the version of gcc that is now being used, and
7894ff
# then it will abort.
7894ff
#
7894ff
# The default was to use plugin during rebuilds (cf BZ 1630550) but this has
7894ff
# been changed because of the need to be able to rebuild annobin when a change
7894ff
# to gcc breaks the version installed into the buildroot.
7894ff
%if %{without plugin_rebuild}
7894ff
%undefine _annotated_build
7894ff
%endif
7894ff
7894ff
%{!?llvm_version:%global llvm_version 11.1.0}
7894ff
%{!?llvm_plugin_dir:%global llvm_plugin_dir %{_libdir}/llvm/%{llvm_version}}
7894ff
%{!?clang_plugin_dir:%global clang_plugin_dir %{_libdir}/clang/%{llvm_version}}
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
# Source:  https://nickc.fedorapeople.org/annobin-%%{version}.tar.xz
7894ff
Source:  annobin-%{version}.tar.xz
7894ff
# For the latest sources use:  git clone git://sourceware.org/git/annobin.git
7894ff
7894ff
# Insert patches here, if needed.
375f6b
# Patch01: annobin.unicode.patch
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%{?scl:Requires:%scl_runtime}
7894ff
%{?scl:BuildRequires:%scl_runtime}
7894ff
%{?scl:BuildRequires:scl-utils-build}
7894ff
# We need the gcc-toolset-11 version of gcc to build annobin, as otherwise the versions will not match.
7894ff
%{?scl:Requires:%scl_require_package %{scl} gcc}
7894ff
7894ff
BuildRequires: %{?scl_prefix}gcc
7894ff
7894ff
%define gcc_for_annobin %{?_scl_root}/usr/bin/gcc
7894ff
%define gxx_for_annobin %{?_scl_root}/usr/bin/g++
7894ff
7894ff
%if %{with gccplugin}
7894ff
Requires: annobin-plugin-gcc
7894ff
7894ff
# [Stolen from gcc-python-plugin]
7894ff
# GCC will only load plugins that were built against exactly that build of GCC
7894ff
# We thus need to embed the exact GCC version as a requirement within the
7894ff
# metadata.
7894ff
#
7894ff
# Define "gcc_vr", a variable to hold the VERSION-RELEASE string for the gcc
7894ff
# we are being built against.
7894ff
#
7894ff
# Unfortunately, we can't simply run:
7894ff
#   rpm -q --qf="%%{version}-%%{release}"
7894ff
# to determine this, as there's no guarantee of a sane rpm database within
7894ff
# the chroots created by our build system
7894ff
#
7894ff
# So we instead query the version from gcc's output.
7894ff
#
7894ff
# gcc.spec has:
7894ff
#   Version: %%{gcc_version}
7894ff
#   Release: %%{gcc_release}%%{?dist}
7894ff
#   ...snip...
7894ff
#   echo 'Red Hat %%{version}-%%{gcc_release}' > gcc/DEV-PHASE
7894ff
#
7894ff
# So, given this output:
7894ff
#
7894ff
#   $ gcc --version
7894ff
#   gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)
7894ff
#   Copyright (C) 2011 Free Software Foundation, Inc.
7894ff
#   This is free software; see the source for copying conditions.  There is NO
7894ff
#   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7894ff
#
7894ff
# we can scrape out the "4.6.1" from the version line.
7894ff
#
7894ff
# The following implements the above:
7894ff
7894ff
%global gcc_vr %(%gcc_for_annobin --version | head -n 1 | sed -e 's|.*(Red\ Hat\ ||g' -e 's|)$||g')
7894ff
7894ff
# We need the major version of gcc.
7894ff
%global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".")
7894ff
%global gcc_next  %(v="%{gcc_major}"; echo $((++v)))
7894ff
7894ff
# Needed when building the srpm.
7894ff
%if 0%{?gcc_major} == 0
7894ff
%global gcc_major 0
7894ff
%endif
7894ff
7894ff
# This is a gcc plugin, hence gcc is required.
7894ff
%if %{with_hard_gcc_version_requirement}
7894ff
# BZ 1607430 - There is an exact requirement on the major version of gcc.
7894ff
Requires: (%{?scl_prefix}gcc >= %{gcc_major} with %{?scl_prefix}gcc < %{gcc_next})
7894ff
%else
7894ff
Requires: %{?scl_prefix}gcc
7894ff
%endif
7894ff
7894ff
BuildRequires: %{?scl_prefix}gcc-plugin-devel %{?scl_prefix}gcc-c++
7894ff
7894ff
%endif
7894ff
7894ff
%if %{with llvmplugin}
7894ff
Requires: annobin-plugin-llvm
7894ff
BuildRequires: clang clang-devel llvm llvm-devel compiler-rt
7894ff
%endif
7894ff
7894ff
%if %{with clangplugin}
7894ff
Requires: annobin-plugin-clang
7894ff
BuildRequires: clang clang-devel llvm llvm-devel compiler-rt
7894ff
%endif
7894ff
7894ff
# The documentation uses pod2man...
7894ff
BuildRequires: perl-interpreter perl-podlators gawk
7894ff
7894ff
#---------------------------------------------------------------------------
7894ff
7894ff
%description
7894ff
Provides a plugin for GCC that records extra information in the files
7894ff
that it compiles.
7894ff
7894ff
Note - the plugin is automatically enabled in gcc builds via flags
7894ff
provided by the redhat-rpm-macros package.
7894ff
7894ff
%if %{with clangplugin}
7894ff
Also provides a plugin for Clang which performs a similar function.
7894ff
%endif
7894ff
7894ff
%if %{with llvmplugin}
7894ff
Also provides a plugin for LLVM which performs a similar function.
7894ff
%endif
7894ff
7894ff
#---------------------------------------------------------------------------
7894ff
7894ff
# Now that we have sub-packages for all of the plugins and for annocheck,
7894ff
# there are no executables left to go into the "annobin" rpm.  But top-level
7894ff
# packages cannot have "BuildArch: noarch" if sub-packages do have
7894ff
# architecture requirements, and rpmlint generates an error if an
7894ff
# architecture specific rpm does not contain any binaries.  So instead all of
7894ff
# the documentation has been moved into an architecture neutral sub-package,
7894ff
# and there no longer is a top level annobin rpm at all.
7894ff
7894ff
%package docs
7894ff
Summary: Documentation and shell scripts for use with annobin
7894ff
BuildArch: noarch
7894ff
# annobin renamed to annobin-doc in 9.66-1
7894ff
Provides: %{name} = %{version}-%{release}
7894ff
Obsoletes: %{name} < 9.66-1
7894ff
7894ff
%description docs
7894ff
Provides the documentation files and example shell scripts for use with annobin.
7894ff
7894ff
#----------------------------------------------------------------------------
7894ff
%if %{with tests}
7894ff
7894ff
%package tests
7894ff
Summary: Test scripts and binaries for checking the behaviour and output of the annobin plugin
7894ff
Requires: %{name}-docs = %{version}-%{release}
7894ff
7894ff
%description tests
7894ff
Provides a means to test the generation of annotated binaries and the parsing
7894ff
of the resulting files.
7894ff
7894ff
%if %{with debuginfod}
7894ff
BuildRequires: elfutils-debuginfod-client-devel
7894ff
%endif
7894ff
7894ff
%endif
7894ff
7894ff
#----------------------------------------------------------------------------
7894ff
%if %{with annocheck}
7894ff
7894ff
%package annocheck
7894ff
Summary: A tool for checking the security hardening status of binaries
7894ff
7894ff
BuildRequires: %{?scl_prefix}gcc elfutils elfutils-devel elfutils-libelf-devel rpm-devel %{?scl_prefix}binutils-devel
7894ff
%if %{with debuginfod}
7894ff
BuildRequires: elfutils-debuginfod-client-devel make
7894ff
%endif
7894ff
7894ff
Requires: %{name}-docs = %{version}-%{release}
7894ff
7894ff
%description annocheck
7894ff
Installs the annocheck program which uses the notes generated by annobin to
7894ff
check that the specified files were compiled with the correct security
7894ff
hardening options.
7894ff
7894ff
%endif
7894ff
7894ff
#----------------------------------------------------------------------------
7894ff
%if %{with gccplugin}
7894ff
7894ff
%package plugin-gcc
7894ff
Summary: annobin gcc plugin
7894ff
7894ff
Requires: %{name}-docs = %{version}-%{release}
7894ff
Conflicts: annobin <= 9.60-1
7894ff
7894ff
%description plugin-gcc
7894ff
Installs an annobin plugin that can be used by gcc.
7894ff
7894ff
%endif
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
%if %{with llvmplugin}
7894ff
7894ff
%package plugin-llvm
7894ff
Summary: annobin llvm plugin
7894ff
7894ff
Requires: %{name}-docs = %{version}-%{release}
7894ff
Conflicts: annobin <= 9.60-1
7894ff
7894ff
%description plugin-llvm
7894ff
Installs an annobin plugin that can be used by llvm tools.
7894ff
7894ff
%endif
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
%if %{with clangplugin}
7894ff
7894ff
%package plugin-clang
7894ff
Summary: annobin clang plugin
7894ff
7894ff
Requires: %{name}-docs = %{version}-%{release}
7894ff
Conflicts: annobin <= 9.60-1
7894ff
7894ff
%description plugin-clang
7894ff
Installs an annobin plugin that can be used by clang.
7894ff
7894ff
%endif
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%global ANNOBIN_GCC_PLUGIN_DIR %(%gcc_for_annobin --print-file-name=plugin)
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%prep
7894ff
if [ -z "%{gcc_vr}" ]; then
7894ff
    echo "*** Missing gcc_vr spec file macro, cannot continue." >&2
7894ff
    exit 1
7894ff
fi
7894ff
7894ff
echo "Requires: (%{?scl_prefix}gcc >= %{gcc_major} and %{?scl_prefix}gcc < %{gcc_next})"
7894ff
7894ff
# Cannot use autosetup as it untar's the sources into annobin-<version>
7894ff
# but then tries to change directory into <scl-prefix>-annobin-<version>.
7894ff
# %%autosetup -p1
7894ff
%setup -q -n annobin-%{version}
375f6b
# %patch01 -p1
375f6b
# chmod +x tests/unicode-test
7894ff
7894ff
# The plugin has to be configured with the same arcane configure
7894ff
# scripts used by gcc.  Hence we must not allow the Fedora build
7894ff
# system to regenerate any of the configure files.
7894ff
touch aclocal.m4 gcc-plugin/config.h.in
7894ff
touch configure */configure Makefile.in */Makefile.in
7894ff
# Similarly we do not want to rebuild the documentation.
7894ff
touch doc/annobin.info
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%build
7894ff
7894ff
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -I%{?_scl_root}/usr/include"
7894ff
export LDFLAGS="$LD_FLAGS $RPM_LD_FLAGS -L%{?_scl_root}/usr/lib64 -L%{?_scl_root}/usr/lib"
7894ff
7894ff
CONFIG_ARGS="--quiet"
7894ff
7894ff
%if %{with debuginfod}
7894ff
CONFIG_ARGS="$CONFIG_ARGS --with-debuginfod"
7894ff
%else
7894ff
# Note - we explicitly disable debuginfod support if it was not configured.
7894ff
# This is because by default annobin's configue script will assume --with-debuginfod=auto
7894ff
# and then run a build time test to see if debugingfod is available.  It
7894ff
# may well be, but the build time environment may not match the run time
7894ff
# environment, and the rpm will not have a Requirement on the debuginfod
7894ff
# client.
7894ff
CONFIG_ARGS="$CONFIG_ARGS --without-debuginfod"
7894ff
%endif
7894ff
7894ff
%if %{with clangplugin}
7894ff
CONFIG_ARGS="$CONFIG_ARGS --with-clang"
7894ff
%endif
7894ff
7894ff
%if %{without gccplugin}
7894ff
CONFIG_ARGS="$CONFIG_ARGS --without-gcc-plugin"
7894ff
%else
7894ff
CONFIG_ARGS="$CONFIG_ARGS --with-gcc-plugin-dir=%{ANNOBIN_GCC_PLUGIN_DIR}"
7894ff
%endif
7894ff
7894ff
%if %{with llvmplugin}
7894ff
CONFIG_ARGS="$CONFIG_ARGS --with-llvm"
7894ff
%endif
7894ff
7894ff
%if %{without tests}
7894ff
CONFIG_ARGS="$CONFIG_ARGS --without-test"
7894ff
%endif
7894ff
7894ff
%if %{without annocheck}
7894ff
CONFIG_ARGS="$CONFIG_ARGS --without-annocheck"
7894ff
%endif
7894ff
7894ff
%set_build_flags
7894ff
7894ff
%ifarch %{ix86} x86_64
7894ff
# FIXME: There should be a better way to do this.
7894ff
export CLANG_TARGET_OPTIONS="-fcf-protection"
7894ff
%endif
7894ff
7894ff
%configure ${CONFIG_ARGS} || cat config.log
7894ff
7894ff
%make_build
7894ff
7894ff
%if %{with plugin_rebuild}
7894ff
# Rebuild the plugin(s), this time using the plugin itself!  This
7894ff
# ensures that the plugin works, and that it contains annotations
7894ff
# of its own.
7894ff
7894ff
%if %{with gccplugin}
7894ff
cp gcc-plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp_annobin.so
7894ff
make -C gcc-plugin clean
7894ff
BUILD_FLAGS="-fplugin=%{_tmppath}/tmp_annobin.so"
7894ff
7894ff
# Disable the standard annobin plugin so that we do get conflicts.
7894ff
# Note: the "-fplugin=annobin" is here, despite the fact that it will also
7894ff
# be automatically added to the gcc command line via
7894ff
# "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" because of a bug in gcc's
7894ff
# plugin command line options handling.  GCC will issue an error saying that
7894ff
# there is no plugin called "annobin" matching the -fplugin-arg-annobin-disable
7894ff
# option, despite the fact that there patently is.
7894ff
BUILD_FLAGS="$BUILD_FLAGS -fplugin=annobin -fplugin-arg-annobin-disable"
7894ff
7894ff
# If building on RHEL7, enable the next option as the .attach_to_group
7894ff
# assembler pseudo op is not available in the assembler.
7894ff
# BUILD_FLAGS="$BUILD_FLAGS -fplugin-arg-tmp_annobin-no-attach"
7894ff
7894ff
make -C gcc-plugin CXXFLAGS="%{optflags} $BUILD_FLAGS"
7894ff
rm %{_tmppath}/tmp_annobin.so
7894ff
%endif
7894ff
7894ff
%if %{with clangplugin}
7894ff
cp clang-plugin/annobin-for-clang.so %{_tmppath}/tmp_annobin.so
7894ff
make -C clang-plugin all CXXFLAGS="%{optflags} $BUILD_FLAGS"
7894ff
%endif
7894ff
7894ff
%if %{with llvmplugin}
7894ff
cp llvm-plugin/annobin-for-llvm.so %{_tmppath}/tmp_annobin.so
7894ff
make -C llvm-plugin all CXXFLAGS="%{optflags} $BUILD_FLAGS"
7894ff
%endif
7894ff
7894ff
%endif
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%install
7894ff
# PLUGIN_INSTALL_DIR is used by the Clang and LLVM makefiles...
7894ff
%make_install PLUGIN_INSTALL_DIR=%{buildroot}/%{llvm_plugin_dir}
7894ff
7894ff
%if %{with clangplugin}
7894ff
# Move clang plugin to a seperate directory.
7894ff
mkdir -p %{buildroot}/%{clang_plugin_dir}
7894ff
mv %{buildroot}/%{llvm_plugin_dir}/annobin-for-clang.so %{buildroot}/%{clang_plugin_dir}
7894ff
%endif
7894ff
7894ff
rm -f %{buildroot}%{_infodir}/dir
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%if %{with tests}
7894ff
%check
7894ff
# With scl the tests are run with the wrong version of gcc.  Hence
7894ff
# we allow the tests to fail.
375f6b
make check GCC=%gcc_for_annobin
7894ff
if [ -f tests/test-suite.log ]; then
7894ff
    cat tests/test-suite.log
7894ff
fi
7894ff
7894ff
%if %{with clangplugin}
7894ff
# FIXME: RUN CLANG tests
7894ff
%endif
7894ff
7894ff
%if %{with llvmplugin}
7894ff
# FIXME: RUN LLVM tests
7894ff
%endif
7894ff
7894ff
%endif
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%files docs
7894ff
%license COPYING3 LICENSE
7894ff
%exclude %{_datadir}/doc/annobin-plugin/COPYING3
7894ff
%exclude %{_datadir}/doc/annobin-plugin/LICENSE
7894ff
%doc %{_datadir}/doc/annobin-plugin/annotation.proposal.txt
7894ff
%{_infodir}/annobin.info*
7894ff
%{_mandir}/man1/annobin.1*
7894ff
%{_mandir}/man1/built-by.1*
7894ff
%{_mandir}/man1/check-abi.1*
7894ff
%{_mandir}/man1/hardened.1*
7894ff
%{_mandir}/man1/run-on-binaries-in.1*
7894ff
7894ff
%if %{with llvmplugin}
7894ff
%files plugin-llvm
7894ff
%{llvm_plugin_dir}/annobin-for-llvm.so
7894ff
%endif
7894ff
7894ff
%if %{with clangplugin}
7894ff
%files plugin-clang
7894ff
%{clang_plugin_dir}/annobin-for-clang.so
7894ff
%endif
7894ff
7894ff
%if %{with gccplugin}
7894ff
%files plugin-gcc
7894ff
%{ANNOBIN_GCC_PLUGIN_DIR}
7894ff
%endif
7894ff
7894ff
%if %{with annocheck}
7894ff
%files annocheck
7894ff
%{_bindir}/annocheck
7894ff
%{_mandir}/man1/annocheck.1*
7894ff
%endif
7894ff
7894ff
#---------------------------------------------------------------------------------
7894ff
7894ff
%changelog
375f6b
* Wed Nov 10 2021 Nick Clifton <nickc@redhat.com> - 10.23-1  (#2020405)
375f6b
- Annocheck: Add a test for unicode characters in identifiers.
375f6b
- gcc-plugin: Default to link-order grouping for PPC64LE.  (#2016458)
375f6b
- Annocheck: Do not fail if a --skip-<name> option does not match a known test.
375f6b
- ldconfig-test: Skip the LTO check.
375f6b
- Annocheck: Add more glibc function names.
375f6b
- gcc-plugin: Fix attaching the .text section to the .text.group section.
375f6b
- Complain about DT_RPATH for Fedora binaries.
375f6b
- Better reporting of problems in object files.  (#2013708)
375f6b
- Add a requirement on llvm-libs for clang and llvm plugins.  (#2014573)
375f6b
- Fix configuring annocheck without gcc-plugin.
375f6b
- Annocheck: Better reporting of debuginfod problems.
375f6b
- Tests: Fix bugs in debuginfod test.
375f6b
- Annocheck: Add tests based upon recent bug fixes.
375f6b
- Annocheck: Another tweak to glibc detection code.
375f6b
- Annocheck: Fix memory corruptions when using --debug-path and when a corrupt note is found.  (#20011438)
375f6b
- Annocheck: Fix MAYB results for mixed GO/C files.
375f6b
- Annocheck: Move some messages from VERBOSE to VERBOSE2.
375f6b
- Annocheck: Scan zero-length tool notes.
375f6b
- Annocheck: Fix covscan detected flaws.
375f6b
- plugins: Add more required build options.
375f6b
- Annocheck: Fix cf-prot test to fail if the CET notes are missing.
375f6b
- Annocheck: Skip gaps in the .plt section.
375f6b
- Plugins: Add -g option when building LLVM and Clang.
375f6b
- Annocheck: Add more cases of glibc startup functions.
375f6b
- Annocheck: Fix covscan detected problems.
375f6b
- Annocheck: Add --profile=el8.
375f6b
- gcc-plugin: Conditionalize generation of branch protection note.
375f6b
- Annocheck: Ignore gaps containing NOP instructions.
375f6b
- GCC Plugin: Fix detection of running inside the LTO compiler.  (#2004917)
375f6b
- Annocheck: Do not insist on the DT_AARCH64_PAC_PLT flag being present in AArch64 binaries.
375f6b
- Annocheck: With gaps at the start/end of the .text section, check for special symbols before displaying a MAYB result.
375f6b
- Annocheck: Do not set CFLAGS/LDFLAGS when building.  Take from environment instead.
375f6b
- Annocheck: Fix exit code when tests PASS.
375f6b
- Documentation: Add node for each hardening test.
375f6b
- Documentation: Install online.
375f6b
- Annocheck: Annote FAIL and MAYB results with URL to documentation
375f6b
- Annocheck: Add --no-urls and --provide-urls options
375f6b
- Annocheck: Add --help-<tool> option.
375f6b
- Annocheck: Fix fuzzing detected failures.
375f6b
- Annocheck: Add --profile option.
375f6b
- Docs: Document --profile option and rpminspect.yaml.
375f6b
- Annocheck: Skip GO/CET checks.  Fix fuzzing detected failures.
375f6b
- LLVM Plugin: Automatically choose the correct tests to run, based upon the version of Clang installed. (#1997444)
375f6b
- Annocheck: Fix memory corruption.  (#1996963)
375f6b
- Annocheck: Fix conditionalization of AArch64's PAC+BTI detection.
375f6b
- Annocheck: Add linker generated function for ppc64le exceptions.  (#1981410)
375f6b
- LLVM Plugin: Allow checks to be selected from the command line.
375f6b
- Annocheck: Examine DW_AT_producer for -flto.    
375f6b
- Annocheck: Conditionalize detection of AArch64's PAC+BTI protection.
375f6b
- Annocheck: Add linker generated function for s390x exceptions.  (#1981410)
375f6b
- Annocheck: Generate MAYB results for gaps in notes covering the .text section.  (#1991943)
375f6b
- Annocheck: Close DWARF file descriptors once the debug info is no longer needed.  (#1981410)
375f6b
- LLVM Plugin: Update to build with Clang v13.  (Thanks to: Tom Stellard <tstellar@redhat.com>)
375f6b
- Annocheck: Fix memory corruption.  (#1988715)
375f6b
- Annocheck: Skip certain tests for kernel modules.
375f6b
375f6b
* Fri Oct 29 2021 Nick Clifton  <nickc@redhat.com> - 9.85-3
375f6b
- Default to disabling the tests as they are often run with the wrong compiler.
375f6b
375f6b
* Thu Oct 28 2021 Nick Clifton  <nickc@redhat.com> - 9.85-2
375f6b
- Annocheck: Add test for multibyte characters in symbol names.  (#2017368)
b1fddc
7894ff
* Tue Aug 10 2021 Nick Clifton  <nickc@redhat.com> - 9.85-1
7894ff
- Annocheck: Detect a missing CET note.  (#1991931)
7894ff
- Annocheck: Do not report future fails for AArch64 notes.
7894ff
- Annocheck: Warn about multiple --debug-file, --debug-rpm and --debug-dir options.
7894ff
- Annocheck: Process files in command line order.  (#1988714)
7894ff
- Annocheck: Reverse AArch64 PAC+BTI check, ie fail if they are enabled.  (#1984995)
7894ff
- Annocheck: Add another test exceptions.
7894ff
- Annocheck: Add some more test exceptions.
7894ff
- Tests: Skip glibc-notes test if the assembler does not support --generate-missing-build-notes.  (#1978573)
7894ff
- Tests: Skip objcopy test if objcopy does not support --merge-notes.
7894ff
7894ff
* Wed Jun 30 2021 Nick Clifton  <nickc@redhat.com> - 9.79-1
7894ff
- Annocheck: Fix spelling mistake in -mstack-realign failure message.  (#1977349)
7894ff
- gcc-plugin: Do not record global versions of stack protection settings in LTO mode, if not set.  (#1958954)
7894ff
- Annocheck: Remove limit on number of input files.
7894ff
- Annocheck: Conditionalize test of DF_PIE_1 flag.
7894ff
- clang/llvm plugins: Build with correct security options.
7894ff
- Annocheck: Better detection of GO compiler version.
7894ff
- Annocheck: Better support for symbolic links.
7894ff
- Annocheck: In verbose mode, report the reason for skipping specific tests.  (#1969584)
7894ff
7894ff
* Wed May 26 2021 Nick Clifton  <nickc@redhat.com> - 9.73-1
7894ff
- annocheck: Improve detection of shared libraries.  (#1958954)
7894ff
7894ff
* Tue May 25 2021 Nick Clifton  <nickc@redhat.com> - 9.72-2
7894ff
- NVR bump to rebuild against latest gcc.
7894ff
7894ff
* Thu May 13 2021 Nick Clifton  <nickc@redhat.com> - 9.72-1
7894ff
- Rebase to 9.72.  (#1957319)
7894ff
- annocheck: Accept 0 as a valid number for gcc minor versions and release numbers.
7894ff
- gcc-plugin: Add support for ARM and RISCV targets.
7894ff
- timing: do not initialise the clock if the timing tool is disabled.
7894ff
- gcc-plugin: Replace ICE messsages with verbose messages.
7894ff
- Fix the testsuite so that it can be run in parallel.
7894ff
- Annocheck: WARN if the annobin plugin was built for a newer version of the compiler than the one on which it was run.  (#1950657)
7894ff
- Obsolete annobin < 9.66-1 (bug #1949570)
7894ff
- Annocheck: Improve detection of missing GNU-stack support.
7894ff
- Correct a package rename (bug #1949570)
7894ff
- Require docs subpackage by the other ones because of a license
7894ff
- Build-requiring perl-interpreter is enough
7894ff
- Fix bz1949570
7894ff
- Fix anomolies reported by covscan.
7894ff
- Move documentation into a sub-package.
7894ff
- gcc-plugin: Use a fixed filename when running in LTO mode.
7894ff
- Annocheck: Fix detection of special function names.  (#1934189)
7894ff
- Annocheck: FAIL the deliberate use of -fno-stack-protector, but add some exceptions for glibc.  (#1923439)
7894ff
- Annocheck: Add colour to some messages.  Skip the deliberate use of -fno-stack-protector.  (#1923439)
7894ff
- Annocheck: Fix some problems with tests for missing notes.
7894ff
- Split plugins into separate sub-packages
7894ff
- Add some GO tests to annocheck.
7894ff
- Add a future fail for the presence of RPATH in the dynamic tags.
7894ff
- Add the ability to disable the warning message about -D_FORTIFY_SOURCE being missing.
7894ff
- Workaround for elflint problems with PPC compiled files.  (#1880634)
7894ff
- Fix bogus AArch64 test failures.
7894ff
- Improved testing by annocheck.  Add fixed format message mode.
7894ff
- Fix inconsistency reporting -fcf-protection and -fstack-clash-protection results.
7894ff
- Add support for -D_FORTIFY_SOURCE=3.
7894ff
- annocheck: When a binary is produced both by GAS and GCC, select GAS as the real producer.  (#1906171)
7894ff
- annocheck: Improve test for LTO compiled binaries that do not have -Wall annotations.  (#1906171)
7894ff
- annocheck: Mark a missining -D_FORTIFY_SOURCE as a FAIL.
7894ff
- annocheck: Fix notes analyzer to accept empty PPC64 notes.
7894ff
- gcc plugin: Tweak generation of end symbols for PPC64 when LTO is active.  (#1898075)
7894ff
- gcc plugin: Add support for GCC 11's cl_vars array.
7894ff
- Annocheck: Support enabling/disabling future fails.
7894ff
- GCC plugin: Always record global notes for the .text.startup,
7894ff
  .text.exit, .text.hot and .text.cold sections.
7894ff
- Clang plugin: Add -lLLVM to the build command line.
7894ff
- Annocheck: Improve reporting of missing -D_FORTIFY_SOURCE option.  (#1898075)
7894ff
- Annocheck: Improve reporting of missing LTO option.
7894ff
- Add detecting of gimple compiled binaries.
7894ff
- Add --without-gcc-plugin option.
7894ff
- Annocheck: Fix bug parsing DW_AT_producer.
7894ff
- Add test of .note.gnu.property section for PowerPC.
7894ff
- Add test of objcopy's ability to merge notes.
7894ff
- NVR bump for another ELN sidetag rebuild.
7894ff
- Record the -flto setting and produce a soft warning if it is absent.
7894ff
- Suppress warnings about _D_GLIBCXX_ASSERTIONS if the source code is known to be something other than C++.
7894ff
- Correct the directory chosen for 32-bit LLVM and Clang plugins.  (#1884951)
7894ff
- Allow the use of the SHF_LINK_ORDER section flag to discard unused notes.  (Experimental).
7894ff
- Enable the build and installation of the LLVM and Clang plugins.  (Experimental).
7894ff
- gcc-plugin: Fix test for empty PowerPC sections.  (#1880634)
7894ff
- annocheck: Add tests for the AArch64 BTI and PAC security features.  (#1862478)
7894ff
- gcc plugin: Use a 4 byte offset for PowerPC start symbols, so that they do not break disassemblies.
7894ff
- gcc plugin: Correct the detection of 32-bit x86 builds.  (#1876197)
7894ff
- gcc plugin: Detect any attempt to access the global_options array.
7894ff
- gcc plugin: Do not complain about missing pre-processor options when examining a preprocessed input file.  (#1862718)
7894ff
- Use more robust checks for AArch64 options.
7894ff
- Detect CLANG compiled assembler that is missing IBT support.
7894ff
7894ff
* Wed Jul 29 2020 Nick Clifton <nickc@redhat.com> - 9.25-1
7894ff
- Improved target pointer size discovery.
7894ff
7894ff
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.24-3
7894ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7894ff
7894ff
* Sun Jul 26 2020 Nick Clifton <nickc@redhat.com> - 9.24-2
7894ff
- Rebuild with plugin enabled to check that suppression works.
7894ff
7894ff
* Sun Jul 26 2020 Nick Clifton <nickc@redhat.com> - 9.24-1
7894ff
- Add support for installing clang and llvm plugins.
7894ff
- Temporary suppression of aarch64 pointer size check.  (#1860549)
7894ff
7894ff
* Sat Jul 25 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 9.23-2
7894ff
- Rebuild for gcc 10.2
7894ff
7894ff
* Wed Jul 01 2020 Nick Clifton <nickc@redhat.com> - 9.23-1
7894ff
- Annocheck: Do not skip tests of the short-enums notes.  (#1743635)
7894ff
7894ff
* Mon Jun 15 2020 Nick Clifton <nickc@redhat.com> - 9.22-1
7894ff
- Add (optional) llvm plugin.
7894ff
7894ff
* Wed Apr 22 2020 Nick Clifton <nickc@redhat.com> - 9.21-1
7894ff
- Annobin: Fall back on using the flags if the option cannot be found in cl_options.  (#1817659)
7894ff
7894ff
* Thu Apr 16 2020 Nick Clifton <nickc@redhat.com> - 9.20-1
7894ff
- Annocheck: Detect Fortran compiled programs.  (#1824393)
7894ff
7894ff
* Wed Apr 01 2020 Nick Clifton <nickc@redhat.com> - 9.19-1
7894ff
- Annobin: If option name mismatch occurs, seach for the real option.  (#1817452)
7894ff
7894ff
* Mon Mar 30 2020 Nick Clifton <nickc@redhat.com> - 9.18-1
7894ff
- Annocheck: Fix a division by zero error when parsing GO binaries.  (#1818863)
7894ff
7894ff
* Fri Mar 27 2020 Nick Clifton <nickc@redhat.com> - 9.16-1
7894ff
- Annobin: Fix access to the -flto and -fsanitize flags.
7894ff
7894ff
* Thu Mar 26 2020 Nick Clifton <nickc@redhat.com> - 9.14-1
7894ff
- 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.
7894ff
7894ff
* Thu Mar 26 2020 Nick Clifton <nickc@redhat.com> - 9.13-2
7894ff
- NVR bump to allow rebuilding against new gcc.
7894ff
7894ff
* Thu Mar 12 2020 Nick Clifton <nickc@redhat.com> - 9.13-1
7894ff
- Rename gcc plugin directory to gcc-plugin.
7894ff
- Stop annocheck from complaining about missing options when the binary has been built in a mixed environment.
7894ff
7894ff
* Thu Mar 12 2020 Nick Clifton <nickc@redhat.com> - 9.12-3
7894ff
- And again, this time with annotation enabled.  (#1810941)
7894ff
7894ff
* Thu Mar 12 2020 Nick Clifton <nickc@redhat.com> - 9.12-2
7894ff
- NVR bump to enable rebuild against updated gcc.  (#1810941)
7894ff
7894ff
* Wed Mar 04 2020 Nick Clifton <nickc@redhat.com> - 9.12-1
7894ff
- Improve builtby tool.
7894ff
- Stop annocheck complaining about missing notes when the binary is not compiled by either gcc or clang.
7894ff
- Skip the check of the ENTRY instruction for binaries not compiled by gcc or clang.  (#1809656)
7894ff
7894ff
* Fri Feb 28 2020 Nick Clifton <nickc@redhat.com> - 9.11-1
7894ff
- Fix infinite loop hangup in annocheck.
7894ff
- Disable debuginfod support by default.
7894ff
- Improve parsing of .comment section.
7894ff
7894ff
* Thu Feb 27 2020 Nick Clifton <nickc@redhat.com> - 9.10-1
7894ff
- Fix clang plugin to use hidden symbols.
7894ff
7894ff
* Tue Feb 25 2020 Nick Clifton <nickc@redhat.com> - 9.09-1
7894ff
- Add ability to build clang plugin (disabled by default).
7894ff
7894ff
* Mon Feb 17 2020 Nick Clifton <nickc@redhat.com> - 9.08-1
7894ff
- Annocheck: Fix error printing out the version number.
7894ff
7894ff
* Fri Feb 14 2020 Nick Clifton <nickc@redhat.com> - 9.07-1
7894ff
- Annobin: Add checks of the exact location of the examined switches.
7894ff
7894ff
* Tue Feb 11 2020 Nick Clifton <nickc@redhat.com> - 9.06-1
7894ff
- Annobin: Note when stack clash notes are generated.
7894ff
- Annocheck: Handle multiple builder IDs in the .comment section.
7894ff
7894ff
* Fri Jan 31 2020 Nick Clifton <nickc@redhat.com> - 9.05-1
7894ff
- Add configure option to suppress building annocheck.
7894ff
7894ff
* Fri Jan 31 2020 Nick Clifton <nickc@redhat.com> - 9.04-1
7894ff
- Fix debuginfod test.
7894ff
7894ff
* Thu Jan 30 2020 Nick Clifton <nickc@redhat.com> - 9.03-2
7894ff
- Correct the build requirement for building with debuginfod support.
7894ff
7894ff
* Thu Jan 30 2020 Nick Clifton <nickc@redhat.com> - 9.03-1
7894ff
- Add debuginfod support.
7894ff
7894ff
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.01-3
7894ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7894ff
7894ff
* Mon Jan 20 2020 Nick Clifton <nickc@redhat.com> - 9.01-2
7894ff
- Rebuild againt latest gcc-10.
7894ff
7894ff
* Mon Jan 20 2020 Nick Clifton <nickc@redhat.com> - 9.01-1
7894ff
- Add clang plugin (experimental).
7894ff
7894ff
* Fri Dec 06 2019 Nick Clifton <nickc@redhat.com> - 8.92-1
7894ff
- Have annocheck ignore notes with an end address of 0.
7894ff
7894ff
* Mon Nov 18 2019 Nick Clifton <nickc@redhat.com> - 8.91-1
7894ff
- Improve checking of gcc versions.
7894ff
7894ff
* Fri Nov 15 2019 Nick Clifton <nickc@redhat.com> - 8.90-1
7894ff
- Do not skip positive results.
7894ff
7894ff
* Fri Nov 01 2019 Nick Clifton <nickc@redhat.com> - 8.88-1
7894ff
- Generate a WARN result for code compiled with instrumentation enabled.  (#1753918)
7894ff
7894ff
* Tue Oct 22 2019 Nick Clifton <nickc@redhat.com> - 8.87-1
7894ff
- Replace address checks with dladdr1.
7894ff
7894ff
* Mon Oct 21 2019 Nick Clifton <nickc@redhat.com> - 8.86-1
7894ff
- Use libabigail like checking to ensure variable address consistency.
7894ff
7894ff
* Wed Oct 16 2019 Nick Clifton <nickc@redhat.com> - 8.85-1
7894ff
- Skip generation of global notes for hot/cold sections.
7894ff
7894ff
* Thu Oct 10 2019 Nick Clifton <nickc@redhat.com> - 8.84-1
7894ff
- Generate FAIL results if -Wall or -Wformat-security are missing.
7894ff
7894ff
* Thu Oct 03 2019 Nick Clifton <nickc@redhat.com> - 8.83-1
7894ff
- If notes cannot be found in the executable look for them in the debuginfo file, if available.
7894ff
- Generate a FAIL if notes are missing from the executable/debuginfo file.
7894ff
- Record and report the setting of the AArcht64 specific -mbranch-protection option.
7894ff
7894ff
* Mon Sep 23 2019 Nick Clifton <nickc@redhat.com> - 8.81-1
7894ff
- Improve detection of GO binaries.
7894ff
- Add gcc version information to annobin notes.
7894ff
- Do not complain about missing FORTIFY_SOURCE and GLIBCXX_ASSERTIONS in LTO compilations.
7894ff
7894ff
* Wed Sep 04 2019 Nick Clifton <nickc@redhat.com> - 8.79-2
7894ff
- NVR bump to allow rebuild against latest gcc.  (#1748529)
7894ff
7894ff
* Tue Aug 06 2019 Nick Clifton <nickc@redhat.com> - 8.79-1
7894ff
- Allow compiler used to run tests to be specified on the command line.  (#1723401)
7894ff
7894ff
* Tue Aug 06 2019 Nick Clifton <nickc@redhat.com> - 8.78-1
7894ff
- Fix a memory allocation error in the annobin plugin.  (#1737306)
7894ff
7894ff
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.77-2
7894ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7894ff
7894ff
* Mon Jun 24 2019 Nick Clifton <nickc@redhat.com> - 8.77-1
7894ff
- Another attempt at fixing the detection and reporting of missing -D_FORTIFY_SOURCE options.  (#1703500)
7894ff
7894ff
* Mon Jun 10 22:13:17 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 8.76-4
7894ff
- Rebuild for RPM 4.15
7894ff
7894ff
* Mon Jun 10 15:42:00 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 8.76-3
7894ff
- Rebuild for RPM 4.15
7894ff
7894ff
* Thu Jun 06 2019 Panu Matilainen <pmatilai@redhat.com> - 8.76-2
7894ff
- Really enable annocheck sub-package
7894ff
7894ff
* Tue Apr 30 2019 Nick Clifton <nickc@redhat.com> - 8.76-1
7894ff
- Report a missing -D_FORTIFY_SOUCRE option if -D_GLIBCXX_ASSERTIONS was detected.  (#1703499)
7894ff
- Do not report problems with -fstack-protection if the binary was not built by gcc or clang.  (#1703788)    
7894ff
7894ff
* Fri Apr 26 2019 Nick Clifton <nickc@redhat.com> - 8.74-1
7894ff
- Add tests of clang command line options recorded in the DW_AT_producer attribute.
7894ff
7894ff
* Wed Apr 24 2019 Nick Clifton <nickc@redhat.com> - 8.73-1
7894ff
- Fix test for an executable stack segment.  (#1700924)
7894ff
7894ff
* Thu Apr 18 2019 Nick Clifton <nickc@redhat.com> - 8.72-1
7894ff
- Rebuild annobin with the latest rawhide gcc sources.  (#1700923)
7894ff
7894ff
* Thu Feb 28 2019 Nick Clifton <nickc@redhat.com> - 8.71-1
7894ff
- Annobin: Suppress more calls to free() which are triggering memory checker errors.  (#1684148)
7894ff
7894ff
* Fri Feb 01 2019 Nick Clifton <nickc@redhat.com> - 8.70-1
7894ff
- Add section flag matching ability to section size tool.
7894ff
7894ff
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.69-7
7894ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7894ff
7894ff
* Tue Jan 29 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-6
7894ff
- Use 'with' for rich dependency on gcc
7894ff
7894ff
* Tue Jan 29 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-5
7894ff
- Really fix rhbz#1607430.
7894ff
7894ff
* Mon Jan 28 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-4
7894ff
- Rebuilt with annotations enabled
7894ff
7894ff
* Mon Jan 28 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-3
7894ff
- Fix rpm query for gcc version.
7894ff
7894ff
* Mon Jan 28 2019 Nick Clifton <nickc@redhat.com> - 8.69-2
7894ff
- Add an exact requirement on the major version of gcc. (#1607430)
7894ff
7894ff
* Thu Jan 24 2019 Nick Clifton <nickc@redhat.com> - 8.69-1
7894ff
- Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9.
7894ff
- Annocheck: Add a note displaying tool.
7894ff
7894ff
* Wed Jan 23 2019 Nick Clifton <nickc@redhat.com> - 8.68-1
7894ff
- Annocheck: Skip checks for -D_FORTIFY_SOURCE and -D_GLIBCXX_ASSERTIONS if there is no compiler generated code in the binary.
7894ff
7894ff
* Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 8.67-3
7894ff
- Rebuilt with annotations enabled
7894ff
7894ff
* Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 8.67-2
7894ff
- Rebuilt for GCC 9
7894ff
7894ff
* Thu Jan 17 2019 Nick Clifton <nickc@redhat.com> - 8.67-1
7894ff
- Annocheck: Only skip specific checks for specific symbols.  (#1666823)
7894ff
- Annobin: Record the setting of the -fomit-frame-pointer option.
7894ff
7894ff
* Wed Jan 02 2019 Nick Clifton <nickc@redhat.com> - 8.66-1
7894ff
- Annocheck: Do not ignore -Og when checking to see if an optimization level has been set.  (#1624162)
7894ff
7894ff
* Tue Dec 11 2018 Nick Clifton <nickc@redhat.com> - 8.65-1
7894ff
- Annobin: Fix handling of multiple .text.unlikely sections.
7894ff
7894ff
* Fri Nov 30 2018 Nick Clifton <nickc@redhat.com> - 8.64-1
7894ff
- Annocheck: Skip gaps in PPC64 executables covered by start_bcax_ symbols.  (#1630564)
7894ff
7894ff
* Mon Nov 26 2018 Nick Clifton <nickc@redhat.com> - 8.63-1
7894ff
- Annocheck: Disable ENDBR test for shared libraries.  (#1652925)
7894ff
7894ff
* Mon Nov 26 2018 Nick Clifton <nickc@redhat.com> - 8.62-1
7894ff
- Annocheck: Add test for ENDBR instruction at entry address of x86/x86_64 executables.  (#1652925)
7894ff
7894ff
* Tue Nov 20 2018 David Cantrell <dcantrell@redhat.com> - 8.61-2
7894ff
- Adjust how the gcc_vr macro is set.
7894ff
7894ff
* Mon Nov 19 2018 Nick Clifton <nickc@redhat.com> - 8.61-1
7894ff
- Fix building with gcc version 4.
7894ff
7894ff
* Tue Nov 13 2018 Nick Clifton <nickc@redhat.com> - 8.60-1
7894ff
- Skip -Wl,-z,now and -Wl,-z,relro checks for non-gcc produced binaries.  (#1624421)
7894ff
7894ff
* Mon Nov 05 2018 Nick Clifton <nickc@redhat.com> - 8.59-1
7894ff
- Ensure GNU Property notes are 8-byte aligned in x86_64 binaries.  (#1645817)
7894ff
7894ff
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.58-1
7894ff
- Skip PPC64 linker stubs created in the middle of text sections (again). (#1630640)
7894ff
7894ff
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.57-1
7894ff
- Suppress free of invalid pointer. (#1638371)
7894ff
7894ff
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.56-1
7894ff
- Skip PPC64 linker stubs created in the middle of text sections. (#1630640)
7894ff
7894ff
* Tue Oct 16 2018 Nick Clifton <nickc@redhat.com> - 8.55-1
7894ff
- Reset the (PPC64) section start symbol to 0 if its section is empty.  (#1638251)
7894ff
7894ff
* Thu Oct 11 2018 Nick Clifton <nickc@redhat.com> - 8.53-1
7894ff
- Also skip virtual thinks created by G++.  (#1630619)
7894ff
7894ff
* Wed Oct 10 2018 Nick Clifton <nickc@redhat.com> - 8.52-1
7894ff
- Use uppercase for all fail/mayb/pass results.  (#1637706)
7894ff
7894ff
* Wed Oct 10 2018 Nick Clifton <nickc@redhat.com> - 8.51-1
7894ff
- Generate notes for unlikely sections.  (#1630620)
7894ff
7894ff
* Mon Oct 08 2018 Nick Clifton <nickc@redhat.com> - 8.50-1
7894ff
- Fix edge case computing section names for end symbols.  (#1637039)
7894ff
7894ff
* Mon Oct 08 2018 Nick Clifton <nickc@redhat.com> - 8.49-1
7894ff
- Skip dynamic checks for binaries without a dynamic segment.  (#1636606)
7894ff
7894ff
* Fri Oct 05 2018 Nick Clifton <nickc@redhat.com> - 8.48-1
7894ff
- Delay generating attach_to_group directives until the end of the compilation.  (#1636265)
7894ff
7894ff
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.47-1
7894ff
- Fix bug introduced in previous delta which would trigger a seg-fault when scanning for gaps.
7894ff
7894ff
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.46-1
7894ff
- Annobin:   Fix section name selection for startup sections.
7894ff
- Annocheck: Improve gap skipping heuristics.   (#1630574)
7894ff
7894ff
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.45-1
7894ff
- Fix function section support (again).   (#1630574)
7894ff
7894ff
* Fri Sep 28 2018 Nick Clifton <nickc@redhat.com> - 8.44-1
7894ff
- Skip compiler option checks for non-GNU producers.  (#1633749)
7894ff
7894ff
* Wed Sep 26 2018 Nick Clifton <nickc@redhat.com> - 8.43-1
7894ff
- Fix function section support (again).   (#1630574)
7894ff
7894ff
* Tue Sep 25 2018 Nick Clifton <nickc@redhat.com> - 8.42-1
7894ff
- Ignore ppc64le notes where start = end + 2.  (#1632259)
7894ff
7894ff
* Tue Sep 25 2018 Nick Clifton <nickc@redhat.com> - 8.41-1
7894ff
- Make annocheck ignore symbols suffixed with ".end".  (#1639618)
7894ff
7894ff
* Mon Sep 24 2018 Nick Clifton <nickc@redhat.com> - 8.40-1
7894ff
- Reinstate building annobin with annobin enabled.  (#1630550)
7894ff
7894ff
* Fri Sep 21 2018 Nick Clifton <nickc@redhat.com> - 8.39-1
7894ff
- Tweak tests.
7894ff
7894ff
* Fri Sep 21 2018 Nick Clifton <nickc@redhat.com> - 8.38-1
7894ff
- Generate notes and groups for .text.hot and .text.unlikely sections.
7894ff
- When -ffunction-sections is active, put notes for startup sections into .text.startup.foo rather than .text.foo.
7894ff
- Similarly put exit section notes into .text.exit.foo.  (#1630574)
7894ff
- 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.
7894ff
7894ff
* Wed Sep 19 2018 Nick Clifton <nickc@redhat.com> - 8.37-1
7894ff
- Make the --skip-* options skip all messages about the specified test.
7894ff
7894ff
* Tue Sep 18 2018 Nick Clifton <nickc@redhat.com> - 8.36-1
7894ff
- Improve error message when an ET_EXEC binary is detected.
7894ff
7894ff
* Mon Sep 17 2018 Nick Clifton <nickc@redhat.com> - 8.35-1
7894ff
- Skip failures for PIC vs PIE.  (#1629698)
7894ff
7894ff
* Mon Sep 17 2018 Nick Clifton <nickc@redhat.com> - 8.34-1
7894ff
- Ensure 4 byte alignment of note sub-sections.  (#1629671)
7894ff
7894ff
* Wed Sep 12 2018 Nick Clifton <nickc@redhat.com> - 8.33-1
7894ff
- Add timing tool to report on speed of the checks.
7894ff
- Add check for conflicting use of the -fshort-enum option.
7894ff
- Add check of the GNU Property notes.
7894ff
- Skip check for -O2 if compiled with -Og.  (#1624162)
7894ff
7894ff
* Mon Sep 03 2018 Nick Clifton <nickc@redhat.com> - 8.32-1
7894ff
- Add test for ET_EXEC binaries.  (#1625627)
7894ff
- Document --report-unknown option.
7894ff
7894ff
* Thu Aug 30 2018 Nick Clifton <nickc@redhat.com> - 8.31-1
7894ff
- Fix bug in hardened tool which would skip gcc compiled files if the notes were too small.
7894ff
- Fix bugs in section-size tool.
7894ff
- Fix bug in built-by tool.
7894ff
7894ff
* Wed Aug 29 2018 Nick Clifton <nickc@redhat.com> - 8.30-1
7894ff
- Generate notes for comdat sections. (#1619267)
7894ff
7894ff
* Thu Aug 23 2018 Nick Clifton <nickc@redhat.com> - 8.29-1
7894ff
- Add more names to the gap skip list. (#1619267)
7894ff
7894ff
* Thu Aug 23 2018 Nick Clifton <nickc@redhat.com> - 8.28-1
7894ff
- Skip gaps covered by _x86.get_pc_thunk and _savegpr symbols. (#1619267)
7894ff
- Merge ranges where one is wholly covered by another.
7894ff
7894ff
* Wed Aug 22 2018 Nick Clifton <nickc@redhat.com> - 8.27-1
7894ff
- Skip gaps at the end of functions. (#1619267)
7894ff
7894ff
* Tue Aug 21 2018 Nick Clifton <nickc@redhat.com> - 8.26-1
7894ff
- Fix thinko in ppc64 gap detection code. (#1619267)
7894ff
7894ff
* Mon Aug 20 2018 Nick Clifton <nickc@redhat.com> - 8.25-1
7894ff
- Skip gaps at the end of the .text section in ppc64 binaries. (#1619267)
7894ff
7894ff
* Wed Aug 15 2018 Nick Clifton <nickc@redhat.com> - 8.24-1
7894ff
- Skip checks in stack_chk_local_fail.c
7894ff
- Treat gaps as FAIL results rather than MAYBE.
7894ff
7894ff
* Wed Aug 08 2018 Nick Clifton <nickc@redhat.com> - 8.23-1
7894ff
- Skip checks in __stack_chk_local_fail.
7894ff
7894ff
* Wed Aug 08 2018 Nick Clifton <nickc@redhat.com> - 8.22-1
7894ff
- Reduce version check to gcc major version number only.  Skip compiler option checks if binary not built with gcc.  (#1603089)
7894ff
7894ff
* Tue Aug 07 2018 Nick Clifton <nickc@redhat.com> - 8.21-1
7894ff
- Fix bug in annobin plugin.  Add --section-size=NAME option to annocheck.
7894ff
7894ff
* Thu Aug  2 2018 Peter Robinson <pbrobinson@fedoraproject.org> 8.20-2
7894ff
- rebuild for new gcc
7894ff
7894ff
* Thu Aug 02 2018 Nick Clifton <nickc@redhat.com> - 8.20-1
7894ff
- Correct name of man page for run-on-binaries-in script.  (#1611155)
7894ff
7894ff
* Wed Jul 25 2018 Nick Clifton <nickc@redhat.com> - 8.19-1
7894ff
- Allow $ORIGIN to be at the start of entries in DT_RPATH and DT_RUNPATH.
7894ff
7894ff
* Mon Jul 23 2018 Nick Clifton <nickc@redhat.com> - 8.18-1
7894ff
- Add support for big endian targets.
7894ff
7894ff
* Mon Jul 23 2018 Nick Clifton <nickc@redhat.com> - 8.17-1
7894ff
- Count passes and failures on a per-component basis and report gaps.
7894ff
7894ff
* Fri Jul 20 2018 Nick Clifton <nickc@redhat.com> - 8.16-1
7894ff
- Use our own copy of the targetm.asm_out.function_section() function.  (#159861 comment#17)
7894ff
7894ff
* Fri Jul 20 2018 Nick Clifton <nickc@redhat.com> - 8.15-1
7894ff
- Generate grouped note section name all the time.  (#159861 comment#16)
7894ff
7894ff
* Thu Jul 19 2018 Nick Clifton <nickc@redhat.com> - 8.14-1
7894ff
- Fix section conflict problem.  (#1603071)
7894ff
7894ff
* Wed Jul 18 2018 Nick Clifton <nickc@redhat.com> - 8.13-1
7894ff
- Fix for building with gcc version 4.
7894ff
- Fix symbol placement in functions with local assembler.
7894ff
7894ff
* Tue Jul 17 2018 Nick Clifton <nickc@redhat.com> - 8.12-1
7894ff
- Fix assertions in range checking code.  Add detection of -U options.
7894ff
7894ff
* Tue Jul 17 2018 Nick Clifton <nickc@redhat.com> - 8.11-1
7894ff
- Handle function sections properly.  Handle .text.startup and .text.unlikely sections.  Improve gap detection and reporting.  (#1601055)
7894ff
7894ff
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-2
7894ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7894ff
7894ff
* Thu Jul 12 2018 Nick Clifton <nickc@redhat.com> - 8.10-1
7894ff
- Fix construction of absolute versions of --dwarf-dir and --debug-rpm options.
7894ff
7894ff
* Tue Jul 10 2018 Nick Clifton <nickc@redhat.com> - 8.9-1
7894ff
- Fix buffer overrun when very long symbol names are encountered.
7894ff
7894ff
* Tue Jul 10 2018 Nick Clifton <nickc@redhat.com> - 8.8-1
7894ff
- Do not force the generation of function notes when -ffunction-sections is active.  (#1598961)
7894ff
7894ff
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.7-1
7894ff
- Skip the .annobin_ prfix when reporting symbols.  (#1599315)
7894ff
7894ff
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.6-1
7894ff
- Use the assembler (c++ mangled) version of function names when switching sections.  (#1598579)
7894ff
7894ff
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.5-1
7894ff
- Do not call function_section.  (#1598961)
7894ff
7894ff
* Fri Jul 06 2018 Nick Clifton <nickc@redhat.com> - 8.4-1
7894ff
- Ignore cross-section gaps.  (#1598551)
7894ff
7894ff
* Thu Jul 05 2018 Nick Clifton <nickc@redhat.com> - 8.3-1
7894ff
- Do not skip empty range notes in object files.  (#1598361)
7894ff
7894ff
* Mon Jul 02 2018 Nick Clifton <nickc@redhat.com> - 8.2-1
7894ff
- Create the start symbol at the start of the function and the end symbol at the end.  (#1596823)
7894ff
7894ff
* Mon Jul 02 2018 Nick Clifton <nickc@redhat.com> - 8.1-1
7894ff
- Fix --debug-rpm when used inside a directory.
7894ff
7894ff
* Thu Jun 28 2018 Nick Clifton <nickc@redhat.com> - 8.0-1
7894ff
- Use a prefix for all annobin generated symbols, and make them hidden.
7894ff
- Only generate weak symbol definitions for linkonce sections.
7894ff
7894ff
* Wed Jun 27 2018 Nick Clifton <nickc@redhat.com> - 7.1-1
7894ff
- Skip some checks for relocatable object files, and dynamic objects.
7894ff
- Stop bogus complaints about stackrealignment not being enabled.
7894ff
7894ff
* Mon Jun 25 2018 Nick Clifton <nickc@redhat.com> - 7.0-1
7894ff
- Add -debug-rpm= option to annocheck.
7894ff
- Only use a 2 byte offset for the initial symbol on PowerPC.
7894ff
7894ff
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.6-1
7894ff
- Use --dwarf-path when looking for build-id based debuginfo files.
7894ff
7894ff
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.5-1
7894ff
- Fix premature closing of dwarf handle.
7894ff
7894ff
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.4-1
7894ff
- Fix scoping bug computing the name of a separate debuginfo file.
7894ff
7894ff
* Tue Jun 19 2018 Nick Clifton <nickc@redhat.com> - 6.3-1
7894ff
- Fix file descriptor leak.
7894ff
7894ff
* Tue Jun 19 2018 Nick Clifton <nickc@redhat.com> - 6.2-1
7894ff
- Add command line options to annocheck to disable individual tests.
7894ff
7894ff
* Fri Jun 08 2018 Nick Clifton <nickc@redhat.com> - 6.1-1
7894ff
- Remove C99-ism from annocheck sources.
7894ff
7894ff
* Wed Jun 06 2018 Nick Clifton <nickc@redhat.com> - 6.0-1
7894ff
- Add the annocheck program.
7894ff
7894ff
* Fri Jun 01 2018 Nick Clifton <nickc@redhat.com> - 5.11-1
7894ff
- Do not use the SHF_GNU_BUILD_NOTE section flag.
7894ff
7894ff
* Thu May 31 2018 Nick Clifton <nickc@redhat.com> - 5.10-1
7894ff
- Remove .sh extension from shell scripts.
7894ff
7894ff
* Wed May 30 2018 Nick Clifton <nickc@redhat.com> - 5.9-1
7894ff
- Record the setting of the -mstackrealign option for i686 binaries.
7894ff
7894ff
* Mon May 14 2018 Nick Clifton <nickc@redhat.com> - 5.8-1
7894ff
- Hide the annobin start of file symbol.
7894ff
7894ff
* Tue May 08 2018 Nick Clifton <nickc@redhat.com> - 5.7-1
7894ff
- Fix script bug in hardended.sh.  (Thanks to: Stefan Sørensen <stefan.sorensen@spectralink.com>)
7894ff
7894ff
* Thu May 03 2018 Nick Clifton <nickc@redhat.com> - 5.6-3
7894ff
- Version number bump so that the plugin can be rebuilt with the latest version of GCC.
7894ff
7894ff
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-2
7894ff
- Rebuild the plugin with the newly created plugin enabled.  (#1573082)
7894ff
7894ff
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-1
7894ff
- Skip the isa_flags check in the ABI test because the crt[in].o files are compiled with different flags from the test files.
7894ff
7894ff
* Fri Apr 20 2018 Nick Clifton <nickc@redhat.com> - 5.3-1
7894ff
- Add manual pages for annobin and the scripts.
7894ff
7894ff
* Tue Apr 03 2018 Nick Clifton <nickc@redhat.com> - 5.2-1
7894ff
- Do not record a stack protection setting of -1.  (#1563141)
7894ff
7894ff
* Tue Mar 20 2018 Nick Clifton <nickc@redhat.com> - 5.1-1
7894ff
- Do not complain about a dwarf_version value of -1.  (#1557511)
7894ff
7894ff
* Thu Mar 15 2018 Nick Clifton <nickc@redhat.com> - 5.0-1
7894ff
- Bias file start symbols by 2 in order to avoid them confused with function symbols.  (#1554332)
7894ff
- Version jump is to sync the version number with the annobin plugins internal version number.
7894ff
7894ff
* Mon Mar 12 2018 Nick Clifton <nickc@redhat.com> - 3.6-1
7894ff
- Add --ignore-gaps option to check-abi.sh script.
7894ff
- Use this option in the abi-test check.
7894ff
- Tweak hardening test to skip pic and stack protection checks.
7894ff
7894ff
* Tue Mar 06 2018 Nick Clifton <nickc@redhat.com> - 3.5-1
7894ff
- Handle functions with specific assembler names.  (#1552018)
7894ff
7894ff
* Fri Feb 23 2018 Nick Clifton <nickc@redhat.com> - 3.4-2
7894ff
- Add an explicit requirement on the version of gcc used to built the plugin.  (#1547260)
7894ff
7894ff
* Fri Feb 09 2018 Nick Clifton <nickc@redhat.com> - 3.4-1
7894ff
- Change type and size of symbols to STT_NOTYPE/0 so that they do not confuse GDB.  (#1539664)
7894ff
- Add run-on-binaries-in.sh script to allow the other scripts to be run over a repository.
7894ff
7894ff
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
7894ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7894ff
7894ff
* Tue Jan 30 2018 Nick Clifton <nickc@redhat.com> - 3.3-1
7894ff
- Rebase on 3.3 release, which adds support for recording -mcet and -fcf-protection.
7894ff
7894ff
* Mon Jan 29 2018 Florian Weimer <fweimer@redhat.com> - 3.2-3
7894ff
- Rebuild for GCC 8
7894ff
7894ff
* Fri Jan 26 2018 Nick Clifton <nickc@redhat.com> - 3.2-2
7894ff
- Fix the installation of the annobin.info file.
7894ff
7894ff
* Fri Jan 26 2018 Nick Clifton <nickc@redhat.com> - 3.2-1
7894ff
- Rebase on 3.2 release, which now contains documentation!
7894ff
7894ff
* Fri Jan 26 2018 Richard W.M. Jones <rjones@redhat.com> - 3.1-3
7894ff
- Rebuild against GCC 7.3.1.
7894ff
7894ff
* Tue Jan 16 2018 Nick Clifton <nickc@redhat.com> - 3.1-2
7894ff
- Add --with-gcc-plugin-dir option to the configure command line.
7894ff
7894ff
* Thu Jan 04 2018 Nick Clifton <nickc@redhat.com> - 3.1-1
7894ff
- Rebase on version 3.1 sources.
7894ff
7894ff
* Mon Dec 11 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-5
7894ff
- Do not generate notes when there is no output file.  (#1523875)
7894ff
7894ff
* Fri Dec 08 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-4
7894ff
- Invent an input filename when reading from a pipe.  (#1523401)
7894ff
7894ff
* Thu Nov 30 2017 Florian Weimer <fweimer@redhat.com> - 2.5.1-3
7894ff
- Use DECL_ASSEMBLER_NAME for symbol references (#1519165)
7894ff
7894ff
* Tue Oct 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.5.1-2
7894ff
- Cleanups in spec
7894ff
7894ff
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-1
7894ff
- Touch the auto-generated files in order to stop them from being regenerated.
7894ff
7894ff
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5-2
7894ff
- Stop the plugin complaining about compiler datestamp mismatches.
7894ff
7894ff
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.4-1
7894ff
- Tweak tests so that they will run on older machines.
7894ff
7894ff
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.3-1
7894ff
- Add annobin-tests subpackage containing some preliminary tests.
7894ff
- Remove link-time test for unsupported targets.
7894ff
7894ff
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
7894ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7894ff
7894ff
* Mon Jul 31 2017 Florian Weimer <fweimer@redhat.com> - 2.0-2
7894ff
- Rebuild with binutils fix for ppc64le (#1475636)
7894ff
7894ff
* Wed Jun 28 2017 Nick Clifton <nickc@redhat.com> - 2.0-1
7894ff
- Fixes for problems reported by the package submission review:
7894ff
   * Add %%license entry to %%file section.
7894ff
   * Update License and BuildRequires tags.
7894ff
   * Add Requires tag.
7894ff
   * Remove %%clean.
7894ff
   * Add %%check.
7894ff
   * Clean up the %%changelog.
7894ff
- Update to use version 2 of the specification and sources.
7894ff
7894ff
* Thu May 11 2017 Nick Clifton <nickc@redhat.com> - 1.0-1
7894ff
- Initial submission.