All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?)
       [not found] <20050630165918.GG5269@systemhalted.org>
@ 2005-07-07 21:59 ` Mike Frysinger
  2005-07-08  1:56   ` Randolph Chung
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2005-07-07 21:59 UTC (permalink / raw)
  To: parisc-linux; +Cc: Carlos O'Donell

On Thursday 30 June 2005 12:59 pm, Carlos O'Donell wrote:
> An example executable might look like this:
>
> Relocation section '.rela.dyn' at offset 0x2fc contains 11 entries:
>  Offset     Info    Type            Sym.Value  Sym. Name + Addend
> 00000000  00000000 R_PARISC_NONE                                00000000
> 00000000  00000000 R_PARISC_NONE                                00000000
> 00000000  00000000 R_PARISC_NONE                                00000000
> 00000000  00000000 R_PARISC_NONE                                00000000
> 00010420  00000542 R_PARISC_PLABEL21 0001054c   main + 0
> 00010424  00000546 R_PARISC_PLABEL14 0001054c   main + 0
> 00010430  00000442 R_PARISC_PLABEL21 000106e0   __libc_csu_init + 0
> 00010434  00000446 R_PARISC_PLABEL14 000106e0   __libc_csu_init + 0
> 00010438  00000242 R_PARISC_PLABEL21 00010770   __libc_csu_fini + 0
> 0001043c  00000246 R_PARISC_PLABEL14 00010770   __libc_csu_fini + 0
> 000108b4  00000841 R_PARISC_PLABEL32 00000000   _Jv_RegisterClasses + 0
>
> Lets not worry about wether this is optimal (It's not and the fix is to
> change glibc/sysdeps/hppa/start.S to use plabel words so these become 1
> reloc each).

does that mean you're looking into fixing PIE on parisc ?  we noticed in 
Gentoo that nscd fails to run since glibc forces it to either be built as a 
PIE or not at all:
root@mindcircus 0 ~ # nscd
nscd: error while loading shared libraries: unexpected reloc type 0x42

building anything as PIE fails due to this reloc ... looks like binutils 
generates relocs of type R_PARISC_PLABEL14 and R_PARISC_PLABEL21 but glibc 
only knows how to handle R_PARISC_PLABEL32 ...
-mike
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?)
  2005-07-07 21:59 ` [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?) Mike Frysinger
@ 2005-07-08  1:56   ` Randolph Chung
  2005-07-08  2:00     ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Randolph Chung @ 2005-07-08  1:56 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: Carlos O'Donell, parisc-linux

> does that mean you're looking into fixing PIE on parisc ?  we noticed in 
> Gentoo that nscd fails to run since glibc forces it to either be built as a 
> PIE or not at all:
> root@mindcircus 0 ~ # nscd
> nscd: error while loading shared libraries: unexpected reloc type 0x42
> 
> building anything as PIE fails due to this reloc ... looks like binutils 
> generates relocs of type R_PARISC_PLABEL14 and R_PARISC_PLABEL21 but glibc 
> only knows how to handle R_PARISC_PLABEL32 ...

palinux glibc cvs has patch to do this. We'll propagate this upstream.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?)
  2005-07-08  1:56   ` Randolph Chung
@ 2005-07-08  2:00     ` Mike Frysinger
  2005-07-08  2:06       ` Randolph Chung
  2005-07-08  3:23       ` Carlos O'Donell
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Frysinger @ 2005-07-08  2:00 UTC (permalink / raw)
  To: parisc-linux

On Thursday 07 July 2005 09:56 pm, Randolph Chung wrote:
> > does that mean you're looking into fixing PIE on parisc ?  we noticed in
> > Gentoo that nscd fails to run since glibc forces it to either be built as
> > a PIE or not at all:
> > root@mindcircus 0 ~ # nscd
> > nscd: error while loading shared libraries: unexpected reloc type 0x42
> >
> > building anything as PIE fails due to this reloc ... looks like binutils
> > generates relocs of type R_PARISC_PLABEL14 and R_PARISC_PLABEL21 but
> > glibc only knows how to handle R_PARISC_PLABEL32 ...
>
> palinux glibc cvs has patch to do this. We'll propagate this upstream.

ah, was not aware parisc kept a glibc cvs tree

thanks for the great news :)
-mike
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?)
  2005-07-08  2:00     ` Mike Frysinger
@ 2005-07-08  2:06       ` Randolph Chung
  2005-07-08  3:23       ` Carlos O'Donell
  1 sibling, 0 replies; 5+ messages in thread
From: Randolph Chung @ 2005-07-08  2:06 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: parisc-linux

> ah, was not aware parisc kept a glibc cvs tree

we just added this recently to work on TLS.

I realized after I sent that last email that the pie patch probably has
some other dependencies so it may take some time to get it upstream. If
you want to look the changes are all in dl-machine.h

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?)
  2005-07-08  2:00     ` Mike Frysinger
  2005-07-08  2:06       ` Randolph Chung
@ 2005-07-08  3:23       ` Carlos O'Donell
  1 sibling, 0 replies; 5+ messages in thread
From: Carlos O'Donell @ 2005-07-08  3:23 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: parisc-linux

On Thu, Jul 07, 2005 at 10:00:10PM -0400, Mike Frysinger wrote:
> On Thursday 07 July 2005 09:56 pm, Randolph Chung wrote:
> > > does that mean you're looking into fixing PIE on parisc ?  we noticed in
> > > Gentoo that nscd fails to run since glibc forces it to either be built as
> > > a PIE or not at all:
> > > root@mindcircus 0 ~ # nscd
> > > nscd: error while loading shared libraries: unexpected reloc type 0x42
> > >
> > > building anything as PIE fails due to this reloc ... looks like binutils
> > > generates relocs of type R_PARISC_PLABEL14 and R_PARISC_PLABEL21 but
> > > glibc only knows how to handle R_PARISC_PLABEL32 ...
> >
> > palinux glibc cvs has patch to do this. We'll propagate this upstream.
> 
> ah, was not aware parisc kept a glibc cvs tree
> 
> thanks for the great news :)

We haven't pulled from upstream since 2005-06-08. We are trying to get a
working TLS build :)

c.

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-08  3:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20050630165918.GG5269@systemhalted.org>
2005-07-07 21:59 ` [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?) Mike Frysinger
2005-07-08  1:56   ` Randolph Chung
2005-07-08  2:00     ` Mike Frysinger
2005-07-08  2:06       ` Randolph Chung
2005-07-08  3:23       ` Carlos O'Donell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.