blob: 5775615852f3987aa068fc43608d03935585c23d [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001# -*- rpm-spec-*-
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00002Summary: A collection of utilities and DSOs to handle compiled objects.
3Name: elfutils
4Version: @PACKAGE_VERSION@
5Release: 1
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00006License: GPL
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00007Group: Development/Tools
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00008Source: elfutils-%{version}.tar.gz
9Obsoletes: libelf libelf-devel
10Requires: elfutils-libelf = %{version}-%{release}
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000011Requires: glibc >= 2.3.1-2
12
13# ExcludeArch: xxx
14
15BuildRoot: %{_tmppath}/%{name}-root
16BuildRequires: gcc >= 3.4
17BuildRequires: bison >= 1.875
18BuildRequires: flex >= 2.5.4a
19BuildRequires: bzip2
20
21%define _gnu %{nil}
22%define _programprefix eu-
23
24%description
25Elfutils is a collection of utilities, including ld (a linker),
26nm (for listing symbols from object files), size (for listing the
27section sizes of an object or archive file), strip (for discarding
28symbols), readelf (to see the raw ELF file structures), and elflint
29(to check for well-formed ELF files). Also included are numerous
30helper libraries which implement DWARF, ELF, and machine-specific ELF
31handling.
32
33%package devel
34Summary: Development libraries to handle compiled objects.
35Group: Development/Tools
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000036Requires: elfutils = %{version}-%{release}
37Requires: elfutils-libelf-devel = %{version}-%{release}
38
39%description devel
40The elfutils-devel package contains the libraries to create
41applications for handling compiled objects. libebl provides some
42higher-level ELF access functionality. libdw provides access to
43the DWARF debugging information. libasm provides a programmable
44assembler interface.
45
46%package libelf
47Summary: Library to read and write ELF files.
48Group: Development/Tools
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000049
50%description libelf
51The elfutils-libelf package provides a DSO which allows reading and
52writing ELF files on a high level. Third party programs depend on
53this package to read internals of ELF files. The programs of the
54elfutils package use it also to generate new ELF files.
55
56%package libelf-devel
57Summary: Development support for libelf
58Group: Development/Tools
59Requires: elfutils-libelf = %{version}-%{release}
60Conflicts: libelf-devel
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000061
62%description libelf-devel
63The elfutils-libelf-devel package contains the libraries to create
64applications for handling compiled objects. libelf allows you to
65access the internals of the ELF object file format, so you can see the
66different sections of an ELF file.
67
68%prep
69%setup -q
70
71%build
72%configure --program-prefix=%{_programprefix}
73make
74
75%install
76rm -rf ${RPM_BUILD_ROOT}
77mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
78
79%makeinstall
80
81chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000082chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000083
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000084# XXX Nuke unpackaged files
85{ cd ${RPM_BUILD_ROOT}
86 rm -f .%{_bindir}/eu-ld
87 rm -f .%{_includedir}/elfutils/libasm.h
88 rm -f .%{_libdir}/libasm-%{version}.so
89 rm -f .%{_libdir}/libasm.so.*
90 rm -f .%{_libdir}/libasm.so
91 rm -f .%{_libdir}/libasm.a
92}
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000093
94%check
95make check
96
97%clean
98rm -rf ${RPM_BUILD_ROOT}
99
100%post -p /sbin/ldconfig
101
102%postun -p /sbin/ldconfig
103
104%post libelf -p /sbin/ldconfig
105
106%postun libelf -p /sbin/ldconfig
107
108%files
109%defattr(-,root,root)
110%doc README TODO
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000111%{_bindir}/eu-elflint
112%{_bindir}/eu-nm
113%{_bindir}/eu-readelf
114%{_bindir}/eu-size
115%{_bindir}/eu-strip
116%{_bindir}/eu-findtextrel
117%{_bindir}/eu-addr2line
118%{_bindir}/eu-elfcmp
Ulrich Drepperfbe998a2005-08-29 16:27:10 +0000119%{_bindir}/eu-ranlib
120%{_bindir}/eu-strings
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000121#%{_bindir}/eu-ld
122#%{_libdir}/libasm-%{version}.so
123%{_libdir}/libdw-%{version}.so
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000124#%{_libdir}/libasm.so.*
125%{_libdir}/libdw.so.*
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000126%dir %{_libdir}/elfutils
127%{_libdir}/elfutils/lib*.so
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000128
129%files devel
130%defattr(-,root,root)
131%{_includedir}/dwarf.h
132%dir %{_includedir}/elfutils
133%{_includedir}/elfutils/elf-knowledge.h
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000134%{_includedir}/elfutils/libebl.h
135%{_includedir}/elfutils/libdw.h
136%{_includedir}/elfutils/libdwfl.h
137#%{_libdir}/libasm.a
138%{_libdir}/libebl.a
139%{_libdir}/libdw.a
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000140#%{_libdir}/libasm.so
141%{_libdir}/libdw.so
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000142
143%files libelf
144%defattr(-,root,root)
145%{_libdir}/libelf-%{version}.so
146%{_libdir}/libelf.so.*
147
148%files libelf-devel
149%defattr(-,root,root)
150%{_includedir}/libelf.h
151%{_includedir}/gelf.h
152%{_includedir}/nlist.h
153%{_libdir}/libelf.a
154%{_libdir}/libelf.so
155
156%changelog
Ulrich Drepper955e1842006-10-10 17:32:41 +0000157* Tue Oct 10 2006 Ulrich Drepper <drepper@redhat.com> 0.124-1
158- libebl: sparc backend support for return value location
159- libebl, libdwfl: backend register name support extended with more info
160- libelf, libdw: bug fixes for unaligned accesses on machines that care
161- readelf, elflint: trivial bugs fixed
162
Roland McGrath1dee3602006-08-15 01:57:03 +0000163* Mon Aug 14 2006 Roland McGrath <roland@redhat.com> 0.123-1
164- libebl: Backend build fixes, thanks to Stepan Kasal.
165- libebl: ia64 backend support for register names, return value location
166- libdwfl: Handle truncated linux kernel module section names.
167- libdwfl: Look for linux kernel vmlinux files with .debug suffix.
168- elflint: Fix checks to permit --hash-style=gnu format.
169
Ulrich Drepperf48d0b02006-07-12 20:46:54 +0000170* Wed Jul 12 2006 Ulrich Drepper <drepper@redhat.com> 0.122-1
171- libebl: add function to test for relative relocation
172- elflint: fix and extend DT_RELCOUNT/DT_RELACOUNT checks
173- elflint, readelf: add support for DT_GNU_HASHlibelf: add elf_gnu_hash
174- elflint, readelf: add support for 64-bit SysV-style hash tables
175- libdwfl: new functions dwfl_module_getsymtab, dwfl_module_getsym.
176
Ulrich Drepperee4b9272006-06-15 03:21:46 +0000177* Wed Jun 14 2006 <drepper@redhat.com> 0.121-1
178- libelf: bug fixes for rewriting existing files when using mmap.
179- make all installed headers usable in C++ code.
180- readelf: better output format.
181- elflint: fix tests of dynamic section content.
182- ld: Implement --as-needed, --execstack, PT_GNU_STACK. Many small patc
183hes.
184- libdw, libdwfl: handle files without aranges info.
Ulrich Drepperd9a87122006-05-28 08:00:33 +0000185
Ulrich Drepper3a5052a2006-04-05 03:13:34 +0000186* Tue Apr 4 2006 Ulrich Drepper <drepper@redhat.com> 0.120-1
187- Bug fixes.
188- dwarf.h updated for DWARF 3.0 final specification.
189- libdwfl: New function dwfl_version.
190- The license is now GPL for most files. The libelf, libebl, libdw,and
191libdwfl libraries have additional exceptions. Add reference toOIN.
192
Ulrich Drepper361df7d2006-04-04 21:38:57 +0000193* Thu Jan 12 2006 Roland McGrath <roland@redhat.com> 0.119-1
Roland McGrath321327a2006-01-13 00:51:21 +0000194- elflint: more tests.
195- libdwfl: New function dwfl_module_register_names.
196- libebl: New backend hook for register names.
197
Ulrich Drepper539529a2005-12-07 00:52:10 +0000198* Tue Dec 6 2005 Ulrich Drepper <drepper@redhat.com> 0.118-1
199- elflint: more tests.
200- libdwfl: New function dwfl_module_register_names.
201- libebl: New backend hook for register names.
202
Ulrich Drepper32240f32005-11-18 03:25:35 +0000203* Thu Nov 17 2005 Ulrich Drepper <drepper@redhat.com> 0.117-1
204- libdwfl: New function dwfl_module_return_value_location.
205- libebl: Backend improvements for several CPUs.
206
Ulrich Dreppercf18d522005-10-31 20:19:31 +0000207* Mon Oct 31 2005 Ulrich Drepper <drepper@redhat.com> 0.116-1
208- libdw: New functions dwarf_ranges, dwarf_entrypc, dwarf_diecu, d
209warf_entry_breakpoints. Removed Dwarf_Func type and functions d
210warf_func_name, dwarf_func_lowpc, dwarf_func_highpc, dwarf_func_
211entrypc, dwarf_func_die; dwarf_getfuncs callback now uses Dwarf_
212Die, and dwarf_func_file, dwarf_func_line, dwarf_func_col replac
213ed by dwarf_decl_file, dwarf_decl_line, dwarf_decl_column; dwarf
214_func_inline, dwarf_func_inline_instances now take Dwarf_Die. Ty
215pe Dwarf_Loc renamed to Dwarf_Op; dwarf_getloclist, dwarf_addrlo
216clists renamed dwarf_getlocation, dwarf_getlocation_addr.
217
Ulrich Drepper3bbc9502005-09-02 20:29:56 +0000218* Fri Sep 2 2005 Ulrich Drepper <drepper@redhat.com> 0.115-1
219- libelf: speed-ups of non-mmap reading.
220- strings: New program.
221- Implement --enable-gcov option for configure.
222- libdw: New function dwarf_getscopes_die.
223
Ulrich Drepper958bf132005-08-24 21:40:55 +0000224* Wed Aug 24 2005 Ulrich Drepper <drepper@redhat.com> 0.114-1
225- libelf: new function elf_getaroff
226- libdw: Added dwarf_func_die, dwarf_func_inline, dwarf_func_inline_inst
227ances.
228- libdwfl: New functions dwfl_report_offline, dwfl_offline_section_addre
229ss, dwfl_linux_kernel_report_offline.
230- ranlib: new program
231
Ulrich Dreppere48c05b2005-08-15 21:47:33 +0000232* Mon Aug 15 2005 Ulrich Drepper <drepper@redhat.com> 0.114-1
233- libelf: new function elf_getaroff
234- ranlib: new program
235
Ulrich Drepperc5c33a62005-08-13 17:50:47 +0000236* Wed Aug 10 2005 Ulrich Drepper <@redhat.com> 0.113-1
237- elflint: relax a bit. Allow version definitions for defined symbols ag
Ulrich Drepperfbe998a2005-08-29 16:27:10 +0000238ainstDSO versions also for symbols in nobits sections. Allow .rodata
Ulrich Drepperc5c33a62005-08-13 17:50:47 +0000239sectionto have STRINGS and MERGE flag set.
240- strip: add some more compatibility with binutils.
241
Ulrich Drepper637963b2005-08-07 05:33:07 +0000242* Sat Aug 6 2005 Ulrich Drepper <@redhat.com> 0.113-1
243- elflint: relax a bit. Allow version definitions for defined symbols ag
Ulrich Drepperfbe998a2005-08-29 16:27:10 +0000244ainstDSO versions also for symbols in nobits sections. Allow .rodata
Ulrich Drepper637963b2005-08-07 05:33:07 +0000245sectionto have STRINGS and MERGE flag set.
246
247* Sat Aug 6 2005 Ulrich Drepper <@redhat.com> 0.113-1
248- elflint: relax a bit. Allow version definitions for defined symbols ag
249ainstDSO versions also for symbols in nobits sections.
250
Ulrich Drepperca2db8a2005-08-06 06:44:50 +0000251* Fri Aug 5 2005 Ulrich Drepper <@redhat.com> 0.112-1
252- elfcmp: some more relaxation.
253- elflint: many more tests, especially regarding to symbol versioning.
254- libelf: Add elfXX_offscn and gelf_offscn.
255- libasm: asm_begin interface changes.
256- libebl: Add three new interfaces to directly access machine, class, an
257ddata encoding information.
258- objdump: New program. Just the beginning.
259
Ulrich Drepper282bf322005-07-28 21:49:05 +0000260* Thu Jul 28 2005 Ulrich Drepper <@redhat.com> 0.111-1
261- libdw: now contains all of libdwfl. The latter is not installed anymore.
262- elfcmp: little usability tweak, name and index of differing section is
263 printed.
Roland McGrath5a765672005-07-28 09:12:43 +0000264
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000265* Sun Jul 24 2005 Ulrich Drepper <@redhat.com> 0.110-1
266- libelf: fix a numbe rof problems with elf_update
267- elfcmp: fix a few bugs. Compare gaps.
268- Fix a few PLT problems and mudflap build issues.
269- libebl: Don't expose Ebl structure definition in libebl.h. It's now p
270rivate.
271
272* Thu Jul 21 2005 Ulrich Drepper <@redhat.com> 0.109-1
273- libebl: Check for matching modules.
274- elflint: Check that copy relocations only happen for OBJECT or NOTYPE
275symbols.
276- elfcmp: New program.
277- libdwfl: New library.
278
279* Mon May 9 2005 Ulrich Drepper <@redhat.com> 0.108-1
280- strip: fix bug introduced in last change
281- libdw: records returned by dwarf_getsrclines are now sorted by address
282
283* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.108-1
284- strip: fix bug introduced in last change
285
286* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.107-1
287- readelf: improve DWARF output format
288- strip: support Linux kernel modules
289
290* Fri Apr 29 2005 Ulrich Drepper <drepper@redhat.com> 0.107-1
291- readelf: improve DWARF output format
292
293* Mon Apr 4 2005 Ulrich Drepper <drepper@redhat.com> 0.106-1
294- libdw: Updated dwarf.h from DWARF3 speclibdw: add new funtions dwarf_f
295unc_entrypc, dwarf_func_file, dwarf_func_line,dwarf_func_col, dwarf_ge
296tsrc_file
297
298* Fri Apr 1 2005 Ulrich Drepper <drepper@redhat.com> 0.105-1
299- addr2line: New program
300- libdw: add new functions: dwarf_addrdie, dwarf_macro_*, dwarf_getfuncs
301,dwarf_func_*.
302- findtextrel: use dwarf_addrdie
303
304* Mon Mar 28 2005 Ulrich Drepper <drepper@redhat.com> 0.104-1
305- findtextrel: New program.
306
307* Mon Mar 21 2005 Ulrich Drepper <drepper@redhat.com> 0.103-1
308- libdw: Fix using libdw.h with gcc < 4 and C++ code. Compiler bug.
309
310* Tue Feb 22 2005 Ulrich Drepper <drepper@redhat.com> 0.102-1
311- More Makefile and spec file cleanups.
312
313* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1
314- upgrade to 0.94
315
316* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.93-1
317- upgrade to 0.93
318
319* Thu Jan 8 2004 Jakub Jelinek <jakub@redhat.com> 0.92-1
320- full version
321- macroized spec file for GPL or OSL builds
322- include only libelf under GPL plus wrapper scripts
323
324* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-2
325- macroized spec file for GPL or OSL builds
326
327* Wed Jan 7 2004 Ulrich Drepper <drepper@redhat.com>
328- split elfutils-devel into two packages.
329
330* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-1
331- include only libelf under GPL plus wrapper scripts
332
333* Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 0.89-3
334- readelf, not readline, in %%description (#111214).
335
336* Fri Sep 26 2003 Bill Nottingham <notting@redhat.com> 0.89-1
337- update to 0.89 (fix eu-strip)
338
339* Tue Sep 23 2003 Jakub Jelinek <jakub@redhat.com> 0.86-3
340- update to 0.86 (fix eu-strip on s390x/alpha)
341- libebl is an archive now; remove references to DSO
342
343* Mon Jul 14 2003 Jeff Johnson <jbj@redhat.com> 0.84-3
344- upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed).
345
346* Fri Jul 11 2003 Jeff Johnson <jbj@redhat.com> 0.83-3
347- upgrade to 0.83 (fix invalid ELf handle on *.so strip, more).
348
349* Wed Jul 9 2003 Jeff Johnson <jbj@redhat.com> 0.82-3
350- upgrade to 0.82 (strip tests fixed on big-endian).
351
352* Tue Jul 8 2003 Jeff Johnson <jbj@redhat.com> 0.81-3
353- upgrade to 0.81 (strip excludes unused symtable entries, test borked).
354
355* Thu Jun 26 2003 Jeff Johnson <jbj@redhat.com> 0.80-3
356- upgrade to 0.80 (debugedit changes for kernel in progress).
357
358* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
359- rebuilt
360
361* Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 0.79-2
362- upgrade to 0.79 (correct formats for size_t, more of libdw "works").
363
364* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 0.78-2
365- upgrade to 0.78 (libdwarf bugfix, libdw additions).
366
367* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
368- debuginfo rebuild
369
370* Thu Feb 20 2003 Jeff Johnson <jbj@redhat.com> 0.76-2
371- use the correct way of identifying the section via the sh_info link.
372
373* Sat Feb 15 2003 Jakub Jelinek <jakub@redhat.com> 0.75-2
374- update to 0.75 (eu-strip -g fix)
375
376* Tue Feb 11 2003 Jakub Jelinek <jakub@redhat.com> 0.74-2
377- update to 0.74 (fix for writing with some non-dirty sections)
378
379* Thu Feb 6 2003 Jeff Johnson <jbj@redhat.com> 0.73-3
380- another -0.73 update (with sparc fixes).
381- do "make check" in %%check, not %%install, section.
382
383* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 0.73-2
384- update to 0.73 (with s390 fixes).
385
386* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
387- rebuilt
388
389* Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
390- fix arguments to gelf_getsymshndx and elf_getshstrndx
391- fix other warnings
392- reenable checks on s390x
393
394* Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
395- temporarily disable checks on s390x, until someone has
396 time to look at it
397
398* Thu Dec 12 2002 Jakub Jelinek <jakub@redhat.com> 0.72-2
399- update to 0.72
400
401* Wed Dec 11 2002 Jakub Jelinek <jakub@redhat.com> 0.71-2
402- update to 0.71
403
404* Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 0.69-4
405- update to 0.69.
406- add "make check" and segfault avoidance patch.
407- elfutils-libelf needs to run ldconfig.
408
409* Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 0.68-2
410- update to 0.68.
411
412* Fri Dec 6 2002 Jeff Johnson <jbj@redhat.com> 0.67-2
413- update to 0.67.
414
415* Tue Dec 3 2002 Jeff Johnson <jbj@redhat.com> 0.65-2
416- update to 0.65.
417
418* Mon Dec 2 2002 Jeff Johnson <jbj@redhat.com> 0.64-2
419- update to 0.64.
420
421* Sun Dec 1 2002 Ulrich Drepper <drepper@redhat.com> 0.64
422- split packages further into elfutils-libelf
423
424* Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 0.63-2
425- update to 0.63.
426
427* Fri Nov 29 2002 Ulrich Drepper <drepper@redhat.com> 0.62
428- Adjust for dropping libtool
429
430* Sun Nov 24 2002 Jeff Johnson <jbj@redhat.com> 0.59-2
431- update to 0.59
432
433* Thu Nov 14 2002 Jeff Johnson <jbj@redhat.com> 0.56-2
434- update to 0.56
435
436* Thu Nov 7 2002 Jeff Johnson <jbj@redhat.com> 0.54-2
437- update to 0.54
438
439* Sun Oct 27 2002 Jeff Johnson <jbj@redhat.com> 0.53-2
440- update to 0.53
441- drop x86_64 hack, ICE fixed in gcc-3.2-11.
442
443* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 0.52-3
444- get beehive to punch a rhpkg generated package.
445
446* Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 0.52-2
447- build in 8.0.1.
448- x86_64: avoid gcc-3.2 ICE on x86_64 for now.
449
450* Tue Oct 22 2002 Ulrich Drepper <drepper@redhat.com> 0.52
451- Add libelf-devel to conflicts for elfutils-devel
452
453* Mon Oct 21 2002 Ulrich Drepper <drepper@redhat.com> 0.50
454- Split into runtime and devel package
455
456* Fri Oct 18 2002 Ulrich Drepper <drepper@redhat.com> 0.49
457- integrate into official sources
458
459* Wed Oct 16 2002 Jeff Johnson <jbj@redhat.com> 0.46-1
460- Swaddle.