diff options
| author | Conrad Meyer <cem@FreeBSD.org> | 2016-07-13 17:48:54 +0000 |
|---|---|---|
| committer | Conrad Meyer <cem@FreeBSD.org> | 2016-07-13 17:48:54 +0000 |
| commit | 552479055ed8ad7f7ffca61077c088b9c70dca75 (patch) | |
| tree | ab51fff0d12ebcaa9f5ecac4eccad04a060ba2a6 /devel/elfutils/files/patch-src_ldgeneric.c | |
| parent | Actually remove needless patch. (diff) | |
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
Notes
Notes:
svn path=/head/; revision=418495
Diffstat (limited to 'devel/elfutils/files/patch-src_ldgeneric.c')
| -rw-r--r-- | devel/elfutils/files/patch-src_ldgeneric.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/elfutils/files/patch-src_ldgeneric.c b/devel/elfutils/files/patch-src_ldgeneric.c new file mode 100644 index 000000000000..edad433e5cb4 --- /dev/null +++ b/devel/elfutils/files/patch-src_ldgeneric.c @@ -0,0 +1,23 @@ +--- 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, |
