Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: parisc-linux@lists.parisc-linux.org
Cc: Carlos O'Donell <carlos@systemhalted.org>
Subject: [parisc-linux] Getting PIE to work (was How to reclaim .rela.dyn entries for symbols that become hidden?)
Date: Thu, 7 Jul 2005 17:59:12 -0400	[thread overview]
Message-ID: <200507071759.12521.vapier@gentoo.org> (raw)
In-Reply-To: <20050630165918.GG5269@systemhalted.org>

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

       reply	other threads:[~2005-07-07 21:59 UTC|newest]

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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200507071759.12521.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=carlos@systemhalted.org \
    --cc=parisc-linux@lists.parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox