Sponsored Content
Top Forums UNIX for Advanced & Expert Users How can i read a non text file in unix - ELF-64 executable object file - IA64 Post 302125883 by alexcol on Sunday 8th of July 2007 11:29:04 PM
Old 07-09-2007
Bug How to read a non text file in Unix

The right question is:
is there a unix comamnd to read (visualize the internal code) in a binary file. the type of file is ELF-64 executable object file - IA64.? or i have to use a thirty party software?

i appreciate your help
 

9 More Discussions You Might Find Interesting

1. Programming

dbx error ("Executable contains object file compiled on ...")

Hi, We are trying to run dbx on a core file for which we have the original executable and libs, but not the source / object tree. We have recompiled the objects from the original source, but dbx complains that they were compiled at a different time, and refuses to read them: Object file:... (0 Replies)
Discussion started by: Sabari Nath S
0 Replies

2. UNIX for Dummies Questions & Answers

How to convert Unix executable file to Tiff

Hi, I know nothing about Unix. Recently received image files from a client. Mac sees it as a Unix executable file. How do I convert these files to Tiff? Thanks for helping. (1 Reply)
Discussion started by: Pet Teoh
1 Replies

3. Shell Programming and Scripting

unix executable file

Hi - How can I find out under sh whitch file is an unix executable file? Need it for an software inventory. Thanks in advance. Regards - Lazybaer (6 Replies)
Discussion started by: lazybaer
6 Replies

4. Shell Programming and Scripting

Write an executable file in Unix

Hi, I want to write an executable file in unix env to go to a particular path instead of always typing the long path cd /app/oracle/product/10.2.0/Db_1/scripts/prejib/sample. I have tried with the below script in but not working . please help me bash-3.00$ cat a.sh #!/bin/sh ... (3 Replies)
Discussion started by: prejib
3 Replies

5. Shell Programming and Scripting

Parsing text file and feeding it into an executable

Hello, everyone. I am working wtihin AIX 5.3, and I need to do the following: read the each line of file BASE.txt do XK {line contents} if XK's output begins with "BASE", then append line contents to file "output.txt" continue until end of file Here is what I tried(unsuccessfuly): ... (4 Replies)
Discussion started by: Mordaris
4 Replies

6. Shell Programming and Scripting

Read in search strings from text file, search for string in second text file and output to CSV

Hi guys, I have a text file named file1.txt that is formatted like this: 001 , ID , 20000 002 , Name , Brandon 003 , Phone_Number , 616-234-1999 004 , SSNumber , 234-23-234 005 , Model , Toyota 007 , Engine ,V8 008 , GPS , OFF and I have file2.txt formatted like this: ... (2 Replies)
Discussion started by: An0mander
2 Replies

7. Shell Programming and Scripting

Read csv file, convert the data and make one text file in UNIX shell scripting

I have input data looks like this which is a part of a csv file 7,1265,76548,"0102:04" 8,1266,76545,"0112:04" I need to make the output data should look like this and the output data will be part of text file: 7|1265000 |7654899 |A| 8|12660000 |76545999 |B| The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies

8. Shell Programming and Scripting

Inputs required in decoding file on AIX- executable (RISC System/6000) or object module not stripped

Hi, We are in the process of migrating from AIX to Linux. There is a script of type "executable (RISC System/6000) or object module not stripped" on AIX and we are unable to read the contents of it. Is there a way to read the contents of the file on AIX, so that we can rewrite the code in... (3 Replies)
Discussion started by: venkatesh17
3 Replies

9. Shell Programming and Scripting

Shell script UNIX to read text file line by line

i have a text file as belows, it includes 2 columns, 1st is the column name, 2nd is the file_name data_file.txt column_name file_name col1 file1 col2 file2 col3 file1 col4 file1 col5 file2 now, i would like to... (4 Replies)
Discussion started by: tester111
4 Replies
ELF_OPEN(3)						   BSD Library Functions Manual 					       ELF_OPEN(3)

NAME
elf_open -- open ELF objects and ar(1) archives LIBRARY
ELF Access Library (libelf, -lelf) SYNOPSIS
#include <libelf.h> Elf * elf_open(int fd); Elf * elf_openmemory(char *image, size_t sz); DESCRIPTION
Important: The functions elf_open() and elf_openmemory() are extensions to the ELF(3) API, for the internal use of the Elftoolchain project. Portable applications should not use these functions. The function elf_open() returns an Elf descriptor opened with mode ELF_C_READ for the ELF object or ar(1) archive referenced by the file descriptor in argument fd. The function elf_openmemory() returns an ELF descriptor opened with mode ELF_C_READ for the ELF object or ar(1) archive contained in the mem- ory area pointed to by the argument image. The argument sz specifies the size of the memory area in bytes. COMPATIBILITY
These functions are non-standard extensions to the ELF(3) API set. The behavior of these functions differs from their counterparts elf_begin(3) and elf_memory(3) in that these functions will successfully open malformed ELF objects and ar(1) archives, returning an Elf descriptor of type ELF_K_NONE. RETURN VALUES
The function returns a pointer to a ELF descriptor if successful, or NULL if an error occurred. ERRORS
These functions can fail with the following errors: [ELF_E_ARGUMENT] The argument fd was of an unsupported file type. [ELF_E_ARGUMENT] The argument sz was zero, or the argument image was NULL. [ELF_E_IO] The file descriptor in argument fd was invalid. [ELF_E_IO] The file descriptor in argument fd could not be read. [ELF_E_RESOURCE] An out of memory condition was encountered. [ELF_E_SEQUENCE] Functions elf_open() or elf_openmemory() was called before a working version was established with elf_version(3). SEE ALSO
elf(3), elf_begin(3), elf_errno(3), elf_memory(3), gelf(3) BSD
May 31, 2012 BSD
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy