Sponsored Content
Full Discussion: Not a Vaild ELF File
Operating Systems Solaris Not a Vaild ELF File Post 302356630 by figaro on Saturday 26th of September 2009 12:53:33 PM
Old 09-26-2009
What operating system are you running? If not Linux, but for instance BSD, then you need to do a "brandelf" of the particular executable. Check by entering "man brandelf".
 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

How to find Dependent libraries in ELF file?

Dear group, I need to load dependent libraries for an application which is in ELF format.please let me know how to parse the ELF file to find dependent libraries. thnaks in advance, Ravinder (3 Replies)
Discussion started by: ravinder.are
3 Replies

2. Linux

editing ELF file

Hello, This is not exactly relevant to Linux kernel but I'm gonna ask any way. Is there any way I can modify a 64-bit ELF object file to make it look like 32-bit ELF object file and link it (using `ld`) with 32-bit ELF file? I tried libelf but was unsuccessful. I had this pretty link... (1 Reply)
Discussion started by: tejuwala
1 Replies

3. UNIX for Advanced & Expert Users

How can i read a non text file in unix - ELF-64 executable object file - IA64

The binary file is ELF-64 executable object file - IA64. How i know that the source is Is there any comamnd in unix i can read these kind of files or use a thirty party software? Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies

4. Linux

Reading ELF file Symbol table of C++ program

Folks, I have some program(Test.cpp) as follows, #include<iostream> class Abc { private: int _theVar; public : int printVar(); }; int Abc :: printVar() { _theVar=10; } main() { Abc _t; (0 Replies)
Discussion started by: vinod_chitrali
0 Replies

5. Programming

Reading ELF file Symbol table of C++ program

Folks, I have some program(Test.cpp) as follows, #include<iostream> class Abc { private: int _theVar; public : int printVar(); }; int Abc :: printVar() { _theVar=10; } main() { Abc _t; (2 Replies)
Discussion started by: vinod_chitrali
2 Replies

6. Programming

A help to create an ELF file

Hi!!! How do I create a file .ELF? What code should I use, could help me with a simple code or example? I know programming to Windows by important languages but this seems to be more sistematical, and I really don't know how to. (2 Replies)
Discussion started by: linecoder
2 Replies

7. Shell Programming and Scripting

ps -elf AND grep for changes

Hoping theres something already out there like this. I have a list of proccesses who's "ps -elf" (field 10) values I need to continuously monitor and if the values of field 10 start to signiciantly increase (double, triple) then do something. The field 10 is the "memory size" field. (these... (4 Replies)
Discussion started by: ajp7701
4 Replies

8. Solaris

Wrong ELF class

guys anyone knows a solution for this? wrong ELF class: ELFCLASS64 pwrcard:cms-dev:/pcard16/pwrcard/src/interfaces/interface_host>isainfo -v 64-bit sparcv9 applications vis2 vis 32-bit sparc applications vis2 vis v8plus div32 mul32... (1 Reply)
Discussion started by: q8devilish
1 Replies

9. Solaris

Install Apache 2.4.20 on Solaris 10 --- Error "ld: fatal: file ab.o: wrong ELF class: ELFCLASS32"

I am following the "Compilling and Installing" guide from Apache > HTTP Server > Documentation > Version 2.4 page The configure running OK: # export CC="gcc -m64" # ./configure \ --prefix=/usr/local/apache2/httpd-2.4.20 \ --with-port=80 \ --with-mpm=worker \ --enable-mods-shared=most \... (0 Replies)
Discussion started by: jhuang
0 Replies
BRANDELF(1)						    BSD General Commands Manual 					       BRANDELF(1)

NAME
brandelf -- mark an ELF binary for a specific ABI SYNOPSIS
brandelf [-lv] [-f ELF_ABI_number] [-t string] file ... DESCRIPTION
The brandelf utility marks an ELF binary to be run under a certain ABI for FreeBSD. The options are as follows: -f ELF_ABI_number Forces branding with the supplied ELF ABI number. Incompatible with the -t option. These values are assigned by SCO/USL. -l Writes the list of all known ELF types to the standard error. -v Turns on verbose output. -t string Brands the given ELF binaries to be of the string ABI type. Currently supported ABIs are ``FreeBSD'', ``Linux'', and ``SVR4''. file If -t string is given it will brand file to be of type string, otherwise it will simply display the branding of file. EXIT STATUS
Exit status is 0 on success, and 1 if the command fails if a file does not exist, is too short, fails to brand properly, or the brand requested is not one of the known types and the -f option is not set. EXAMPLES
The following is an example of a typical usage of the brandelf command: brandelf file brandelf -t Linux file SEE ALSO
The Santa Cruz Operation, Inc., System V Application Binary Interface, http://www.sco.com/developer/devspecs/, April 29, 1998 (DRAFT). HISTORY
The brandelf manual page first appeared in FreeBSD 2.2. AUTHORS
This manual page was written by John-Mark Gurney <jmg@FreeBSD.org>. BSD
March 25, 2014 BSD
All times are GMT -4. The time now is 06:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy