Commit 069c1fd2 authored by cem's avatar cem
Browse files

Add elfutils 0.163

Elfutils is a collection of utilities, including: stack (to show
backtraces); nm (for listing symbols from object files); size (for
listing the section sizes of an object or archive file); strip (for
discarding symbols); readelf (to see the raw ELF file structures);
elflint (to check for well-formed ELF files); and elfcompress (to
compress or decompress ELF sections).

It also provides libraries to allow other programs to manipulate ELF and
DWARF data.

WWW:	https://fedorahosted.org/elfutils/

Reviewed by:	bdrewery
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D7206
parent 305ca93a
--- src/ldgeneric.c.orig 2014-02-05 00:21:44 UTC
+++ src/ldgeneric.c
@@ -2631,9 +2631,9 @@ ld_generic_generate_sections (struct ld_
/* Callback function registered with on_exit to make sure the temporary
files gets removed if something goes wrong. */
static void
-remove_tempfile (int status, void *arg)
+remove_tempfile (void)
{
- if (status != 0 && ld_state.tempfname != NULL)
+ if (ld_state.tempfname != NULL)
unlink (ld_state.tempfname);
}
@@ -2680,7 +2680,7 @@ ld_generic_open_outfile (struct ld_state
/* Make sure we remove the temporary file in case something goes
wrong. */
- on_exit (remove_tempfile, NULL);
+ atexit (remove_tempfile);
/* Create the ELF file data for the output file. */
Elf *elf = ld_state.outelf = elf_begin (fd,
--- tests/Makefile.am.orig 2015-06-11 11:38:55 UTC
+++ tests/Makefile.am
@@ -346,7 +346,7 @@ libasm = -lasm
libebl = -lebl
else !STANDALONE
if BUILD_STATIC
-libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
+libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl)
libelf = ../libelf/libelf.a
libasm = ../libasm/libasm.a
else
@@ -389,27 +389,27 @@ funcretval_LDADD = $(libdw) $(argp_LDADD
allregs_LDADD = $(libdw) $(argp_LDADD)
find_prologues_LDADD = $(libdw) $(argp_LDADD)
#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
-asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl
+asm_tst1_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst2_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst3_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst4_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst5_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst6_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst7_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst8_LDADD = $(libasm) $(libebl) $(libelf)
+asm_tst9_LDADD = $(libasm) $(libebl) $(libelf)
+dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
rdwrmmap_LDADD = $(libelf)
-dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) -ldl
+dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf)
arls_LDADD = $(libelf)
-dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl
+dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf)
+dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf)
+dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf)
+dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
dwarf_getmacros_LDADD = $(libdw)
dwarf_ranges_LDADD = $(libdw)
dwarf_getstring_LDADD = $(libdw)
-addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl
+addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
test_flag_nobits_LDADD = $(libelf)
rerequest_tag_LDADD = $(libdw)
alldts_LDADD = $(libebl) $(libelf)
Elfutils provides a set of binutils-replacement tools,
prefixed with eu-, as well as a set of libraries for
manipulating ELF and DWARF data.
WWW: https://fedorahosted.org/elfutils/
bin/eu-addr2line
bin/eu-ar
bin/eu-elfcmp
bin/eu-elflint
bin/eu-findtextrel
bin/eu-ld
bin/eu-make-debug-archive
bin/eu-nm
bin/eu-objdump
bin/eu-ranlib
bin/eu-readelf
bin/eu-size
bin/eu-stack
bin/eu-strings
bin/eu-strip
bin/eu-unstrip
include/dwarf.h
include/elfutils/elf-knowledge.h
include/elfutils/known-dwarf.h
include/elfutils/libasm.h
include/elfutils/libdw.h
include/elfutils/libdwelf.h
include/elfutils/libdwfl.h
include/elfutils/libebl.h
include/elfutils/version.h
include/gelf.h
include/libelf.h
include/nlist.h
lib/elfutils/libebl_aarch64-0.163.so
lib/elfutils/libebl_aarch64.so
lib/elfutils/libebl_alpha-0.163.so
lib/elfutils/libebl_alpha.so
lib/elfutils/libebl_arm-0.163.so
lib/elfutils/libebl_arm.so
lib/elfutils/libebl_i386-0.163.so
lib/elfutils/libebl_i386.so
lib/elfutils/libebl_ia64-0.163.so
lib/elfutils/libebl_ia64.so
lib/elfutils/libebl_ppc-0.163.so
lib/elfutils/libebl_ppc.so
lib/elfutils/libebl_ppc64-0.163.so
lib/elfutils/libebl_ppc64.so
lib/elfutils/libebl_s390-0.163.so
lib/elfutils/libebl_s390.so
lib/elfutils/libebl_sh-0.163.so
lib/elfutils/libebl_sh.so
lib/elfutils/libebl_sparc-0.163.so
lib/elfutils/libebl_sparc.so
lib/elfutils/libebl_tilegx-0.163.so
lib/elfutils/libebl_tilegx.so
lib/elfutils/libebl_x86_64-0.163.so
lib/elfutils/libebl_x86_64.so
lib/libasm-0.163.so
lib/libasm.a
lib/libasm.so
lib/libasm.so.1
lib/libdw-0.163.so
lib/libdw.a
lib/libdw.so
lib/libdw.so.1
lib/libebl.a
lib/libelf-0.163.so
lib/libelf.a
lib/libelf.so
lib/libelf.so.1
%%NLS%%share/locale/de/LC_MESSAGES/elfutils.mo
%%NLS%%share/locale/en@boldquot/LC_MESSAGES/elfutils.mo
%%NLS%%share/locale/en@quot/LC_MESSAGES/elfutils.mo
%%NLS%%share/locale/es/LC_MESSAGES/elfutils.mo
%%NLS%%share/locale/ja/LC_MESSAGES/elfutils.mo
%%NLS%%share/locale/pl/LC_MESSAGES/elfutils.mo
%%NLS%%share/locale/uk/LC_MESSAGES/elfutils.mo
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment