Blame SPECS/annobin.spec

5e2b5d
c714d2
Name:    annobin
c714d2
Summary: Binary annotation plugin for GCC
512cc7
Version: 8.90
c714d2
Release: 1%{?dist}
c714d2
c714d2
License: GPLv3+
c714d2
URL:     https://fedoraproject.org/wiki/Toolchain/Watermark
c714d2
# Maintainer: nickc@redhat.com
c714d2
c714d2
5e2b5d
# # Do not build the annobin plugin with annotation enabled.
5e2b5d
# # This is because if we are bootstrapping a new build environment we can have
5e2b5d
# # a new version of gcc installed, but without a new of annobin installed.
5e2b5d
# # (i.e. we are building the new version of annobin to go with the new version
5e2b5d
# # of gcc).  If the *old* annobin plugin is used whilst building this new
5e2b5d
# # version, the old plugin will complain that version of gcc for which it
5e2b5d
# # was built is different from the version of gcc that is now being used, and
5e2b5d
# # then it will abort.
c714d2
#
c714d2
# Suppress this for BZ 1630550.
c714d2
# The problem should now only arise when rebasing to a new major version
c714d2
# of gcc, in which case the undefine below can be temporarily reinstated.
c714d2
#
5e2b5d
# %%undefine _annotated_build
5e2b5d
5e2b5d
# Use "--without tests" to disable the testsuite.  The default is to run them.
5e2b5d
%bcond_without tests
5e2b5d
5e2b5d
# Use "--without annocheck" to disable the installation of the annocheck program.
5e2b5d
%bcond_without annocheck
5e2b5d
5e2b5d
# Set this to zero to disable the requirement for a specific version of gcc.
5e2b5d
# This should only be needed if there is some kind of problem with the version
c714d2
# checking logic or when building on RHEL-7 or earlier.
5e2b5d
%global with_hard_gcc_version_requirement 1
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
c714d2
# Source:  https://nickc.fedorapeople.org/annobin-%%{version}.tar.xz
c714d2
Source:  annobin-%{version}.tar.xz
5e2b5d
# For the latest sources use:  git clone git://sourceware.org/git/annobin.git
5e2b5d
5e2b5d
# Insert patches here, if needed.
5e2b5d
# Patch01: annobin-xxx.patch
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
# [Stolen from gcc-python-plugin]
5e2b5d
# GCC will only load plugins that were built against exactly that build of GCC
5e2b5d
# We thus need to embed the exact GCC version as a requirement within the
5e2b5d
# metadata.
5e2b5d
#
5e2b5d
# Define "gcc_vr", a variable to hold the VERSION-RELEASE string for the gcc
5e2b5d
# we are being built against.
5e2b5d
#
5e2b5d
# Unfortunately, we can't simply run:
5e2b5d
#   rpm -q --qf="%%{version}-%%{release}"
5e2b5d
# to determine this, as there's no guarantee of a sane rpm database within
5e2b5d
# the chroots created by our build system
5e2b5d
#
5e2b5d
# So we instead query the version from gcc's output.
5e2b5d
#
5e2b5d
# gcc.spec has:
5e2b5d
#   Version: %%{gcc_version}
5e2b5d
#   Release: %%{gcc_release}%%{?dist}
5e2b5d
#   ...snip...
5e2b5d
#   echo 'Red Hat %%{version}-%%{gcc_release}' > gcc/DEV-PHASE
5e2b5d
#
5e2b5d
# So, given this output:
5e2b5d
#
5e2b5d
#   $ gcc --version
5e2b5d
#   gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)
5e2b5d
#   Copyright (C) 2011 Free Software Foundation, Inc.
5e2b5d
#   This is free software; see the source for copying conditions.  There is NO
5e2b5d
#   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5e2b5d
#
5e2b5d
# we can scrape out the "4.6.1" from the version line.
5e2b5d
#
5e2b5d
# The following implements the above:
5e2b5d
c714d2
%global gcc_vr %(gcc --version | head -n 1 | sed -e 's|.*(Red\ Hat\ ||g' -e 's|)$||g')
c714d2
c714d2
# We need the major version of gcc.
c714d2
%global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".")
c714d2
%global gcc_next  %(v="%{gcc_major}"; echo $((++v)))
c714d2
c714d2
# Needed when building the srpm.
c714d2
%if 0%{?gcc_major} == 0
c714d2
%global gcc_major 0
c714d2
%endif
5e2b5d
5e2b5d
# This is a gcc plugin, hence gcc is required.
5e2b5d
%if %{with_hard_gcc_version_requirement}
c714d2
# BZ 1607430 - There is an exact requirement on the major version of gcc.
c714d2
Requires: (gcc >= %{gcc_major} with gcc < %{gcc_next})
5e2b5d
%else
5e2b5d
Requires: gcc
5e2b5d
%endif
5e2b5d
c714d2
BuildRequires: gcc gcc-plugin-devel gcc-c++
c714d2
c714d2
%description
c714d2
Provides a plugin for GCC that records extra information in the files
c714d2
that it compiles.
c714d2
c714d2
Note - the plugin is automatically enabled in gcc builds via flags
c714d2
provided by the redhat-rpm-macros package.
c714d2
5e2b5d
#---------------------------------------------------------------------------------
c714d2
%if %{with tests}
5e2b5d
c714d2
%package tests
c714d2
Summary: Test scripts and binaries for checking the behaviour and output of the annobin plugin
c714d2
c714d2
%description tests
c714d2
Provides a means to test the generation of annotated binaries and the parsing
c714d2
of the resulting files.
5e2b5d
c714d2
%endif
c714d2
c714d2
#---------------------------------------------------------------------------------
c714d2
%if %{with annocheck}
c714d2
c714d2
%package annocheck
c714d2
Summary: A tool for checking the security hardening status of binaries
c714d2
c714d2
BuildRequires: gcc elfutils elfutils-devel elfutils-libelf-devel rpm-devel binutils-devel
c714d2
c714d2
%description annocheck
c714d2
Installs the annocheck program which uses the notes generated by annobin to
c714d2
check that the specified files were compiled with the correct security
c714d2
hardening options.
c714d2
c714d2
%endif
c714d2
c714d2
#---------------------------------------------------------------------------------
c714d2
c714d2
%global ANNOBIN_PLUGIN_DIR %(gcc --print-file-name=plugin)
c714d2
c714d2
#---------------------------------------------------------------------------------
c714d2
c714d2
%prep
5e2b5d
if [ -z "%{gcc_vr}" ]; then
5e2b5d
    echo "*** Missing gcc_vr spec file macro, cannot continue." >&2
