libc_psr.so.1 not in executable format, using GDB under Solaris?

libc_psr.so.1 not in executable format, using GDB under Solaris?

Post by Jon Brumfit » Fri, 04 Oct 1996 04:00:00



When I try to use GNU 'gdb' de* on code produced by g++ under Solaris,
I get the following error message, when I run the program:

  "/usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1": not in executable format:
  File format not recognized.

The 'file' command shows the following:

  > file /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1

  /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1:   ELF 32-bit MSB dynamic lib
  SPARC32PLUS Version 1, V8+ Required, UltraSPARC1 Extensions Required,
  dynamically linked, not stripped

ldd shows that my program uses the following libraries:

   libm.so.1 =>     /opt/SUNWspro/lib/libm.so.1
   libc.so.1 =>     /usr/lib/libc.so.1
   libdl.so.1 =>    /usr/lib/libdl.so.1

The program is in C++ and the machine is a SPARC Ultra-2.

Any help would be appreciated.


Thanks

Jon Brumfitt

 
 
 

libc_psr.so.1 not in executable format, using GDB under Solaris?

Post by Steven M. Christens » Fri, 04 Oct 1996 04:00:00


Get gdb-4.16 at http://smc.vnet.net/solaris_2.5.html.

There is an Ultra problem with earlier versions.

Steve Christensen

 
 
 

libc_psr.so.1 not in executable format, using GDB under Solaris?

Post by Casper H.S. D » Fri, 04 Oct 1996 04:00:00



>When I try to use GNU 'gdb' de* on code produced by g++ under Solaris,
>I get the following error message, when I run the program:
>  "/usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1": not in executable format:
>  File format not recognized.
>The 'file' command shows the following:
>  > file /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
>  /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1:   ELF 32-bit MSB dynamic lib
>  SPARC32PLUS Version 1, V8+ Required, UltraSPARC1 Extensions Required,
>  dynamically linked, not stripped

The solaris FAQ says:

6.25) I get '"/usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1": not in
    executable format: format not recognized' from gdb on my Ultra

    gdb needs to be updated to understand the "V8+" executable format.

    Either install gdb 4.16 or later, or update the gdb 4.15.1
    distribution with the following patch to bfd/elf32-sparc.c and
    include/elf/common.h:

          *** gdb-4.15.1/bfd/elf32-sparc.c       Fri Nov  3 12:30:15 1995
          --- elf32-sparc.c        Thu Nov 23 14:44:37 1995
          ***************
          *** 1486,1491 ****
          --- 1486,1492 ----
            #define TARGET_BIG_NAME       "elf32-sparc"
            #define ELF_ARCH      bfd_arch_sparc
            #define ELF_MACHINE_CODE EM_SPARC
          + #define       ELF_MACHINE_ALT1 EM_SPARC32PLUS
            #define ELF_MAXPAGESIZE 0x10000
            #define elf_backend_create_dynamic_sections \
                                                  _bfd_elf_create_dynamic_sections

          *** gdb-4.15.1/include/elf/common.h     Fri Nov  3 20:20:25 1995
          --- common.h    Thu Nov 23 14:20:07 1995
          ***************
          *** 83,88 ****
          --- 83,91 ----
            #define EM_SPARC64     11     /* SPARC v9 (not official) 64-bit */

            #define EM_PARISC      15     /* HPPA */
          +
          + #define       EM_SPARC32PLUS  18      /* Sun SPARC 32+ */
          +
            #define EM_PPC               20       /* PowerPC */

           /* If it is necessary to assign new unofficial EM_* values, please pick large

    --- end of excerpt from the FAQ

Questions marked with a * or + have been changed or added since
the FAQ was last posted

The most recently posted version of the FAQ is available from
<http://www.veryComputer.com/;
--
Casper Dik - Sun Microsystems - via my guest account at the University

Statements on Sun products included here are not gospel.
Unsolicited e-mail adverti*ts will be proofread for $250.

 
 
 

1. gdb: core file not in executable format: File format not recognized

We have been having problems recently getting a copy of gdb 4.17 to work
under solaris 2.4 on a sparc20.  Using gcc 2.7.2.3, which seems to compile
correctly, and copies of gdb both built from source and also a prebuilt
binary downloaded from Sunfreeware.com, I am unable to read any core file.  
The message I always get is:

core: not in executable format: File format not recognized

I am beginning to think that the problem lies not with the build of gdb,
but more with the configuration of gcc.  Can anyone help me?  I have run
out of ideas about the cause of this.....

thanks

Lindsay Jack


Dept. of Elec. and Elec. Eng.,  tel : +44 (0)141 548 2205 (direct line)  
University of Strathclyde,      fax : +44 (0)141 552 2487 Glasgow G1 1XQ,
Scotland, U.K.

2. linux->DOS/Win 3.1?

3. gdb problem with libc_psr.so.1, Solaris 2.5 Ultra-1

4. Recommended and Y2000 Patch clusters

5. Custom JumpStart: libc_psr.so.1 not found

6. Configuring Linux firewall to allow IPSec

7. libc_psr.so.1 NOT FOUND

8. Scanner Software for Microtek Scanmaker III

9. gdb on an Ultra1.. NOT, libc_psr....

10. what is /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1?

11. Sparc Ultra / libc_psr.so.1

12. What is libc_psr.so.1?