Author: emaste
Date: Fri Feb 12 18:18:49 2016
New Revision: 295569
URL: https://svnweb.freebsd.org/changeset/base/295569

Log:
  Import ELF Tool Chain snapshot revision 3399
  
  From http://svn.code.sf.net/p/elftoolchain/code

Modified:
  vendor/elftoolchain/dist/elfcopy/main.c
  vendor/elftoolchain/dist/elfcopy/segments.c
  vendor/elftoolchain/dist/libelf/_libelf_config.h

Modified: vendor/elftoolchain/dist/elfcopy/main.c
==============================================================================
--- vendor/elftoolchain/dist/elfcopy/main.c     Fri Feb 12 17:55:06 2016        
(r295568)
+++ vendor/elftoolchain/dist/elfcopy/main.c     Fri Feb 12 18:18:49 2016        
(r295569)
@@ -39,7 +39,7 @@
 
 #include "elfcopy.h"
 
-ELFTC_VCSID("$Id: main.c 3381 2016-01-30 19:39:47Z jkoshy $");
+ELFTC_VCSID("$Id: main.c 3399 2016-02-12 18:07:56Z emaste $");
 
 enum options
 {
@@ -316,6 +316,7 @@ create_elf(struct elfcopy *ecp)
        oeh.e_entry           = ieh.e_entry;
        oeh.e_version         = ieh.e_version;
 
+       ecp->flags &= ~(EXECUTABLE | DYNAMIC | RELOCATABLE);
        if (ieh.e_type == ET_EXEC)
                ecp->flags |= EXECUTABLE;
        else if (ieh.e_type == ET_DYN)
@@ -1485,6 +1486,7 @@ Usage: %s [options] file...\n\
   Options:\n\
   -d | -g | -S | --strip-debug    Remove debugging symbols.\n\
   -h | --help                     Print a help message.\n\
+  -o FILE | --output-file FILE    Write output to FILE.\n\
   --only-keep-debug               Keep debugging information only.\n\
   -p | --preserve-dates           Preserve access and modification times.\n\
   -s | --strip-all                Remove all symbols.\n\

Modified: vendor/elftoolchain/dist/elfcopy/segments.c
==============================================================================
--- vendor/elftoolchain/dist/elfcopy/segments.c Fri Feb 12 17:55:06 2016        
(r295568)
+++ vendor/elftoolchain/dist/elfcopy/segments.c Fri Feb 12 18:18:49 2016        
(r295569)
@@ -34,7 +34,7 @@
 
 #include "elfcopy.h"
 
-ELFTC_VCSID("$Id: segments.c 3340 2016-01-17 15:00:56Z kaiwang27 $");
+ELFTC_VCSID("$Id: segments.c 3397 2016-02-12 14:35:19Z emaste $");
 
 static void    insert_to_inseg_list(struct segment *seg, struct section *sec);
 
@@ -489,7 +489,7 @@ copy_phdr(struct elfcopy *ecp)
                ophdr.p_filesz = seg->fsz;
                ophdr.p_memsz = seg->msz;
                if (!gelf_update_phdr(ecp->eout, i, &ophdr))
-                       err(EXIT_FAILURE, "gelf_update_phdr failed :%s",
+                       errx(EXIT_FAILURE, "gelf_update_phdr failed: %s",
                            elf_errmsg(-1));
 
                i++;

Modified: vendor/elftoolchain/dist/libelf/_libelf_config.h
==============================================================================
--- vendor/elftoolchain/dist/libelf/_libelf_config.h    Fri Feb 12 17:55:06 
2016        (r295568)
+++ vendor/elftoolchain/dist/libelf/_libelf_config.h    Fri Feb 12 18:18:49 
2016        (r295569)
@@ -23,7 +23,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Id: _libelf_config.h 3168 2015-02-24 19:17:47Z emaste $
+ * $Id: _libelf_config.h 3396 2016-02-10 21:50:05Z emaste $
  */
 
 #if defined(__APPLE__) || defined(__DragonFly__)
@@ -97,6 +97,12 @@
 #define        LIBELF_BYTEORDER        ELFDATA2MSB
 #define        LIBELF_CLASS            ELFCLASS32
 
+#elif  defined(__riscv64)
+
+#define        LIBELF_ARCH             EM_RISCV                                
+#define        LIBELF_BYTEORDER        ELFDATA2LSB                             
+#define        LIBELF_CLASS            ELFCLASS64                              
+
 #elif  defined(__sparc__)
 
 #define        LIBELF_ARCH             EM_SPARCV9
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to