FD-PIC patches for uClibc

Carmelo Amoroso carmelo73 at gmail.com
Tue Nov 27 17:27:44 UTC 2007


On 27/11/2007, Bernd Schmidt <bernds_cb1 at t-online.de> wrote:
> Joakim Tjernlund wrote:
> >>> The 02_underscores patch is really ugly.
> >> Any suggestions how to improve it?
> >
> > remove _ syms from gcc would be best. Do you really need them?
>
> Yes.  The assembly language isn't really parseable otherwise.
>
> >>> Don't like the dl_find_hash_mod v.s dl_find_hash thingy.
> >> What do you dislike, and how would you do it differently?
> >
> > Thes should only be one dl_find_hash used by all arch. NPTL
> > has extended dl_find_hash to support NPTL and perhaps you
> > can use that one?
>
> The idea here was to provide the extended version under a new name, and
> keep the old interface around so that we don't have to make changes in
> all the ports.  If you prefer to have every occurrence of _dl_find_hash
> changed, I guess I can do that, although it's more error-prone.
>

Hi Bernd,
please have a look at the nptl branch where already is the updated _dl_find_hash
for NPTL using the same extra parameter you need. There is also a wrapper
around it as suggested by Jocke.
I think there is a way to use the interface for nptl into your case.
In these days I'm able to check the code.

Regards,
Carmelo


> > You can use the same trick DL_RELOC_ADDR() uses:
> > #ifndef DL_BOOT_COMPUTE_GOT
> >  #define DL_BOOT_COMPUTE_GOT(got) got = elf_machine_dynamic()
>
> Oh, that's what you mean, ok - no problem.
>
>
> Bernd
> --
> This footer brought to you by insane German lawmakers.
> Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
> Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
> Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>



More information about the uClibc mailing list