Blame SPECS/annobin.spec

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