08-05-2008
determining the object files...
hello,
is there a utility to determine which object files are used to create a binary executable file?let me explain, please:
for ex. there are three files:
a.o b.o c.o
and these files are used to create a binary called:
prg
namely, a.o b.o c.o -> prg
so, how can i determine these three object files by investigating the binary file,prg ?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
:D can you? and if you can... how do you create oject files..
Files within Files...!!?
if this is not possible no answer required..!
thanx moxxx68
ps.. excuse my logic if this is under the wrong topic.....:) (1 Reply)
Discussion started by: moxxx68
1 Replies
2. Programming
hello,
i have a makefile in which i am specifying the option for creating the object files of the source files.
The option which i am using is this :
gcc -c main.c first.c
by default these object files are created in the same directory in which the makefile is present.
what option... (1 Reply)
Discussion started by: svh
1 Replies
3. Solaris
Is there a way to do this in Solaris?
For instance, suppose I run the following:
$ swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d501 85,501 16 16780208 16780208
$ swap -s
total: 3377368k bytes allocated + 519416k reserved = 3896784k used, 11011992k available... (1 Reply)
Discussion started by: lyonsd
1 Replies
4. AIX
Hello,
Is it possible to link object files compiled with different compilers on AIX, say xlC and g++?
Thanks
Ping (0 Replies)
Discussion started by: luop0812
0 Replies
5. Shell Programming and Scripting
Hi there,
I have a doubt about how to set this up. This is the situation.
I have two files, one that is ~31,000 in length and has the following information (7 fields):
file1
1 + 100208127 100261594 6 100208127,100231680,100237404,100245177,100249508,100260529, ... (35 Replies)
Discussion started by: labrazil
35 Replies
6. UNIX for Dummies Questions & Answers
I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine.
I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this.
Here is my function:
<?php
function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies
7. UNIX for Dummies Questions & Answers
How can I simply obtain a list of the object files in a shared (dynamic) library.
I am looking for the equivalent of "ar -t <lib>" for archived (static) libraries.
Thanks in advance. :rolleyes:
---------- Post updated at 01:47 PM ---------- Previous update was at 12:16 PM ----------
The... (1 Reply)
Discussion started by: chatieremerrill
1 Replies
8. Programming
Is there a way to determine the "Instruction Pointer" of a function in c++, and if so can someone tell me? (5 Replies)
Discussion started by: neur0n
5 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I have a flat file with a list of files with the path to the file and I am attempting to calculate the filesize for each one; however xargs isn't playing nicely and I am sure there is probably a better way of doing this.
What I envisioned is this:
cat filename|xargs -i ls -l {} |awk... (4 Replies)
Discussion started by: joe8mofo
4 Replies
10. Programming
How to initialize an object of class say "A", with an object of type say "B".
The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested"
#include <iostream>
using namespace std;
class B;
class A{
public:
A() { cout <<"\nA()" << endl; }
... (1 Reply)
Discussion started by: techmonk
1 Replies
LEARN ABOUT OPENDARWIN
strings
STRINGS(1) General Commands Manual STRINGS(1)
NAME
strings - find the printable strings in a object, or other binary, file
SYNOPSIS
strings [ - ] [ -a ] [ -o ] [ -number ] [file ...]
DESCRIPTION
Strings looks for ASCII strings in a binary file or standard input. Strings is useful for identifying random object files and many other
things. A string is any sequence of 4 (the default) or more printing characters ending with a newline or a null. Unless the - flag is
given, strings looks in all sections of the object files except the (__TEXT,__text) section. If no files are specified standard input is
read.
The options to strings(1) are:
-a This option causes strings to look for strings in all sections of the object file (including the (__TEXT,__text) section.
- This option causes strings to look for strings in all bytes of the files (the default for non-object files).
-o Preceded each string by its offset in the file (in decimal).
-number
The decimal number is used as the minimum string length rather than the default of 4.
SEE ALSO
od(1)
BUGS
The algorithm for identifying strings is extremely primitive.
Apple Computer, Inc. October 23, 1997 STRINGS(1)