Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libelf/dist Instead of hard-coding each process...



details:   https://anonhg.NetBSD.org/src/rev/6fb0573c8efd
branches:  trunk
changeset: 787502:6fb0573c8efd
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 21 01:36:31 2013 +0000

description:
Instead of hard-coding each processor-specific section type, handle all
processor-specific section types the same way.

diffstat:

 external/bsd/libelf/dist/libelf_data.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r fe3cc5228099 -r 6fb0573c8efd external/bsd/libelf/dist/libelf_data.c
--- a/external/bsd/libelf/dist/libelf_data.c    Thu Jun 20 23:21:41 2013 +0000
+++ b/external/bsd/libelf/dist/libelf_data.c    Fri Jun 21 01:36:31 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libelf_data.c,v 1.4 2010/02/22 10:48:33 darran Exp $   */
+/*     $NetBSD: libelf_data.c,v 1.5 2013/06/21 01:36:31 christos Exp $ */
 
 /*-
  * Copyright (c) 2006 Joseph Koshy
@@ -87,9 +87,9 @@
        case SHT_SUNW_syminfo:
                return (ELF_T_SYMINFO);
 #endif /* __LIBELF_HAVE_ELF_SYMINFO */
-       case SHT_AMD64_UNWIND:  /* == SHT_IA_64_UNWIND */
-               return (ELF_T_BYTE);
        default:
+               if (sht >= SHT_LOPROC && sht <= SHT_HIPROC)
+                       return (ELF_T_BYTE);
                return (-1);
        }
 }



Home | Main Index | Thread Index | Old Index