5e2b5d
    exit 1
5e2b5d
fi
5e2b5d
c714d2
echo "Requires: (gcc >= %{gcc_major} with gcc < %{gcc_next})"
c714d2
5e2b5d
%autosetup -p1
5e2b5d
5e2b5d
# The plugin has to be configured with the same arcane configure
5e2b5d
# scripts used by gcc.  Hence we must not allow the Fedora build
5e2b5d
# system to regenerate any of the configure files.
5e2b5d
touch aclocal.m4 plugin/config.h.in
5e2b5d
touch configure */configure Makefile.in */Makefile.in
5e2b5d
# Similarly we do not want to rebuild the documentation.
5e2b5d
touch doc/annobin.info
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%build
5e2b5d
%configure --quiet --with-gcc-plugin-dir=%{ANNOBIN_PLUGIN_DIR}
5e2b5d
%make_build
5e2b5d
# Rebuild the plugin, this time using the plugin itself!  This
5e2b5d
# ensures that the plugin works, and that it contains annotations
5e2b5d
# of its own.  This could mean that we end up with a plugin with
5e2b5d
# double annotations in it.  (If the build system enables annotations
5e2b5d
# for plugins by default).  I have not tested this yet, but I think
5e2b5d
# that it should be OK.
5e2b5d
cp plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp_annobin.so
5e2b5d
make -C plugin clean
c714d2
BUILD_FLAGS="-fplugin=%{_tmppath}/tmp_annobin.so -fplugin-arg-tmp_annobin-rename"
c714d2
# If building on RHEL7, enable the next option as the .attach_to_group assembler pseudo op is not available in the assembler.
c714d2
# BUILD_FLAGS="$BUILD_FLAGS -fplugin-arg-tmp_annobin-no-attach"
c714d2
make -C plugin CXXFLAGS="%{optflags} $BUILD_FLAGS"
5e2b5d
rm %{_tmppath}/tmp_annobin.so
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%install
5e2b5d
%make_install
5e2b5d
%{__rm} -f %{buildroot}%{_infodir}/dir
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%if %{with tests}
5e2b5d
%check
c714d2
# On RHEL7 the assembler does not support all of the annobin tests.
5e2b5d
make check
c714d2
if [ -f tests/test-suite.log ]; then
c714d2
    cat tests/test-suite.log
