All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Carlos O'Donell Jr." <carlos@megatonmonkey.net>
To: Alan Modra <amodra@bigpond.net.au>, parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Fix for hppa-linux ld.so with newer binutils
Date: Sat, 20 Oct 2001 14:01:53 -0400	[thread overview]
Message-ID: <20011020140153.A17475@megatonmonkey.net> (raw)
In-Reply-To: <20011020170907.G1037@bubble.sa.bigpond.net.au>; from amodra@bigpond.net.au on Sat, Oct 20, 2001 at 05:09:07PM +0930

> Newer binutils don't initialise .got entries for global syms, so the
> scheme used by sysdeps/hppa/dl-machine.h:elf_machine_dynamic to find
> the address of .dynamic no longer works.
> 
> ChangeLog
> 	* sysdeps/hppa/dl-machine.h (elf_machine_dynamic):  Make it a
> 	const function.  Do not use &_DYNAMIC as .got entries for global
> 	syms are no longer initialised.  Instead they rely on the reloc,
> 	which hasn't yet been applied.
> 	(elf_machine_load_address): Make it const.  Call
> 	elf_machine_dynamic as that function is called fropm rtld anyway.
>

I was beggining to wonder...

  /* Figure out the run-time load address of the dynamic linker itself.  */
  bootstrap_map.l_addr = elf_machine_load_address ();

  /* Read our own dynamic section and fill in the info array.  */
  bootstrap_map.l_ld = (void *) bootstrap_map.l_addr + elf_machine_dynamic ();
  elf_get_dynamic_info (&bootstrap_map);

_dl_start (0x41002b74).... 
_dl_start+312 (Assertion failure with wrong address for initialized data) 

Why aren't .got entries being initialised?

So you are saying we need to make all of our global symbols constant
so that we can access them during the bootstrap? (No more _DYNMAIC?)

And that elf_machine_load_address is trying to access symbols that aren't
setup yet, because ELF_DYNAMIC_RELOCATE() hasn't been run yet?
And thus hasn't setup any of our offsets... where has my pic code gone ;(

c.

  parent reply	other threads:[~2001-10-20 18:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-20  7:39 [parisc-linux] Fix for hppa-linux ld.so with newer binutils Alan Modra
2001-10-20 13:54 ` [parisc-linux] " Ben Collins
2001-10-20 14:34   ` Alan Modra
2001-10-20 15:01     ` Ben Collins
2001-10-24 23:51       ` Ben Collins
2001-10-25  0:56         ` Randolph Chung
2001-10-25  1:12           ` Ben Collins
2001-10-25 15:07         ` Matthew Wilcox
2001-10-25 15:50           ` Ben Collins
2001-10-22  3:44     ` Alan Modra
2001-10-20 18:01 ` Carlos O'Donell Jr. [this message]
2001-10-21 11:20   ` [parisc-linux] " Alan Modra
2001-10-22 14:05 ` [parisc-linux] " Alan Modra
2001-10-22 16:04   ` Carlos O'Donell Jr.
2001-10-22 16:11     ` Alan Modra
2001-10-23  1:31   ` Ben Collins
2001-10-23  1:59     ` Randolph Chung

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=20011020140153.A17475@megatonmonkey.net \
    --to=carlos@megatonmonkey.net \
    --cc=amodra@bigpond.net.au \
    --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 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.