List Info

Thread: Finding Entry symbol




Finding Entry symbol
user name
2007-01-29 07:50:56
Hi all,

I am working with GCC 4.1.1 and GDB Version 5.2.1 for a
private target.
I need to find the root entry point from the given binary
file (elf format).

Any help regarding this?

Regards,
Rohit

Re: Finding Entry symbol
user name
2007-01-29 08:11:00
On Mon, Jan 29, 2007 at 07:20:56PM +0530, Rohit Arul Raj
wrote:
> Hi all,
> 
> I am working with GCC 4.1.1 and GDB Version 5.2.1 for a
private target.
> I need to find the root entry point from the given
binary file (elf format).
> 
> Any help regarding this?

Search for bfd_get_start_address.  I highly recommend you
not use that
old of a GDB version for any new work, though.

-- 
Daniel Jacobowitz
CodeSourcery

Re: Finding Entry symbol
user name
2007-01-29 13:25:26
On Mon, 2007-01-29 at 09:11 -0500, Daniel Jacobowitz wrote:
> On Mon, Jan 29, 2007 at 07:20:56PM +0530, Rohit Arul
Raj wrote:
> > Hi all,
> > 
> > I am working with GCC 4.1.1 and GDB Version 5.2.1
for a private target.
> > I need to find the root entry point from the given
binary file (elf format).
> > 
> > Any help regarding this?
> 
> Search for bfd_get_start_address.  I highly recommend
you not use that
> old of a GDB version for any new work, though.

Especially with GCC 4.1.1 -- aren't there conflicts over
dwarf entries?



Re: Finding Entry symbol
user name
2007-01-29 13:27:03
On Mon, Jan 29, 2007 at 11:25:26AM -0800, Michael Snyder
wrote:
> Especially with GCC 4.1.1 -- aren't there conflicts
over dwarf entries?

Oh, good point: yes, there probably will be.

-- 
Daniel Jacobowitz
CodeSourcery

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )