summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-10-23 15:13:53 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-10-23 15:13:53 +0900
commitdc51edc232ee14fec66f5424071635e996448bd6 (patch)
tree578ca3617290d245c960e02477423021b1900fff /packaging
parent64b87ac9afe34f94c079a91bb2d35acbacd4f2f5 (diff)
downloadelfutils-accepted/tizen_2.4_base.tar.gz
elfutils-accepted/tizen_2.4_base.tar.bz2
elfutils-accepted/tizen_2.4_base.zip
Diffstat (limited to 'packaging')
-rw-r--r--packaging/elfutils.changes480
-rw-r--r--packaging/elfutils.manifest8
-rw-r--r--packaging/elfutils.spec17
-rw-r--r--packaging/gcc47.patch69
-rw-r--r--packaging/gcc48.patch44
5 files changed, 613 insertions, 5 deletions
diff --git a/packaging/elfutils.changes b/packaging/elfutils.changes
new file mode 100644
index 0000000..afe4df7
--- /dev/null
+++ b/packaging/elfutils.changes
@@ -0,0 +1,480 @@
+* Fri Mar 07 2014 Dohyung Kim <dohyung2.kim@samsung.com> - None
+- PROJECT: external/elfutils
+- COMMIT_ID: 2ff0e357319319692c0f41bd6e70119bedc335bb
+- PATCHSET_REVISION: 2ff0e357319319692c0f41bd6e70119bedc335bb
+- CHANGE_OWNER: \"DoHyung Kim\" <dohyung2.kim@samsung.com>
+- PATCHSET_UPLOADER: \"DoHyung Kim\" <dohyung2.kim@samsung.com>
+- CHANGE_URL: http://slp-info.sec.samsung.net/gerrit/440977
+- PATCHSET_REVISION: 2ff0e357319319692c0f41bd6e70119bedc335bb
+- TAGGER: Dohyung Kim <dohyung2.kim@samsung.com>
+- Gerrit patchset approval info:
+- Newton Lee <newton.lee@samsung.com> Code-Review : 2
+- Newton Lee <newton.lee@samsung.com> Verified : 1
+- CHANGE_SUBJECT: install license file(elfutils-libs, elfutils-libelf)
+
+- install license file(elfutils-libs, elfutils-libelf)
+
+* Mon May 16 2011 Junfeng Dong <junfeng.dong@intel.com> - 0.152
+- Update to 0.152 (Fix the build error with newest gcc 4.6).
+
+* Tue Jul 06 2010 Passion Zhao <passion.zhao@intel.com> - 0.148
+- Update to 0.148
+- update to latest elfutils-robustify.patch
+- drop useless elfutils-0.143-warnings.patch
+
+* Wed Jan 27 2010 Passion Zhao <passion.zhao@intel.com> - 0.144
+- Update to 0.144
+
+* Sat Dec 05 2009 Anas Nashif <anas.nashif@intel.com> - 0.143
+- Update to 0.143
+
+* Wed Sep 03 2008 Anas Nashif <anas.nashif@intel.com>
+- fixed compile error
+
+* Thu Aug 14 2008 Jianfeng Mei <jianfeng.mei@intel.com>
+- Update branding info
+
+* Mon May 12 2008 Roland McGrath <roland@redhat.com> - 0.135-1
+- Update to 0.135
+ - libdwfl: bug fixes
+ - eu-strip: changed handling of ET_REL files wrt symbol tables and relocs
+
+* Wed Apr 9 2008 Roland McGrath <roland@redhat.com> - 0.134-1
+- Update to 0.134
+ - elflint: backend improvements for sparc, alpha (#204170)
+ - libdwfl, libelf: bug fixes (#439344, #438867, #438263, #438190)
+- Remove Conflicts: libelf-devel from elfutils-libelf-devel. (#435742)
+
+* Sun Mar 2 2008 Roland McGrath <roland@redhat.com> - 0.133-2
+- Update to 0.133
+ - readelf, elflint, libebl: SHT_GNU_ATTRIBUTE section handling (readelf -A)
+ - readelf: core note handling for NT_386_TLS, NT_PPC_SPE, Alpha NT_AUXV
+ - libdwfl: bug fixes and optimization in relocation handling
+ - elfcmp: bug fix for non-allocated section handling
+ - ld: implement newer features of binutils linker.
+- Install eu-objdump and libasm, now has limited disassembler support.
+
+* Mon Jan 21 2008 Roland McGrath <roland@redhat.com> - 0.132-3
+- Update to 0.132
+ - libelf: Use loff_t instead of off64_t in libelf.h header. (#377241)
+ - eu-readelf: Fix handling of ET_REL files in archives.
+ - libcpu: Implement x86 and x86-64 disassembler.
+ - libasm: Add interface for disassembler.
+ - all programs: add debugging of branch prediction.
+ - libelf: new function elf_scnshndx.
+
+* Sun Nov 11 2007 Roland McGrath <roland@redhat.com> - 0.131-1
+- Update to 0.131
+ - libdw: DW_FORM_ref_addr support; dwarf_formref entry point now deprecated;
+ bug fixes for oddly-formatted DWARF
+ - libdwfl: bug fixes in offline archive support, symbol table handling;
+ apply partial relocations for dwfl_module_address_section on ET_REL
+ - libebl: powerpc backend support for Altivec registers
+
+* Wed Oct 17 2007 Roland McGrath <roland@redhat.com> - 0.130-3
+- Fix ET_REL support.
+- Fix odd indentation in eu-readelf -x output.
+
+* Tue Oct 16 2007 Roland McGrath <roland@redhat.com> - 0.130-1
+- Update to 0.130
+ - eu-readelf -p option can take an argument like -x for one section
+ - eu-readelf --archive-index (or -c)
+ - eu-readelf -n improved output for core dumps
+ - eu-readelf: handle SHT_NOTE sections without requiring phdrs (#249467)
+ - eu-elflint: ditto
+ - eu-elflint: stricter checks on debug sections
+ - eu-unstrip: new options, --list (or -n), --relocate (or -R)
+ - libelf: new function elf_getdata_rawchunk, replaces gelf_rawchunk;
+ new functions gelf_getnote, gelf_getauxv, gelf_update_auxv
+ - libebl: backend improvements (#324031)
+ - libdwfl: build_id support, new functions for it
+ - libdwfl: dwfl_module_addrsym fixes (#268761, #268981)
+ - libdwfl offline archive support, new script eu-make-debug-archive
+
+* Mon Aug 20 2007 Roland McGrath <roland@redhat.com> - 0.129-2
+- Fix false-positive eu-elflint failure on ppc -mbss-plt binaries.
+
+* Tue Aug 14 2007 Roland McGrath <roland@redhat.com> - 0.129-1
+- Update to 0.129
+ - readelf: new options --hex-dump (or -x), --strings (or -p) (#250973)
+ - addr2line: new option --symbols (or -S)
+ - libdw: dwarf_getscopes fixes (#230235)
+ - libdwfl: dwfl_module_addrsym fixes (#249490)
+
+* Fri Jun 8 2007 Roland McGrath <roland@redhat.com> - 0.128-2
+- Update to 0.128
+ - new program: unstrip
+ - elfcmp: new option --hash-inexact
+- Replace Conflicts: with Provides/Requires using -arch
+
+* Wed Apr 18 2007 Roland McGrath <roland@redhat.com> - 0.127-1
+- Update to 0.127
+ - libdw: new function dwarf_getsrcdirs
+ - libdwfl: new functions dwfl_module_addrsym, dwfl_report_begin_add,
+ dwfl_module_address_section
+
+* Mon Feb 5 2007 Roland McGrath <roland@redhat.com> - 0.126-1
+- Update to 0.126
+ - New program eu-ar.
+ - libdw: fix missing dwarf_getelf (#227206)
+ - libdwfl: dwfl_module_addrname for st_size=0 symbols (#227167, #227231)
+- Resolves: RHBZ #227206, RHBZ #227167, RHBZ #227231
+
+* Wed Jan 10 2007 Roland McGrath <roland@redhat.com> - 0.125-3
+- Fix overeager warn_unused_result build failures.
+
+* Wed Jan 10 2007 Roland McGrath <roland@redhat.com> - 0.125-1
+- Update to 0.125
+ - elflint: Compare DT_GNU_HASH tests.
+ - move archives into -static RPMs
+ - libelf, elflint: better support for core file handling
+ - Really fix libdwfl sorting of modules with 64-bit addresses (#220817).
+- Resolves: RHBZ #220817, RHBZ #213792
+
+* Tue Oct 10 2006 Roland McGrath <roland@redhat.com> - 0.124-1
+- eu-strip -f: copy symtab into debuginfo file when relocs use it (#203000)
+- Update to 0.124
+ - libebl: fix ia64 reloc support (#206981)
+ - libebl: sparc backend support for return value location
+ - libebl, libdwfl: backend register name support extended with more info
+ - libelf, libdw: bug fixes for unaligned accesses on machines that care
+ - readelf, elflint: trivial bugs fixed
+
+* Mon Aug 14 2006 Roland McGrath <roland@redhat.com> 0.123-1
+- Update to 0.123
+ - libebl: Backend build fixes, thanks to Stepan Kasal.
+ - libebl: ia64 backend support for register names, return value location
+ - libdwfl: Handle truncated linux kernel module section names.
+ - libdwfl: Look for linux kernel vmlinux files with .debug suffix.
+ - elflint: Fix checks to permit --hash-style=gnu format.
+
+* Mon Jul 17 2006 Roland McGrath <roland@redhat.com> - 0.122-4
+- Fix warnings in elflint compilation.
+
+* Wed Jul 12 2006 Roland McGrath <roland@redhat.com> - 0.122-3
+- Update to 0.122
+ - Fix libdwfl sorting of modules with 64-bit addresses (#198225).
+ - libebl: add function to test for relative relocation
+ - elflint: fix and extend DT_RELCOUNT/DT_RELACOUNT checks
+ - elflint, readelf: add support for DT_GNU_HASH
+ - libelf: add elf_gnu_hash
+ - elflint, readelf: add support for 64-bit SysV-style hash tables
+ - libdwfl: new functions dwfl_module_getsymtab, dwfl_module_getsym.
+
+* Thu Jun 15 2006 Roland McGrath <roland@redhat.com> - 0.121-1
+- Update to 0.121
+ - libelf: bug fixes for rewriting existing files when using mmap (#187618).
+ - make all installed headers usable in C++ code (#193153).
+ - eu-readelf: better output format.
+ - eu-elflint: fix tests of dynamic section content.
+ - libdw, libdwfl: handle files without aranges info.
+
+* Thu May 25 2006 Jeremy Katz <katzj@redhat.com> - 0.120-3
+- rebuild to pick up -devel deps
+
+* Tue Apr 4 2006 Roland McGrath <roland@redhat.com> - 0.120-2
+- Update to 0.120
+ - License changed to GPL, with some exceptions for using
+ the libelf, libebl, libdw, and libdwfl library interfaces.
+ Red Hat elfutils is an included package of the Open Invention Network.
+ - dwarf.h updated for DWARF 3.0 final specification.
+ - libelf: Fix corruption in ELF_C_RDWR uses (#187618).
+ - libdwfl: New function dwfl_version; fixes for offline.
+
+* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.119-1.2.1
+- bump again for double-long bug on ppc(64)
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.119-1.2
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Fri Jan 13 2006 Roland McGrath <roland@redhat.com> - 0.119-1
+- update to 0.119
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Sun Nov 27 2005 Roland McGrath <roland@redhat.com> - 0.118-1
+- update to 0.118
+ - elflint: more tests.
+ - libdwfl: New function dwfl_module_register_names.
+ - libebl: New backend hook for register names.
+- Make sure -fexceptions is always in CFLAGS.
+
+* Tue Nov 22 2005 Roland McGrath <roland@redhat.com> - 0.117-2
+- update to 0.117
+ - libdwfl: New function dwfl_module_return_value_location (#166118)
+ - libebl: Backend improvements for several CPUs
+
+* Mon Oct 31 2005 Roland McGrath <roland@redhat.com> - 0.116-1
+- update to 0.116
+ - libdw fixes, API changes and additions
+ - libdwfl fixes (#169672)
+ - eu-strip/libelf fix to preserve setuid/setgid permission bits (#167745)
+
+* Fri Sep 9 2005 Roland McGrath <roland@redhat.com> - 0.115-3
+- Update requires/conflicts for better biarch update behavior.
+
+* Mon Sep 5 2005 Roland McGrath <roland@redhat.com> - 0.115-2
+- update to 0.115
+ - New program eu-strings.
+ - libdw: New function dwarf_getscopes_die.
+ - libelf: speed-ups of non-mmap reading.
+ - Implement --enable-gcov option for configure.
+
+* Wed Aug 24 2005 Roland McGrath <roland@redhat.com> - 0.114-1
+- update to 0.114
+ - new program eu-ranlib
+ - libdw: new calls for inlines
+ - libdwfl: new calls for offline modules
+
+* Sat Aug 13 2005 Roland McGrath <roland@redhat.com> - 0.113-2
+- update to 0.113
+ - elflint: relax a bit. Allow version definitions for defined symbols
+ against DSO versions also for symbols in nobits sections.
+ Allow .rodata section to have STRINGS and MERGE flag set.
+ - strip: add some more compatibility with binutils.
+ - libdwfl: bug fixes.
+- Separate libdw et al into elfutils-libs subpackage.
+
+* Sat Aug 6 2005 Roland McGrath <roland@redhat.com> - 0.112-1
+- update to 0.112
+ - elfcmp: some more relaxation.
+ - elflint: many more tests, especially regarding to symbol versioning.
+ - libelf: Add elfXX_offscn and gelf_offscn.
+ - libasm: asm_begin interface changes.
+ - libebl: Add three new interfaces to directly access machine, class,
+ and data encoding information.
+
+* Fri Jul 29 2005 Roland McGrath <roland@redhat.com> - 0.111-2
+- update portability patch
+
+* Thu Jul 28 2005 Roland McGrath <roland@redhat.com> - 0.111-1
+- update to 0.111
+ - libdwfl library now merged into libdw
+
+* Sun Jul 24 2005 Roland McGrath <roland@redhat.com> - 0.110-1
+- update to 0.110
+
+* Fri Jul 22 2005 Roland McGrath <roland@redhat.com> - 0.109-2
+- update to 0.109
+ - verify that libebl modules are from the same build
+ - new eu-elflint checks on copy relocations
+ - new program eu-elfcmp
+ - new experimental libdwfl library
+
+* Thu Jun 9 2005 Roland McGrath <roland@redhat.com> - 0.108-5
+- robustification of eu-strip and eu-readelf
+
+* Wed May 25 2005 Roland McGrath <roland@redhat.com> - 0.108-3
+- more robustification
+
+* Mon May 16 2005 Roland McGrath <roland@redhat.com> - 0.108-2
+- robustification
+
+* Mon May 9 2005 Roland McGrath <roland@redhat.com> - 0.108-1
+- update to 0.108
+ - merge strip fixes
+ - sort records in dwarf_getsrclines, fix dwarf_getsrc_die searching
+ - update elf.h from glibc
+
+* Sun May 8 2005 Roland McGrath <roland@redhat.com> - 0.107-2
+- fix strip -f byte-swapping bug
+
+* Sun May 8 2005 Roland McGrath <roland@redhat.com> - 0.107-1
+- update to 0.107
+ - readelf: improve DWARF output format
+ - elflint: -d option to support checking separate debuginfo files
+ - strip: fix ET_REL debuginfo files (#156341)
+
+* Mon Apr 4 2005 Roland McGrath <roland@redhat.com> - 0.106-3
+- fix some bugs in new code, reenable make check
+
+* Mon Apr 4 2005 Roland McGrath <roland@redhat.com> - 0.106-2
+- disable make check for most arches, for now
+
+* Mon Apr 4 2005 Roland McGrath <roland@redhat.com> - 0.106-1
+- update to 0.106
+
+* Mon Mar 28 2005 Roland McGrath <roland@redhat.com> - 0.104-2
+- update to 0.104
+
+* Wed Mar 23 2005 Jakub Jelinek <jakub@redhat.com> 0.103-2
+- update to 0.103
+
+* Wed Feb 16 2005 Jakub Jelinek <jakub@redhat.com> 0.101-2
+- update to 0.101.
+- use %%configure macro to get CFLAGS etc. right
+
+* Sat Feb 5 2005 Jeff Johnson <jbj@redhat.com> 0.99-2
+- upgrade to 0.99.
+
+* Sun Sep 26 2004 Jeff Johnson <jbj@redhat.com> 0.97-3
+- upgrade to 0.97.
+
+* Tue Aug 17 2004 Jakub Jelinek <jakub@redhat.com> 0.95-5
+- upgrade to 0.96.
+
+* Mon Jul 5 2004 Jakub Jelinek <jakub@redhat.com> 0.95-4
+- rebuilt with GCC 3.4.x, workaround VLA + alloca mixing
+ warning
+
+* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Apr 2 2004 Jeff Johnson <jbj@redhat.com> 0.95-2
+- upgrade to 0.95.
+
+* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1
+- upgrade to 0.94
+
+* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.93-1
+- upgrade to 0.93
+
+* Thu Jan 8 2004 Jakub Jelinek <jakub@redhat.com> 0.92-1
+- full version
+- macroized spec file for GPL or OSL builds
+- include only libelf under GPL plus wrapper scripts
+
+* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-2
+- macroized spec file for GPL or OSL builds
+
+* Wed Jan 7 2004 Ulrich Drepper <drepper@redhat.com>
+- split elfutils-devel into two packages.
+
+* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-1
+- include only libelf under GPL plus wrapper scripts
+
+* Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 0.89-3
+- readelf, not readline, in %%description (#111214).
+
+* Fri Sep 26 2003 Bill Nottingham <notting@redhat.com> 0.89-1
+- update to 0.89 (fix eu-strip)
+
+* Tue Sep 23 2003 Jakub Jelinek <jakub@redhat.com> 0.86-3
+- update to 0.86 (fix eu-strip on s390x/alpha)
+- libebl is an archive now; remove references to DSO
+
+* Mon Jul 14 2003 Jeff Johnson <jbj@redhat.com> 0.84-3
+- upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed).
+
+* Fri Jul 11 2003 Jeff Johnson <jbj@redhat.com> 0.83-3
+- upgrade to 0.83 (fix invalid ELf handle on *.so strip, more).
+
+* Wed Jul 9 2003 Jeff Johnson <jbj@redhat.com> 0.82-3
+- upgrade to 0.82 (strip tests fixed on big-endian).
+
+* Tue Jul 8 2003 Jeff Johnson <jbj@redhat.com> 0.81-3
+- upgrade to 0.81 (strip excludes unused symtable entries, test borked).
+
+* Thu Jun 26 2003 Jeff Johnson <jbj@redhat.com> 0.80-3
+- upgrade to 0.80 (debugedit changes for kernel in progress).
+
+* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
+- rebuilt
+
+* Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 0.79-2
+- upgrade to 0.79 (correct formats for size_t, more of libdw "works").
+
+* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 0.78-2
+- upgrade to 0.78 (libdwarf bugfix, libdw additions).
+
+* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
+- debuginfo rebuild
+
+* Thu Feb 20 2003 Jeff Johnson <jbj@redhat.com> 0.76-2
+- use the correct way of identifying the section via the sh_info link.
+
+* Sat Feb 15 2003 Jakub Jelinek <jakub@redhat.com> 0.75-2
+- update to 0.75 (eu-strip -g fix)
+
+* Tue Feb 11 2003 Jakub Jelinek <jakub@redhat.com> 0.74-2
+- update to 0.74 (fix for writing with some non-dirty sections)
+
+* Thu Feb 6 2003 Jeff Johnson <jbj@redhat.com> 0.73-3
+- another -0.73 update (with sparc fixes).
+- do "make check" in %%check, not %%install, section.
+
+* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 0.73-2
+- update to 0.73 (with s390 fixes).
+
+* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
+- rebuilt
+
+* Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
+- fix arguments to gelf_getsymshndx and elf_getshstrndx
+- fix other warnings
+- reenable checks on s390x
+
+* Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
+- temporarily disable checks on s390x, until someone has
+ time to look at it
+
+* Thu Dec 12 2002 Jakub Jelinek <jakub@redhat.com> 0.72-2
+- update to 0.72
+
+* Wed Dec 11 2002 Jakub Jelinek <jakub@redhat.com> 0.71-2
+- update to 0.71
+
+* Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 0.69-4
+- update to 0.69.
+- add "make check" and segfault avoidance patch.
+- elfutils-libelf needs to run ldconfig.
+
+* Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 0.68-2
+- update to 0.68.
+
+* Fri Dec 6 2002 Jeff Johnson <jbj@redhat.com> 0.67-2
+- update to 0.67.
+
+* Tue Dec 3 2002 Jeff Johnson <jbj@redhat.com> 0.65-2
+- update to 0.65.
+
+* Mon Dec 2 2002 Jeff Johnson <jbj@redhat.com> 0.64-2
+- update to 0.64.
+
+* Sun Dec 1 2002 Ulrich Drepper <drepper@redhat.com> 0.64
+- split packages further into elfutils-libelf
+
+* Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 0.63-2
+- update to 0.63.
+
+* Fri Nov 29 2002 Ulrich Drepper <drepper@redhat.com> 0.62
+- Adjust for dropping libtool
+
+* Sun Nov 24 2002 Jeff Johnson <jbj@redhat.com> 0.59-2
+- update to 0.59
+
+* Thu Nov 14 2002 Jeff Johnson <jbj@redhat.com> 0.56-2
+- update to 0.56
+
+* Thu Nov 7 2002 Jeff Johnson <jbj@redhat.com> 0.54-2
+- update to 0.54
+
+* Sun Oct 27 2002 Jeff Johnson <jbj@redhat.com> 0.53-2
+- update to 0.53
+- drop x86_64 hack, ICE fixed in gcc-3.2-11.
+
+* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 0.52-3
+- get beehive to punch a rhpkg generated package.
+
+* Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 0.52-2
+- build in 8.0.1.
+- x86_64: avoid gcc-3.2 ICE on x86_64 for now.
+
+* Tue Oct 22 2002 Ulrich Drepper <drepper@redhat.com> 0.52
+- Add libelf-devel to conflicts for elfutils-devel
+
+* Mon Oct 21 2002 Ulrich Drepper <drepper@redhat.com> 0.50
+- Split into runtime and devel package
+
+* Fri Oct 18 2002 Ulrich Drepper <drepper@redhat.com> 0.49
+- integrate into official sources
+
+* Wed Oct 16 2002 Jeff Johnson <jbj@redhat.com> 0.46-1
+- Swaddle.
diff --git a/packaging/elfutils.manifest b/packaging/elfutils.manifest
new file mode 100644
index 0000000..5f00339
--- /dev/null
+++ b/packaging/elfutils.manifest
@@ -0,0 +1,8 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+ <assign>
+ <filesystem path="/usr/bin/*" exec_label="none" />
+ </assign>
+</manifest>
diff --git a/packaging/elfutils.spec b/packaging/elfutils.spec
index 8d30b1b..33b5114 100644
--- a/packaging/elfutils.spec
+++ b/packaging/elfutils.spec
@@ -10,13 +10,17 @@
Name: elfutils
Version: 0.152
Release: 1
+VCS: external/elfutils#submit/trunk/20121019.091749-3-g2ff0e357319319692c0f41bd6e70119bedc335bb
License: GPLv2 with exceptions
Summary: A collection of utilities and DSOs to handle compiled objects
Url: https://fedorahosted.org/elfutils/
Group: Development/Tools
Source: http://fedorahosted.org/releases/e/l/elfutils/%{name}-%{version}.tar.bz2
+Source1001: elfutils.manifest
Patch1: elfutils-robustify.patch
Patch2: elfutils-portability.patch
+Patch3: gcc47.patch
+Patch4: gcc48.patch
Requires: elfutils-libelf-%{_arch} = %{version}
Requires: elfutils-libs-%{_arch} = %{version}
@@ -118,7 +122,10 @@ for libelf.
%prep
%setup -q
+cp %{SOURCE1001} .
%patch1 -p1 -b .robustify
+%patch3 -p1
+%patch4 -p1
%if !0%{?scanf_has_m}
sed -i.scanf-m -e 's/%m/%a/g' src/addr2line.c tests/line2addr.c
@@ -133,8 +140,10 @@ find . -name \*.sh ! -perm -0100 -print | xargs chmod +x
RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-Wall/}
RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-Wunused/}
-%reconfigure CFLAGS="%{optflags} -fexceptions" --disable-nls
-make %{?_smp_mflags}
+CFLAGS=${CFLAGS/-Wformat-security/}
+
+%reconfigure CFLAGS="$CFLAGS -fexceptions" --disable-nls
+make
%install
make -s install DESTDIR=%{buildroot}
@@ -147,9 +156,6 @@ chmod +x %{buildroot}%{_libdir}/elfutils/lib*.so*
rm -f .%{_bindir}/eu-ld
)
-%check
-#make -s check
-
mkdir -p %{buildroot}/usr/share/license
cp -f COPYING %{buildroot}/usr/share/license/%{name}
cp -f COPYING %{buildroot}/usr/share/license/%{name}-libs
@@ -185,6 +191,7 @@ rm -rf %{buildroot}
%{_bindir}/eu-unstrip
%{_bindir}/eu-make-debug-archive
/usr/share/license/%{name}
+%manifest %{name}.manifest
%files libs
%defattr(-,root,root)
diff --git a/packaging/gcc47.patch b/packaging/gcc47.patch
new file mode 100644
index 0000000..542401b
--- /dev/null
+++ b/packaging/gcc47.patch
@@ -0,0 +1,69 @@
+diff --git a/lib/md5.c b/lib/md5.c
+index 0770561..e1e6914 100644
+--- a/lib/md5.c
++++ b/lib/md5.c
+@@ -82,6 +82,16 @@ md5_read_ctx (ctx, resbuf)
+ return resbuf;
+ }
+
++static void
++le64_copy (char *dest, uint64_t x)
++{
++ for (size_t i = 0; i < 8; ++i)
++ {
++ dest[i] = (uint8_t) x;
++ x >>= 8;
++ }
++}
++
+ /* Process the remaining bytes in the internal buffer and the usual
+ prolog according to the standard and write the result to RESBUF.
+
+@@ -104,10 +114,11 @@ md5_finish_ctx (ctx, resbuf)
+ pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes;
+ memcpy (&ctx->buffer[bytes], fillbuf, pad);
+
+- /* Put the 64-bit file length in *bits* at the end of the buffer. */
+- *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3);
+- *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) |
+- (ctx->total[0] >> 29));
++ /* Put the 64-bit file length in *bits* at the end of the buffer. */
++ const uint64_t bit_length = ((ctx->total[0] << 3)
++ + ((uint64_t) ((ctx->total[1] << 3) |
++ (ctx->total[0] >> 29)) << 32));
++ le64_copy (&ctx->buffer[bytes + pad], bit_length);
+
+ /* Process last bytes. */
+ md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
+diff --git a/lib/sha1.c b/lib/sha1.c
+index 0459cd6..59a9aca 100644
+--- a/lib/sha1.c
++++ b/lib/sha1.c
+@@ -83,6 +83,13 @@ sha1_read_ctx (ctx, resbuf)
+ return resbuf;
+ }
+
++static void
++be64_copy (char *dest, uint64_t x)
++{
++ for (size_t i = 8; i-- > 0; x >>= 8)
++ dest[i] = (uint8_t) x;
++}
++
+ /* Process the remaining bytes in the internal buffer and the usual
+ prolog according to the standard and write the result to RESBUF.
+
+@@ -106,9 +113,10 @@ sha1_finish_ctx (ctx, resbuf)
+ memcpy (&ctx->buffer[bytes], fillbuf, pad);
+
+ /* Put the 64-bit file length in *bits* at the end of the buffer. */
+- *(sha1_uint32 *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) |
+- (ctx->total[0] >> 29));
+- *(sha1_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3);
++ const uint64_t bit_length = ((ctx->total[0] << 3)
++ + ((uint64_t) ((ctx->total[1] << 3) |
++ (ctx->total[0] >> 29)) << 32));
++ be64_copy (&ctx->buffer[bytes + pad], bit_length);
+
+ /* Process last bytes. */
+ sha1_process_block (ctx->buffer, bytes + pad + 8, ctx);
diff --git a/packaging/gcc48.patch b/packaging/gcc48.patch
new file mode 100644
index 0000000..6fb0106
--- /dev/null
+++ b/packaging/gcc48.patch
@@ -0,0 +1,44 @@
+diff --git a/src/ar.c b/src/ar.c
+index 149d116..8e2abbe 100644
+--- a/src/ar.c
++++ b/src/ar.c
+@@ -915,7 +915,7 @@ do_oper_delete (const char *arfname, char **argv, int argc,
+ long int instance)
+ {
+ bool *found = alloca (sizeof (bool) * argc);
+- memset (found, '\0', sizeof (found));
++ memset (found, '\0', sizeof (bool) * argc);
+
+ /* List of the files we keep. */
+ struct armem *to_copy = NULL;
+diff --git a/src/nm.c b/src/nm.c
+index 01519a5..7d1d1ce 100644
+--- a/src/nm.c
++++ b/src/nm.c
+@@ -752,8 +752,9 @@ show_symbols_sysv (Ebl *ebl, GElf_Word strndx,
+ gelf_getshdr (scn, &shdr_mem)->sh_name);
+ if (unlikely (name == NULL))
+ {
+- name = alloca (sizeof "[invalid sh_name 0x12345678]");
+- snprintf (name, sizeof name, "[invalid sh_name %#" PRIx32 "]",
++ const size_t bufsz = sizeof "[invalid sh_name 0x12345678]";
++ name = alloca (bufsz);
++ snprintf (name, bufsz, "[invalid sh_name %#" PRIx32 "]",
+ gelf_getshdr (scn, &shdr_mem)->sh_name);
+ }
+ scnnames[elf_ndxscn (scn)] = name;
+diff --git a/src/readelf.c b/src/readelf.c
+old mode 100644
+new mode 100755
+index 81ef6a9..b52b56e
+--- a/src/readelf.c
++++ b/src/readelf.c
+@@ -4625,7 +4625,7 @@ register_info (Ebl *ebl, unsigned int regno, const Ebl_Register_Location *loc,
+ bits ?: &ignore, type ?: &ignore);
+ if (n <= 0)
+ {
+- snprintf (name, sizeof name, "reg%u", loc->regno);
++ snprintf (name, REGNAMESZ, "reg%u", loc->regno);
+ if (bits != NULL)
+ *bits = loc->bits;
+ if (type != NULL)