c714d2
fi
5e2b5d
%endif
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%files
5e2b5d
%{ANNOBIN_PLUGIN_DIR}
5e2b5d
%{_bindir}/built-by
5e2b5d
%{_bindir}/check-abi
5e2b5d
%{_bindir}/hardened
5e2b5d
%{_bindir}/run-on-binaries-in
5e2b5d
%license COPYING3 LICENSE
5e2b5d
%exclude %{_datadir}/doc/annobin-plugin/COPYING3
5e2b5d
%exclude %{_datadir}/doc/annobin-plugin/LICENSE
5e2b5d
%doc %{_datadir}/doc/annobin-plugin/annotation.proposal.txt
5e2b5d
%doc %{_infodir}/annobin.info.gz
5e2b5d
%doc %{_mandir}/man1/annobin.1.gz
5e2b5d
%doc %{_mandir}/man1/built-by.1.gz
5e2b5d
%doc %{_mandir}/man1/check-abi.1.gz
5e2b5d
%doc %{_mandir}/man1/hardened.1.gz
5e2b5d
%doc %{_mandir}/man1/run-on-binaries-in.1.gz
5e2b5d
5e2b5d
%if %{with annocheck}
5e2b5d
%{_bindir}/annocheck
5e2b5d
%doc %{_mandir}/man1/annocheck.1.gz
5e2b5d
%endif
5e2b5d
5e2b5d
#---------------------------------------------------------------------------------
5e2b5d
5e2b5d
%changelog
512cc7
* Fri Nov 15 2019 Nick Clifton <nickc@redhat.com> - 8.90-1
512cc7
- Do not skip positive results.
512cc7
512cc7
* Tue Nov 12 2019 Nick Clifton <nickc@redhat.com> - 8.89-2
512cc7
- Bump NVR to allow rebuild after tweaking gating tests.
512cc7
512cc7
* Tue Nov 12 2019 Nick Clifton <nickc@redhat.com> - 8.89-1
512cc7
- Update to version 8.89.  (#1766631)
512cc7
- Generate a WARN result for code compiled with instrumentation enabled.  (#1753918)
512cc7
- Replace address checks with dladdr1.
512cc7
- Use libabigail like checking to ensure variable address consistency.
512cc7
- Skip generation of global notes for hot/cold sections.
512cc7
- Generate FAIL results if -Wall or -Wformat-security are missing.
512cc7
- If notes cannot be found in the executable look for them in the debuginfo file, if available.
512cc7
- Generate a FAIL if notes are missing from the executable/debuginfo file.
512cc7
- Record and report the setting of the AArcht64 specific -mbranch-protection option.
512cc7
- Improve detection of GO binaries.
512cc7
- Add gcc version information to annobin notes.
512cc7
- Do not complain about missing FORTIFY_SOURCE and GLIBCXX_ASSERTIONS in LTO compilations.
512cc7
c714d2
* Tue Aug 06 2019 Nick Clifton <nickc@redhat.com> - 8.78-1
c714d2
- Fix a memory allocation error in the annobin plugin.  (#1737306)
c714d2
c714d2
* Mon Aug 05 2019 Nick Clifton <nickc@redhat.com> - 8.77-2
c714d2
- NVR bump to allow rebuilding against latest gcc.
c714d2
c714d2
* Mon Jun 24 2019 Nick Clifton <nickc@redhat.com> - 8.77-1
c714d2
- Another attempt at fixing the detection and reporting of missing -D_FORTIFY_SOURCE options.  (#1703500)
c714d2
c714d2
* Thu Jun 13 2019 Nick Clifton <nickc@redhat.com> - 8.76-2
c714d2
- Release bump in order to allow rebuild against latest version of gcc in RHEL-8 buildroot.  (#1720179)
c714d2
c714d2
* Tue Jun 04 2019 Nick Clifton <nickc@redhat.com> - 8.76-1
c714d2
- Report a missing -D_FORTIFY_SOUCRE option if -D_GLIBCXX_ASSERTIONS was detected.  (#1703500)
c714d2
- Do not report problems with -fstack-protection if the binary was not built by gcc or clang.  (#1703788)    
c714d2
- Add tests of clang command line options recorded in the DW_AT_producer attribute.
c714d2
c714d2
* Fri May 10 2019 Nick Clifton <nickc@redhat.com> - 8.73-2
c714d2
- Release bump in order to allow rebuild against latest version of gcc in RHEL-8 buildroot.  (#1657912)
c714d2
c714d2
* Wed Apr 24 2019 Nick Clifton <nickc@redhat.com> - 8.73-1
c714d2
- Fix test for an executable stack segment.  (#1700924)
c714d2
c714d2
* Thu Feb 28 2019 Nick Clifton <nickc@redhat.com> - 8.71-1
c714d2
- Annobin: Suppress more calls to free() which are triggering memory checker errors.  (#1684148)
c714d2
c714d2
* Fri Feb 01 2019 Nick Clifton <nickc@redhat.com> - 8.70-1
c714d2
- Add section flag matching ability to section size tool.
c714d2
c714d2
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.69-7
c714d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c714d2
c714d2
* Tue Jan 29 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-6
c714d2
- Use 'with' for rich dependency on gcc
c714d2
c714d2
* Tue Jan 29 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-5
c714d2
- Really fix rhbz#1607430.
c714d2
c714d2
* Mon Jan 28 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-4
c714d2
- Rebuilt with annotations enabled
c714d2
c714d2
* Mon Jan 28 2019 Björn Esser <besser82@fedoraproject.org> - 8.69-3
c714d2
- Fix rpm query for gcc version.
c714d2
c714d2
* Mon Jan 28 2019 Nick Clifton <nickc@redhat.com> - 8.69-2
c714d2
- Add an exact requirement on the major version of gcc. (#1607430)
c714d2
c714d2
* Thu Jan 24 2019 Nick Clifton <nickc@redhat.com> - 8.69-1
c714d2
- Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9.
c714d2
- Annocheck: Add a note displaying tool.
c714d2
c714d2
* Wed Jan 23 2019 Nick Clifton <nickc@redhat.com> - 8.68-1
c714d2
- Annocheck: Skip checks for -D_FORTIFY_SOURCE and -D_GLIBCXX_ASSERTIONS if there is no compiler generated code in the binary.
c714d2
c714d2
* Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 8.67-3
c714d2
- Rebuilt with annotations enabled
c714d2
c714d2
* Mon Jan 21 2019 Björn Esser <besser82@fedoraproject.org> - 8.67-2
c714d2
- Rebuilt for GCC 9
c714d2
c714d2
* Thu Jan 17 2019 Nick Clifton <nickc@redhat.com> - 8.67-1
c714d2
- Annocheck: Only skip specific checks for specific symbols.  (#1666823)
c714d2
- Annobin: Record the setting of the -fomit-frame-pointer option.  (#1657912)
c714d2
c714d2
* Wed Jan 02 2019 Nick Clifton <nickc@redhat.com> - 8.66-1
c714d2
- Annocheck: Do not ignore -Og when checking to see if an optimization level has been set.  (#1624162)
c714d2
c714d2
* Tue Dec 11 2018 Nick Clifton <nickc@redhat.com> - 8.65-1
c714d2
- Annobin: Fix handling of multiple .text.unlikely sections.
c714d2
5e2b5d
* Fri Nov 30 2018 Nick Clifton <nickc@redhat.com> - 8.64-1
5e2b5d
- Annocheck: Skip gaps in PPC64 executables covered by start_bcax_ symbols.  (#1630564)
5e2b5d
5e2b5d
* Mon Nov 26 2018 Nick Clifton <nickc@redhat.com> - 8.63-1
5e2b5d
- Annocheck: Disable ENDBR test for shared libraries.  (#1652925)
5e2b5d
5e2b5d
* Mon Nov 26 2018 Nick Clifton <nickc@redhat.com> - 8.62-1
5e2b5d
- Annocheck: Add test for ENDBR instruction at entry address of x86/x86_64 executables.  (#1652925)
5e2b5d
5e2b5d
* Tue Nov 20 2018 David Cantrell <dcantrell@redhat.com> - 8.61-2
5e2b5d
- Adjust how the gcc_vr macro is set.
5e2b5d
5e2b5d
* Mon Nov 19 2018 Nick Clifton <nickc@redhat.com> - 8.61-1
5e2b5d
- Fix building with gcc version 4.
5e2b5d
5e2b5d
* Tue Nov 13 2018 Nick Clifton <nickc@redhat.com> - 8.60-1
5e2b5d
- Skip -Wl,-z,now and -Wl,-z,relro checks for non-gcc produced binaries.  (#1624421)
5e2b5d
5e2b5d
* Mon Nov 05 2018 Nick Clifton <nickc@redhat.com> - 8.59-1
5e2b5d
- Ensure GNU Property notes are 8-byte aligned in x86_64 binaries.  (#1645817)
5e2b5d
5e2b5d
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.58-1
5e2b5d
- Skip PPC64 linker stubs created in the middle of text sections (again). (#1630640)
5e2b5d
5e2b5d
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.57-1
5e2b5d
- Suppress free of invalid pointer. (#1638371)
5e2b5d
5e2b5d
* Thu Oct 18 2018 Nick Clifton <nickc@redhat.com> - 8.56-1
5e2b5d
- Skip PPC64 linker stubs created in the middle of text sections. (#1630640)
5e2b5d
5e2b5d
* Tue Oct 16 2018 Nick Clifton <nickc@redhat.com> - 8.55-1
5e2b5d
- Reset the (PPC64) section start symbol to 0 if its section is empty.  (#1638251)
5e2b5d
5e2b5d
* Thu Oct 11 2018 Nick Clifton <nickc@redhat.com> - 8.53-1
5e2b5d
- Also skip virtual thinks created by G++.  (#1630619)
5e2b5d
5e2b5d
* Wed Oct 10 2018 Nick Clifton <nickc@redhat.com> - 8.52-1
5e2b5d
- Use uppercase for all fail/mayb/pass results.  (#1637706)
5e2b5d
5e2b5d
* Wed Oct 10 2018 Nick Clifton <nickc@redhat.com> - 8.51-1
5e2b5d
- Generate notes for unlikely sections.  (#1630620)
5e2b5d
5e2b5d
* Mon Oct 08 2018 Nick Clifton <nickc@redhat.com> - 8.50-1
5e2b5d
- Fix edge case computing section names for end symbols.  (#1637039)
5e2b5d
5e2b5d
* Mon Oct 08 2018 Nick Clifton <nickc@redhat.com> - 8.49-1
5e2b5d
- Skip dynamic checks for binaries without a dynamic segment.  (#1636606)
5e2b5d
5e2b5d
* Fri Oct 05 2018 Nick Clifton <nickc@redhat.com> - 8.48-1
5e2b5d
- Delay generating attach_to_group directives until the end of the compilation.  (#1636265)
5e2b5d
5e2b5d
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.47-1
5e2b5d
- Fix bug introduced in previous delta which would trigger a seg-fault when scanning for gaps.
5e2b5d
5e2b5d
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.46-1
5e2b5d
- Annobin:   Fix section name selection for startup sections.
5e2b5d
- Annocheck: Improve gap skipping heuristics.   (#1630574)
5e2b5d
5e2b5d
* Mon Oct 01 2018 Nick Clifton <nickc@redhat.com> - 8.45-1
5e2b5d
- Fix function section support (again).   (#1630574)
5e2b5d
5e2b5d
* Fri Sep 28 2018 Nick Clifton <nickc@redhat.com> - 8.44-1
5e2b5d
- Skip compiler option checks for non-GNU producers.  (#1633749)
5e2b5d
5e2b5d
* Wed Sep 26 2018 Nick Clifton <nickc@redhat.com> - 8.43-1
5e2b5d
- Fix function section support (again).   (#1630574)
5e2b5d
5e2b5d
* Tue Sep 25 2018 Nick Clifton <nickc@redhat.com> - 8.42-1
5e2b5d
- Ignore ppc64le notes where start = end + 2.  (#1632259)
5e2b5d
5e2b5d
* Tue Sep 25 2018 Nick Clifton <nickc@redhat.com> - 8.41-1
5e2b5d
- Make annocheck ignore symbols suffixed with ".end".  (#1639618)
5e2b5d
5e2b5d
* Mon Sep 24 2018 Nick Clifton <nickc@redhat.com> - 8.40-1
5e2b5d
- Reinstate building annobin with annobin enabled.  (#1630550)
5e2b5d
5e2b5d
* Mon Sep 24 2018 Nick Clifton <nickc@redhat.com> - 8.39-2
5e2b5d
- Fix gating test.  (#1625683)
5e2b5d
5e2b5d
* Fri Sep 21 2018 Nick Clifton <nickc@redhat.com> - 8.39-1
5e2b5d
- Tweak tests.
5e2b5d
5e2b5d
* Fri Sep 21 2018 Nick Clifton <nickc@redhat.com> - 8.38-1
5e2b5d
- Generate notes and groups for .text.hot and .text.unlikely sections.
5e2b5d
- When -ffunction-sections is active, put notes for startup sections into .text.startup.foo rather than .text.foo.
5e2b5d
- Similarly put exit section notes into .text.exit.foo.  (#1630574)
5e2b5d
- Change annocheck's maybe result for GNU Property note being missing into a PASS if it is not needed and a FAIL if it is needed.
5e2b5d
5e2b5d
* Wed Sep 19 2018 Nick Clifton <nickc@redhat.com> - 8.37-1
5e2b5d
- Make the --skip-* options skip all messages about the specified test.
5e2b5d
- Add gating tests.   (#1625683)
5e2b5d
5e2b5d
* Tue Sep 18 2018 Nick Clifton <nickc@redhat.com> - 8.36-1
5e2b5d
- Improve error message when an ET_EXEC binary is detected.
5e2b5d
5e2b5d
* Mon Sep 17 2018 Nick Clifton <nickc@redhat.com> - 8.35-1
5e2b5d
- Skip failures for PIC vs PIE.  (#1629698)
5e2b5d
5e2b5d
* Mon Sep 17 2018 Nick Clifton <nickc@redhat.com> - 8.34-1
5e2b5d
- Ensure 4 byte alignment of note sub-sections.  (#1629671)
5e2b5d
5e2b5d
* Wed Sep 12 2018 Nick Clifton <nickc@redhat.com> - 8.33-1
5e2b5d
- Add timing tool to report on speed of the checks.
5e2b5d
- Add check for conflicting use of the -fshort-enum option.
5e2b5d
- Add check of the GNU Property notes.
5e2b5d
- Skip check for -O2 if compiled with -Og.  (#1624162)
5e2b5d
5e2b5d
* Mon Sep 03 2018 Nick Clifton <nickc@redhat.com> - 8.32-1
5e2b5d
- Add test for ET_EXEC binaries.  (#1625627)
5e2b5d
- Document --report-unknown option.
5e2b5d
5e2b5d
* Thu Aug 30 2018 Nick Clifton <nickc@redhat.com> - 8.31-1
5e2b5d
- Fix bug in hardened tool which would skip gcc compiled files if the notes were too small.
5e2b5d
- Fix bugs in section-size tool.
5e2b5d
- Fix bug in built-by tool.
5e2b5d
5e2b5d
* Wed Aug 29 2018 Nick Clifton <nickc@redhat.com> - 8.30-1
5e2b5d
- Generate notes for comdat sections. (#1619267)
5e2b5d
5e2b5d
* Thu Aug 23 2018 Nick Clifton <nickc@redhat.com> - 8.29-1
5e2b5d
- Add more names to the gap skip list. (#1619267)
5e2b5d
5e2b5d
* Thu Aug 23 2018 Nick Clifton <nickc@redhat.com> - 8.28-1
5e2b5d
- Skip gaps covered by _x86.get_pc_thunk and _savegpr symbols. (#1619267)
5e2b5d
- Merge ranges where one is wholly covered by another.
5e2b5d
5e2b5d
* Wed Aug 22 2018 Nick Clifton <nickc@redhat.com> - 8.27-1
5e2b5d
- Skip gaps at the end of functions. (#1619267)
5e2b5d
5e2b5d
* Tue Aug 21 2018 Nick Clifton <nickc@redhat.com> - 8.26-1
5e2b5d
- Fix thinko in ppc64 gap detection code. (#1619267)
5e2b5d
5e2b5d
* Mon Aug 20 2018 Nick Clifton <nickc@redhat.com> - 8.25-1
5e2b5d
- Skip gaps at the end of the .text section in ppc64 binaries. (#1619267)
5e2b5d
5e2b5d
* Fri Aug 17 2018 Nick Clifton <nickc@redhat.com> - 8.24-1
5e2b5d
- Skip checks in stack_chk_local_fail.c.  (#1618660)
5e2b5d
- Treat gaps as FAIL results rather than MAYBE.
5e2b5d
- Skip checks in __stack_chk_local_fail.
5e2b5d
- Reduce version check to gcc major version number only.  Skip compiler option checks if binary not built with gcc.  (#1603089)
5e2b5d
- Fix bug in annobin plugin.  Add --section-size=NAME option to annocheck.
5e2b5d
5e2b5d
* Thu Aug 02 2018 Nick Clifton <nickc@redhat.com> - 8.20-1
5e2b5d
- Correct name of man page for run-on-binaries-in script.  (#1611155)
5e2b5d
5e2b5d
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 8.19-3
5e2b5d
- Rebuild with fixed binutils
5e2b5d
5e2b5d
* Sat Jul 28 2018 Troy Dawson <tdawson@redhat.com> - 8.19-2
5e2b5d
- Rebuild for gcc 8.2.1
5e2b5d
5e2b5d
* Wed Jul 25 2018 Nick Clifton <nickc@redhat.com> - 8.19-1
5e2b5d
- Allow $ORIGN to be at the start of entries in DT_RPATH and DT_RUNPATH.
5e2b5d
5e2b5d
* Mon Jul 23 2018 Nick Clifton <nickc@redhat.com> - 8.18-1
5e2b5d
- Add support for big endian targets.
5e2b5d
5e2b5d
* Mon Jul 23 2018 Nick Clifton <nickc@redhat.com> - 8.17-1
5e2b5d
- Count passes and failures on a per-component basis and report gaps.
5e2b5d
5e2b5d
* Fri Jul 20 2018 Nick Clifton <nickc@redhat.com> - 8.16-1
5e2b5d
- Use our own copy of the targetm.asm_out.function_section() function.  (#159861 comment#17)
5e2b5d
5e2b5d
* Fri Jul 20 2018 Nick Clifton <nickc@redhat.com> - 8.15-1
5e2b5d
- Generate grouped note section name all the time.  (#159861 comment#16)
5e2b5d
5e2b5d
* Thu Jul 19 2018 Nick Clifton <nickc@redhat.com> - 8.14-1
5e2b5d
- Fix section conflict problem.  (#1603071)
5e2b5d
5e2b5d
* Wed Jul 18 2018 Nick Clifton <nickc@redhat.com> - 8.13-1
5e2b5d
- Fix for building with gcc version 4.
5e2b5d
- Fix symbol placement in functions with local assembler.
5e2b5d
5e2b5d
* Tue Jul 17 2018 Nick Clifton <nickc@redhat.com> - 8.12-1
5e2b5d
- Fix assertions in rnage checking code.  Add detection of -U options.
5e2b5d
5e2b5d
* Tue Jul 17 2018 Nick Clifton <nickc@redhat.com> - 8.11-1
5e2b5d
- Handle function sections properly.  Handle .text.startup and .text.unlikely sections.  Improve gap detection and reporting.  (#1601055)
5e2b5d
5e2b5d
* Thu Jul 12 2018 Nick Clifton <nickc@redhat.com> - 8.10-1
5e2b5d
- Fix construction of absolute versions of --dwarf-dir and --debug-rpm options.
5e2b5d
5e2b5d
* Tue Jul 10 2018 Nick Clifton <nickc@redhat.com> - 8.9-1
5e2b5d
- Fix buffer overrun when very long symbol names are encountered.
5e2b5d
5e2b5d
* Tue Jul 10 2018 Nick Clifton <nickc@redhat.com> - 8.8-1
5e2b5d
- Do not force the generation of function notes when -ffunction-sections is active.  (#1598961)
5e2b5d
5e2b5d
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.7-1
5e2b5d
- Skip the .annobin_ prfix when reporting symbols.  (#1599315)
5e2b5d
5e2b5d
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.6-1
5e2b5d
- Use the assembler (c++ mangled) version of function names when switching sections.  (#1598579)
5e2b5d
5e2b5d
* Mon Jul 09 2018 Nick Clifton <nickc@redhat.com> - 8.5-1
5e2b5d
- Do not call function_section.  (#1598961)
5e2b5d
5e2b5d
* Fri Jul 06 2018 Nick Clifton <nickc@redhat.com> - 8.4-1
5e2b5d
- Ignore cross-section gaps.  (#1598551)
5e2b5d
5e2b5d
* Thu Jul 05 2018 Nick Clifton <nickc@redhat.com> - 8.3-1
5e2b5d
- Do not skip empty range notes in object files.  (#1598361)
5e2b5d
5e2b5d
* Mon Jul 02 2018 Nick Clifton <nickc@redhat.com> - 8.2-1
5e2b5d
- Create the start symbol at the start of the function and the end symbol at the end.  (#1596823)
5e2b5d
5e2b5d
* Mon Jul 02 2018 Nick Clifton <nickc@redhat.com> - 8.1-1
5e2b5d
- Fix --debug-rpm when used inside a directory.
5e2b5d
5e2b5d
* Thu Jun 28 2018 Nick Clifton <nickc@redhat.com> - 8.0-1
5e2b5d
- Use a prefix for all annobin generated symbols, and make them hidden.
5e2b5d
- Only generate weak symbol definitions for linkonce sections.
5e2b5d
5e2b5d
* Wed Jun 27 2018 Nick Clifton <nickc@redhat.com> - 7.1-1
5e2b5d
- Skip some checks for relocatable object files, and dynamic objects.
5e2b5d
- Stop bogus complaints about stackrealignment not being enabled.
5e2b5d
5e2b5d
* Mon Jun 25 2018 Nick Clifton <nickc@redhat.com> - 7.0-1
5e2b5d
- Add -debug-rpm= option to annocheck.
5e2b5d
- Only use a 2 byte offset for the initial symbol on PowerPC.
5e2b5d
5e2b5d
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.6-1
5e2b5d
- Use --dwarf-path when looking for build-id based debuginfo files.
5e2b5d
5e2b5d
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.5-1
5e2b5d
- Fix premature closing of dwarf handle.
5e2b5d
5e2b5d
* Fri Jun 22 2018 Nick Clifton <nickc@redhat.com> - 6.4-1
5e2b5d
- Fix scoping bug computing the name of a separate debuginfo file.
5e2b5d
5e2b5d
* Tue Jun 19 2018 Nick Clifton <nickc@redhat.com> - 6.3-1
5e2b5d
- Fix file descriptor leak.
5e2b5d
5e2b5d
* Tue Jun 19 2018 Nick Clifton <nickc@redhat.com> - 6.2-1
5e2b5d
- Add command line options to annocheck to disable individual tests.
5e2b5d
5e2b5d
* Fri Jun 08 2018 Nick Clifton <nickc@redhat.com> - 6.1-1
5e2b5d
- Remove C99-ism from annocheck sources.
5e2b5d
5e2b5d
* Wed Jun 06 2018 Nick Clifton <nickc@redhat.com> - 6.0-1
5e2b5d
- Add the annocheck program.
5e2b5d
5e2b5d
* Fri Jun 01 2018 Nick Clifton <nickc@redhat.com> - 5.11-1
5e2b5d
- Do not use the SHF_GNU_BUILD_NOTE section flag.
5e2b5d
5e2b5d
* Thu May 31 2018 Nick Clifton <nickc@redhat.com> - 5.10-1
5e2b5d
- Remove .sh extension from shell scripts.
5e2b5d
5e2b5d
* Wed May 30 2018 Nick Clifton <nickc@redhat.com> - 5.9-1
5e2b5d
- Record the setting of the -mstackrealign option for i686 binaries.
5e2b5d
5e2b5d
* Mon May 14 2018 Nick Clifton <nickc@redhat.com> - 5.8-1
5e2b5d
- Hide the annobin start of file symbol.
5e2b5d
5e2b5d
* Tue May 08 2018 Nick Clifton <nickc@redhat.com> - 5.7-1
5e2b5d
- Fix script bug in hardended.sh.  (Thanks to: Stefan Sørensen <stefan.sorensen@spectralink.com>)
5e2b5d
5e2b5d
* Thu May 03 2018 Nick Clifton <nickc@redhat.com> - 5.6-3
5e2b5d
- Version number bump so that the plugin can be rebuilt with the latest version of GCC.
5e2b5d
5e2b5d
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-2
5e2b5d
- Rebuild the plugin with the newly created plugin enabled.  (#1573082)
5e2b5d
5e2b5d
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-1
5e2b5d
- Skip the isa_flags check in the ABI test because the crt[in].o files are compiled with different flags from the test files.
5e2b5d
5e2b5d
* Fri Apr 20 2018 Nick Clifton <nickc@redhat.com> - 5.3-1
5e2b5d
- Add manual pages for annobin and the scripts.
5e2b5d
5e2b5d
* Tue Apr 03 2018 Nick Clifton <nickc@redhat.com> - 5.2-1
5e2b5d
- Do not record a stack protection setting of -1.  (#1563141)
5e2b5d
5e2b5d
* Tue Mar 20 2018 Nick Clifton <nickc@redhat.com> - 5.1-1
5e2b5d
- Do not complain about a dwarf_version value of -1.  (#1557511)
5e2b5d
5e2b5d
* Thu Mar 15 2018 Nick Clifton <nickc@redhat.com> - 5.0-1
5e2b5d
- Bias file start symbols by 2 in order to avoid them confused with function symbols.  (#1554332)
5e2b5d
- Version jump is to sync the version number with the annobin plugins internal version number.
5e2b5d
5e2b5d
* Mon Mar 12 2018 Nick Clifton <nickc@redhat.com> - 3.6-1
5e2b5d
- Add --ignore-gaps option to check-abi.sh script.
5e2b5d
- Use this option in the abi-test check.
5e2b5d
- Tweak hardening test to skip pic and stack protection checks.
5e2b5d
5e2b5d
* Tue Mar 06 2018 Nick Clifton <nickc@redhat.com> - 3.5-1
5e2b5d
- Handle functions with specific assembler names.  (#1552018)
5e2b5d
5e2b5d
* Fri Feb 23 2018 Nick Clifton <nickc@redhat.com> - 3.4-2
5e2b5d
- Add an explicit requirement on the version of gcc used to built the plugin.  (#1547260)
5e2b5d
5e2b5d
* Fri Feb 09 2018 Nick Clifton <nickc@redhat.com> - 3.4-1
5e2b5d
- Change type and size of symbols to STT_NOTYPE/0 so that they do not confuse GDB.  (#1539664)
5e2b5d
- Add run-on-binaries-in.sh script to allow the other scripts to be run over a repository.
5e2b5d
5e2b5d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
5e2b5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5e2b5d
5e2b5d
* Tue Jan 30 2018 Nick Clifton <nickc@redhat.com> - 3.3-1
5e2b5d
- Rebase on 3.3 release, which adds support for recording -mcet and -fcf-protection.
5e2b5d
5e2b5d
* Mon Jan 29 2018 Florian Weimer <fweimer@redhat.com> - 3.2-3
5e2b5d
- Rebuild for GCC 8
5e2b5d
5e2b5d
* Fri Jan 26 2018 Nick Clifton <nickc@redhat.com> - 3.2-2
5e2b5d
- Fix the installation of the annobin.info file.
5e2b5d
5e2b5d
* Fri Jan 26 2018 Nick Clifton <nickc@redhat.com> - 3.2-1
5e2b5d
- Rebase on 3.2 release, which now contains documentation!
5e2b5d
5e2b5d
* Fri Jan 26 2018 Richard W.M. Jones <rjones@redhat.com> - 3.1-3
5e2b5d
- Rebuild against GCC 7.3.1.
5e2b5d
5e2b5d
* Tue Jan 16 2018 Nick Clifton <nickc@redhat.com> - 3.1-2
5e2b5d
- Add --with-gcc-plugin-dir option to the configure command line.
5e2b5d
5e2b5d
* Thu Jan 04 2018 Nick Clifton <nickc@redhat.com> - 3.1-1
5e2b5d
- Rebase on version 3.1 sources.
5e2b5d
5e2b5d
* Mon Dec 11 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-5
5e2b5d
- Do not generate notes when there is no output file.  (#1523875)
5e2b5d
5e2b5d
* Fri Dec 08 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-4
5e2b5d
- Invent an input filename when reading from a pipe.  (#1523401)
5e2b5d
5e2b5d
* Thu Nov 30 2017 Florian Weimer <fweimer@redhat.com> - 2.5.1-3
5e2b5d
- Use DECL_ASSEMBLER_NAME for symbol references (#1519165)
5e2b5d
5e2b5d
* Tue Oct 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.5.1-2
5e2b5d
- Cleanups in spec
5e2b5d
5e2b5d
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-1
5e2b5d
- Touch the auto-generated files in order to stop them from being regenerated.
5e2b5d
5e2b5d
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5-2
5e2b5d
- Stop the plugin complaining about compiler datestamp mismatches.
5e2b5d
5e2b5d
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.4-1
5e2b5d
- Tweak tests so that they will run on older machines.
5e2b5d
5e2b5d
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.3-1
5e2b5d
- Add annobin-tests subpackage containing some preliminary tests.
5e2b5d
- Remove link-time test for unsuported targets.
5e2b5d
5e2b5d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
5e2b5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5e2b5d
5e2b5d
* Mon Jul 31 2017 Florian Weimer <fweimer@redhat.com> - 2.0-2
5e2b5d
- Rebuild with binutils fix for ppc64le (#1475636)
5e2b5d
5e2b5d
* Wed Jun 28 2017 Nick Clifton <nickc@redhat.com> - 2.0-1
5e2b5d
- Fixes for problems reported by the package submission review:
5e2b5d
   * Add %%license entry to %%file section.
5e2b5d
   * Update License and BuildRequires tags.
5e2b5d
   * Add Requires tag.
5e2b5d
   * Remove %%clean.
5e2b5d
   * Add %%check.
5e2b5d
   * Clean up the %%changelog.
5e2b5d
- Update to use version 2 of the specification and sources.
5e2b5d
5e2b5d
* Thu May 11 2017 Nick Clifton <nickc@redhat.com> - 1.0-1
5e2b5d
- Initial submission.