[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: integers in ELF ???
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: integers in ELF ???
- From: Infra <msg_(_at_)_waste_(_dot_)_org>
- Date: Mon, 7 Apr 2003 19:09:39 -0500 (CDT)
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.
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).
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