bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/4666] Generates wrong offset for h8 target


From: nickc at redhat dot com
Subject: [Bug binutils/4666] Generates wrong offset for h8 target
Date: 20 Jun 2007 09:24:07 -0000

------- Additional Comments From nickc at redhat dot com  2007-06-20 09:24 
-------
Hi Sushil,

> After comparing readelf dump of both the folders, I observed that for
> H8 target if "vects.c" file is removed from the project, the LMA and
> VMA addresses generated are wrong. In the absence of "vects.c" file,
> the offset of first segment in program header becomes zero. This is
> unexpected because at zero offset ELF header is present. 

I am not sure why you think that this is a bug.  It is perfectly reasonable to
load the ELF headers as part of the image.  It does no harm.  Just because this
behaviour is different from the SH or M16C, it does not make it a bug.

 
> My question is, what is the exact value that should be assigned to 
> ELF_MAXPAGESIZE to make it work?

ELF_MAXPAGESIZE should match the size of the memory pages on the target
processor.  If you are not using a paged memory system, which I assume is the
case with the H8, then it should be set to 1.

Cheers
  Nick


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=4666

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]