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

Re: integers in ELF ???



Solved: I stumbled across 'objdump' (sorry, my use of GNU tools has
been very limited, I've worked mostly with vendor tools).

A disassembly of the test code showed that the constants are
initialized from immediate loads (!) which accounts for the
lack of their obvious visibility.

eg.

1046c:       13 04 8d 15     sethi  %hi(0x12345400), %o1
10470:       90 12 62 70     or  %o1, 0x270, %o0     ! 0x12345670

a leftshift of 2 on '048d15' OR'ed with 0x270 = 0x12345670 (the first
value in the array).

Michael Grigoni
Cybertheque Museum

On Sun, 6 Apr 2003, Infra wrote:

> I need to search an object file for an integer; in other ELF
> implementations this has been trivial:



Visit your host, monkey.org