8176b8
Summary: DWARF optimization and duplicate removal tool
8176b8
Name: dwz
8176b8
Version: 0.12
6b8961
Release: 10%{?dist}
8176b8
License: GPLv2+ and GPLv3+
8176b8
Group: Development/Tools
8176b8
# git archive --format=tar --remote=git://sourceware.org/git/dwz.git \
8176b8
#   --prefix=%%{name}-%%{version}/ %%{name}-%%{version} \
8176b8
#   | bzip2 -9 > %%{name}-%%{version}.tar.bz2
8176b8
Source: %{name}-%{version}.tar.bz2
8176b8
BuildRequires: gcc, elfutils-libelf-devel
8176b8
6b8961
Patch1: dwz-rh1949185.patch
6b8961
8176b8
%description
8176b8
The dwz package contains a program that attempts to optimize DWARF
8176b8
debugging information contained in ELF shared libraries and ELF executables
8176b8
for size, by replacing DWARF information representation with equivalent
8176b8
smaller representation where possible and by reducing the amount of
8176b8
duplication using techniques from DWARF standard appendix E - creating
8176b8
DW_TAG_partial_unit compilation units (CUs) for duplicated information
8176b8
and using DW_TAG_imported_unit to import it into each CU that needs it.
8176b8
8176b8
%prep
8176b8
%setup -q
6b8961
%patch1 -p1 -b .rh1949185~
8176b8
8176b8
%build
8176b8
make %{?_smp_mflags} CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
8176b8
  prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
8176b8
8176b8
%install
8176b8
rm -rf %{buildroot}
8176b8
make DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir} \
8176b8
  install
8176b8
8176b8
%files
8176b8
%license COPYING COPYING3 COPYING.RUNTIME
8176b8
%{_bindir}/dwz
8176b8
%{_mandir}/man1/dwz.1*
8176b8
8176b8
%changelog
6b8961
* Wed May  5 2021 Marek Polacek <polacek@redhat.com> 0.12-10
6b8961
- handle intra-CU DW_FORM_ref_addr reference (#1949185)
6b8961
8176b8
* Tue Aug  7 2018 Marek Polacek <polacek@redhat.com> 0.12-9
8176b8
- don't use arched BuildRequires (#1545773)
8176b8
- remove %defattr
8176b8
8176b8
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 0.12-7
8176b8
- Use LDFLAGS from redhat-rpm-config
8176b8
8176b8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-6
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8176b8
8176b8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-5
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8176b8
8176b8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-4
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8176b8
8176b8
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.12-3
8176b8
- Add missing %%license macro
8176b8
8176b8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8176b8
8176b8
* Mon Jul 13 2015 Jakub Jelinek <jakub@redhat.com> 0.12-1
8176b8
- fix up alignment of moved non-allocated sections and section header table
8176b8
8176b8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8176b8
8176b8
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.11-5
8176b8
- Rebuilt for Fedora 23 Change
8176b8
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
8176b8
8176b8
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8176b8
8176b8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8176b8
8176b8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8176b8
8176b8
* Tue Jul  2 2013 Jakub Jelinek <jakub@redhat.com> 0.11-1
8176b8
- handle .gdb_index version 8 (#969454)
8176b8
8176b8
* Mon Mar 11 2013 Jakub Jelinek <jakub@redhat.com> 0.10-1
8176b8
- when creating DW_AT_stmt_list, use DW_FORM_sec_offset for dwarf4
8176b8
  and DW_FORM_data4 for dwarf[23] rather than vice versa (#919755)
8176b8
8176b8
* Mon Feb  4 2013 Jakub Jelinek <jakub@redhat.com> 0.9-1
8176b8
- fix up handling of DIE equality if more than one DIE in the same
8176b8
  CU compare equal (#889283)
8176b8
- check DW_FORM_ref_addr properly during fi_multifile phase
8176b8
8176b8
* Thu Nov 29 2012 Jakub Jelinek <jakub@redhat.com> 0.8-1
8176b8
- fix recompute_abbrevs (#880634)
8176b8
- optimize DW_FORM_data[48] DW_AT_high_pc that GCC 4.8 produces
8176b8
8176b8
* Fri Aug 10 2012 Jakub Jelinek <jakub@redhat.com> 0.7-1
8176b8
- fix iterative hasing on big-endian targets (#846685)
8176b8
8176b8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
8176b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8176b8
8176b8
* Tue Jul 17 2012 Jakub Jelinek <jakub@redhat.com> 0.6-1
8176b8
- add --version/-v option support (Matt Newsome)
8176b8
- fix building on RHEL 5
8176b8
8176b8
* Wed Jul  4 2012 Jakub Jelinek <jakub@redhat.com> 0.5-1
8176b8
- handle .gdb_index version 7
8176b8
8176b8
* Fri Jun 22 2012 Jakub Jelinek <jakub@redhat.com> 0.4-1
8176b8
- fix up DIE counting in low-mem mode for testing the -L limit
8176b8
8176b8
* Fri Jun 15 2012 Jakub Jelinek <jakub@redhat.com> 0.3-1
8176b8
- update to dwz-0.3 (#830863)
8176b8
8176b8
* Mon Jun 11 2012 Jakub Jelinek <jakub@redhat.com> 0.2-1
8176b8
- new package