bug-gnu-utils
[Top][All Lists]
Advanced

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

[Patch] bfd/osf-core.c: Fix endianness of corefiles.


From: Peter.Schauer
Subject: [Patch] bfd/osf-core.c: Fix endianness of corefiles.
Date: Mon, 18 Feb 2002 10:21:43 MET

I botched the endianness of OSF/1 (aka Digital Unix) core files from day one,
these core files are little, not big endian.
In the past it didn't matter, as GDB was forcing the endianness to little,
but nowadays endianness is selected automatically from the BFD information,
so osf-core.c has to provide correct endianness.

Here is a patch, it would be nice if someone with write priviledges would
check it in.

2002-02-18  Peter Schauer  <address@hidden>

        * osf-core.c (osf_core_vec):  OSF/1 (Digital Unix) core files are
        little endian.

--- bfd/osf-core.c.orig Fri Jan 18 22:48:31 2002
+++ bfd/osf-core.c      Sun Feb 17 22:25:52 2002
@@ -191,8 +191,8 @@ const bfd_target osf_core_vec =
   {
     "osf-core",
     bfd_target_unknown_flavour,
-    BFD_ENDIAN_BIG,            /* target byte order */
-    BFD_ENDIAN_BIG,            /* target headers byte order */
+    BFD_ENDIAN_LITTLE,         /* target byte order */
+    BFD_ENDIAN_LITTLE,         /* target headers byte order */
     (HAS_RELOC | EXEC_P |      /* object flags */
      HAS_LINENO | HAS_DEBUG |
      HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),

-- 
Peter Schauer                   address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]