[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/4666] New: Generates wrong offset for h8 target
From: |
Sushil dot Kothawade at kpitcummins dot com |
Subject: |
[Bug binutils/4666] New: Generates wrong offset for h8 target |
Date: |
20 Jun 2007 07:42:48 -0000 |
Please find attached <name>.bz2 file. It contains two folders.
Folder "h8_with_vects" contains complete sample application including
"vects.c" file.
Folder "h8_without_vects" contains same sample application except
"vects.c" file. I have removed the vects.c file from this folder.
I executed following commands on both the folders,
1. make
2. h8300-elf-readelf -aw blink.out > dmp
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. SH or M16C
families show expected behavior.
After analysing the binutils source code, I found that if I change
ELF_MAXPAGESIZE in "elf32-h8300.c" from '0x1' to '0x80' (as in SH
family) the problem is solved.
My question is, what is the exact value that should be assigned to
ELF_MAXPAGESIZE to make it work?
--
Summary: Generates wrong offset for h8 target
Product: binutils
Version: 2.17
Status: NEW
Severity: minor
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: Sushil dot Kothawade at kpitcummins dot com
CC: Sushil dot Kothawade at kpitcummins dot com,bug-binutils
at gnu dot org,nickc at redhat dot com
GCC build triplet: i686-pc-linux
GCC host triplet: i686-pc-linux
GCC target triplet: h8300-unknown-elf
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.
- [Bug binutils/4666] New: Generates wrong offset for h8 target,
Sushil dot Kothawade at kpitcummins dot com <=