binutils 2.15 / gcc-3.3.5 (3.4.3) produce text relocations on arm
Peter S. Mazinger
ps.m@gmx.net
Mon Mar 14 11:44:00 GMT 2005
On Wed, 5 Jan 2005, Peter S. Mazinger wrote:
> On Tue, 4 Jan 2005, Daniel Jacobowitz wrote:
>
> > On Tue, Jan 04, 2005 at 06:16:56PM +0100, Peter S. Mazinger wrote:
> > > On Tue, 4 Jan 2005, Daniel Jacobowitz wrote:
> > >
> > > > On Tue, Jan 04, 2005 at 04:25:26PM +0100, Peter S. Mazinger wrote:
> > > > > Hello!
> > > > >
> > > > > I have tried some versions of binutils-2.15 (up to and including
> > > > > 2.15.94.0.2) in conjunction w/ gcc-3.3.5 and gcc-3.4.3, all combinations
> > > > > produce text relocations on x86 (using glibc / uclibc) in shared libs.
> > > > > Can't tell if gcc or binutils produce this, maybe a linker script?
> > > > >
> > > > > Please CC to me, thanks Peter
> > > >
> > > > Have you checked whether you are actually producing text relocations,
> > > > or just setting DT_TEXTREL? I just encountered another binutils ARM
> > > > bug which set DT_TEXTREL incorrectly.
> > >
> > > I have checked: readelf -d file | grep TEXT
> >
> > Then could you check whether any of the relocations are actually in the
> > text segment?
>
> How to do that?
>
> Could you provide me a patch for the ARM bug you have found (setting
> DT_TEXTREL incorrectly)?
Nothing changed in the meantime ;-(
I have tested binutils-cvs (as of 20050222) and no better.
Finally it seems that the DT_TEXTREL entry is coming from assembler
sources, C code seems to be linked correctly.
on another note:
MAXPAGESIZE=0x8000 (as of bfd/elf.c) for arm, please change that in
ld/emulparams/armelf.sh.
please CC to me, not on list.
Thanks, Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the Binutils
mailing list