bug-gnu-utils
[Top][All Lists]
Advanced

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

Binutils bug when generating ELF files


From: Thomas Petazzoni
Subject: Binutils bug when generating ELF files
Date: Fri, 25 May 2001 21:42:13 +0200

hi,

i found something very strange with recent binutils. i don't have the
same ELF file generated with old binutils (tested 2.9.5.0.37-1) and
recent binutils (2.11.90.0.7). i used GCC 2.95.4 in both cases.

with recent binutils, the fields of the Phdr (Program Header) structure
aren't correctly initialised. with old binutils utils for instance,
p_paddr is correctly initialised according to the link script, but with
recent binutils it is always initialised to 0x80.
and it's the same problem for p_filesz and p_memsz fiels. they are
correctly initialised with old binutils, but with recent binutils they
are always initialised to 0x80.

i think to link programs just to be used under Linux it does worth much,
but in this case, i use the generated file as kernel loaded by Grub. and
grub uses this fields to know where to load the file when booting.

so, i have to use old binutils, and not recent binutils.

do you already know anything about this bug ? have it already been
corrected ?

thx a lot,

thomas
-- 
PETAZZONI Thomas
address@hidden     UIN : 34937744
Projet KOS : http://kos.enix.org
Page Perso : http://www.enix.org/~thomas/





reply via email to

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